forked from M-Labs/zynq-rs
10 lines
210 B
Rust
10 lines
210 B
Rust
|
use crate::{println, zynq};
|
||
|
|
||
|
#[panic_handler]
|
||
|
fn panic(info: &core::panic::PanicInfo) -> ! {
|
||
|
println!("\nPanic: {}", info);
|
||
|
|
||
|
zynq::slcr::RegisterBlock::unlocked(|slcr| slcr.soft_reset());
|
||
|
loop {}
|
||
|
}
|