panic: turn on error_led for kasli_soc

esavkin/reboot_support
mwojcik 5 months ago committed by Gitea
parent f586ba5a13
commit 92b3f3e1dd
  1. 8
      libsupport_zynq/src/panic.rs

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

Loading…
Cancel
Save