aboutsummaryrefslogtreecommitdiff
path: root/src/peripheral/scb.rs
diff options
context:
space:
mode:
authorGravatar Jonas Schievink <jonasschievink@gmail.com> 2020-01-15 23:31:31 +0100
committerGravatar Jonas Schievink <jonasschievink@gmail.com> 2020-01-15 23:31:31 +0100
commitab8d4634fa34881a97f4c15bb0ecbde946c4107f (patch)
tree608df821d34bb08e991c5c1f3e7330eab2e194b8 /src/peripheral/scb.rs
parentb889e4900d0d1fc6ca0a467f1a2ae0680af4953c (diff)
downloadcortex-m-ab8d4634fa34881a97f4c15bb0ecbde946c4107f.tar.gz
cortex-m-ab8d4634fa34881a97f4c15bb0ecbde946c4107f.tar.zst
cortex-m-ab8d4634fa34881a97f4c15bb0ecbde946c4107f.zip
Remove deprecated APIs and the `const-fn` feature
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();