forked from M-Labs/zynq-rs
1
0
Fork 0

panic: turn on error_led for kasli_soc

This commit is contained in:
mwojcik 2022-08-26 11:44:55 +08:00 committed by Gitea
parent f586ba5a13
commit 92b3f3e1dd
1 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,6 @@
use libboard_zynq::{print, println}; use libboard_zynq::{print, println};
#[cfg(feature = "target_kasli_soc")]
use libboard_zynq::error_led::ErrorLED;
#[panic_handler] #[panic_handler]
fn panic(info: &core::panic::PanicInfo) -> ! { fn panic(info: &core::panic::PanicInfo) -> ! {
@ -13,6 +15,10 @@ fn panic(info: &core::panic::PanicInfo) -> ! {
} else { } else {
println!(""); println!("");
} }
#[cfg(feature = "target_kasli_soc")]
{
let mut err_led = ErrorLED::error_led();
err_led.toggle(true);
}
loop {} loop {}
} }