forked from M-Labs/zynq-rs
soft_reset: rm unreachable!
This commit is contained in:
parent
bf4f5108f4
commit
acf995d7da
|
@ -95,7 +95,7 @@ fn panic(info: &core::panic::PanicInfo) -> ! {
|
|||
while !uart.tx_fifo_empty() {}
|
||||
|
||||
slcr::RegisterBlock::unlocked(|slcr| slcr.soft_reset());
|
||||
unreachable!()
|
||||
loop {}
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
|
|
|
@ -209,13 +209,11 @@ impl RegisterBlock {
|
|||
}
|
||||
|
||||
/// Perform a soft reset
|
||||
pub fn soft_reset(&mut self) -> ! {
|
||||
pub fn soft_reset(&mut self) {
|
||||
self.pss_rst_ctrl.write(
|
||||
PssRstCtrl::zeroed()
|
||||
.soft_rst(true)
|
||||
);
|
||||
|
||||
unreachable!()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue