experiments: add error led test for kasli_soc

This commit is contained in:
mwojcik 2022-08-26 11:43:23 +08:00 committed by Gitea
parent 42cc256812
commit f586ba5a13

View File

@ -183,6 +183,20 @@ pub fn main_core0() {
println!(""); println!("");
} }
#[cfg(feature = "target_kasli_soc")]
{
let mut err_cdwn = timer.countdown();
let mut err_state = true;
let mut led = zynq::error_led::ErrorLED::error_led();
task::spawn( async move {
loop {
led.toggle(err_state);
err_state = !err_state;
delay(&mut err_cdwn, Milliseconds(1000)).await;
}
});
}
let eth = zynq::eth::Eth::eth0(HWADDR.clone()); let eth = zynq::eth::Eth::eth0(HWADDR.clone());
println!("Eth on"); println!("Eth on");