Skip to content

Commit 3605ad2

Browse files
committed
deprecate system_reset in favor of static sys_reset
1 parent c36535d commit 3605ad2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/peripheral/scb.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,7 @@ const SCB_AIRCR_SYSRESETREQ: u32 = 1 << 2;
602602

603603
impl SCB {
604604
/// Initiate a system reset request to reset the MCU
605+
#[deprecated(since = "0.6.1", note = "Use `SCB::sys_reset`")]
605606
pub fn system_reset(&mut self) -> ! {
606607
::asm::dsb();
607608
unsafe {
@@ -621,9 +622,7 @@ impl SCB {
621622
}
622623

623624
/// Initiate a system reset request to reset the MCU
624-
///
625-
/// Static version of [`SCB::system_reset`].
626-
pub fn system_reset2() -> ! {
625+
pub fn sys_reset() -> ! {
627626
::asm::dsb();
628627
unsafe {
629628
(*Self::ptr()).aircr.modify(

0 commit comments

Comments
 (0)