We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c36535d commit 3605ad2Copy full SHA for 3605ad2
src/peripheral/scb.rs
@@ -602,6 +602,7 @@ const SCB_AIRCR_SYSRESETREQ: u32 = 1 << 2;
602
603
impl SCB {
604
/// Initiate a system reset request to reset the MCU
605
+ #[deprecated(since = "0.6.1", note = "Use `SCB::sys_reset`")]
606
pub fn system_reset(&mut self) -> ! {
607
::asm::dsb();
608
unsafe {
@@ -621,9 +622,7 @@ impl SCB {
621
622
}
623
624
- ///
625
- /// Static version of [`SCB::system_reset`].
626
- pub fn system_reset2() -> ! {
+ pub fn sys_reset() -> ! {
627
628
629
(*Self::ptr()).aircr.modify(
0 commit comments