aboutsummaryrefslogtreecommitdiff
path: root/src/peripheral/scb.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/peripheral/scb.rs')
-rw-r--r--src/peripheral/scb.rs21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/peripheral/scb.rs b/src/peripheral/scb.rs
index 9d58b03..b2f45c5 100644
--- a/src/peripheral/scb.rs
+++ b/src/peripheral/scb.rs
@@ -634,27 +634,6 @@ const SCB_AIRCR_SYSRESETREQ: u32 = 1 << 2;
impl SCB {
/// Initiate a system reset request to reset the MCU
- #[deprecated(since = "0.6.1", note = "Use `SCB::sys_reset`")]
- #[inline]
- pub fn system_reset(&mut self) -> ! {
- crate::asm::dsb();
- unsafe {
- self.aircr.modify(
- |r| {
- SCB_AIRCR_VECTKEY | // otherwise the write is ignored
- r & SCB_AIRCR_PRIGROUP_MASK | // keep priority group unchanged
- SCB_AIRCR_SYSRESETREQ
- }, // set the bit
- )
- };
- crate::asm::dsb();
- loop {
- // wait for the reset
- crate::asm::nop(); // avoid rust-lang/rust#28728
- }
- }
-
- /// Initiate a system reset request to reset the MCU
#[inline]
pub fn sys_reset() -> ! {
crate::asm::dsb();