forked from M-Labs/zynq-rs
1
0
Fork 0
zynq-rs/src/panic.rs

10 lines
210 B
Rust
Raw Normal View History

2019-11-11 09:37:06 +08:00
use crate::{println, zynq};
#[panic_handler]
fn panic(info: &core::panic::PanicInfo) -> ! {
println!("\nPanic: {}", info);
zynq::slcr::RegisterBlock::unlocked(|slcr| slcr.soft_reset());
loop {}
}