1
0
Fork 0

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
1 changed files with 14 additions and 0 deletions

View File

@ -183,6 +183,20 @@ pub fn main_core0() {
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());
println!("Eth on");