enable error LED on pll lock fail

This commit is contained in:
mwojcik 2022-08-25 16:23:10 +08:00
parent 285645759f
commit e5158ae9c8
1 changed files with 5 additions and 0 deletions

View File

@ -96,6 +96,11 @@ fn init_rtio(timer: &mut GlobalTimer, _clk: RtioClock) {
info!("RTIO PLL locked");
} else {
error!("RTIO PLL failed to lock");
#[cfg(feature = "target_kasli_soc")]
{
pl::csr::error_led::out_write(1);
// try "soft" panic
}
}
unsafe {