aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Hoàng Đức Hiếu <code@hdhoang.space> 2019-04-13 14:03:30 +0700
committerGravatar Hoàng Đức Hiếu <code@hdhoang.space> 2019-04-13 14:03:30 +0700
commit3605ad2e6592f6c41cc1888a8f1bd60944150f2d (patch)
tree94a8eb116ef662e0591d7428935356a7d40e17b1 /src
parentc36535dde320a4a5fb186a2753afca262814bd42 (diff)
downloadcortex-m-3605ad2e6592f6c41cc1888a8f1bd60944150f2d.tar.gz
cortex-m-3605ad2e6592f6c41cc1888a8f1bd60944150f2d.tar.zst
cortex-m-3605ad2e6592f6c41cc1888a8f1bd60944150f2d.zip
deprecate system_reset in favor of static sys_reset
Diffstat (limited to 'src')
-rw-r--r--src/peripheral/scb.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/peripheral/scb.rs b/src/peripheral/scb.rs
index 951c0c1..b584941 100644
--- a/src/peripheral/scb.rs
+++ b/src/peripheral/scb.rs
@@ -602,6 +602,7 @@ 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`")]
pub fn system_reset(&mut self) -> ! {
::asm::dsb();
unsafe {
@@ -621,9 +622,7 @@ impl SCB {
}
/// Initiate a system reset request to reset the MCU
- ///
- /// Static version of [`SCB::system_reset`].
- pub fn system_reset2() -> ! {
+ pub fn sys_reset() -> ! {
::asm::dsb();
unsafe {
(*Self::ptr()).aircr.modify(