From 92b3f3e1dd14fb2e53868665d95bbea4270da33e Mon Sep 17 00:00:00 2001 From: mwojcik Date: Fri, 26 Aug 2022 11:44:55 +0800 Subject: [PATCH] panic: turn on error_led for kasli_soc --- libsupport_zynq/src/panic.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libsupport_zynq/src/panic.rs b/libsupport_zynq/src/panic.rs index 5b0b536..0f9d142 100644 --- a/libsupport_zynq/src/panic.rs +++ b/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 {} }