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() {}
|
while !uart.tx_fifo_empty() {}
|
||||||
|
|
||||||
slcr::RegisterBlock::unlocked(|slcr| slcr.soft_reset());
|
slcr::RegisterBlock::unlocked(|slcr| slcr.soft_reset());
|
||||||
unreachable!()
|
loop {}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
|
|
|
@ -209,13 +209,11 @@ impl RegisterBlock {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Perform a soft reset
|
/// Perform a soft reset
|
||||||
pub fn soft_reset(&mut self) -> ! {
|
pub fn soft_reset(&mut self) {
|
||||||
self.pss_rst_ctrl.write(
|
self.pss_rst_ctrl.write(
|
||||||
PssRstCtrl::zeroed()
|
PssRstCtrl::zeroed()
|
||||||
.soft_rst(true)
|
.soft_rst(true)
|
||||||
);
|
);
|
||||||
|
|
||||||
unreachable!()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue