better documentation for error led enabling

pull/199/head
mwojcik 2022-10-10 14:59:40 +08:00
parent f94c291c68
commit 401bc6bcb3
2 changed files with 5 additions and 4 deletions

View File

@ -538,7 +538,8 @@ pub fn soft_panic_main(timer: GlobalTimer, cfg: Config) -> ! {
mgmt::start(cfg);
//getting eth settings disables the LED - need enable it here
// getting eth settings disables the LED as it resets GPIO
// need to re-enable it here
#[cfg(feature = "target_kasli_soc")]
{
let mut err_led = ErrorLED::error_led();

View File

@ -37,14 +37,14 @@ fn panic(info: &core::panic::PanicInfo) -> ! {
SOFT_PANICKED = true;
PANICKED[id] = true;
}
if !soft_panicked && id == 0 {
soft_panic(info);
}
#[cfg(feature = "target_kasli_soc")]
{
let mut err_led = ErrorLED::error_led();
err_led.toggle(true);
}
if !soft_panicked && id == 0 {
soft_panic(info);
}
println!("Backtrace: ");
let _ = backtrace(|ip| {
// Backtrace gives us the return address, i.e. the address after the delay slot,