Support for the error LED on Kasli-SoC #100

Merged
sb10q merged 3 commits from mwojcik/zynq-rs:error_led_support into master 2022-08-26 17:22:42 +08:00
Showing only changes of commit 1acf0dc213 - Show all commits

View File

@ -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 {}
}