We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1163c7 commit 7e75be4Copy full SHA for 7e75be4
cortex-m/src/peripheral/scb.rs
@@ -820,6 +820,26 @@ impl SCB {
820
}
821
822
823
+const SCB_SCR_SEVONPEND: u32 = 0x1 << 4;
824
+
825
+impl SCB {
826
+ /// Set the SEVONPEND bit in the SCR register
827
+ #[inline]
828
+ pub fn set_sevonpend(&mut self) {
829
+ unsafe {
830
+ self.scr.modify(|scr| scr | SCB_SCR_SEVONPEND);
831
+ }
832
833
834
+ /// Clear the SEVONPEND bit in the SCR register
835
836
+ pub fn clear_sevonpend(&mut self) {
837
838
+ self.scr.modify(|scr| scr & !SCB_SCR_SEVONPEND);
839
840
841
+}
842
843
const SCB_AIRCR_VECTKEY: u32 = 0x05FA << 16;
844
const SCB_AIRCR_PRIGROUP_MASK: u32 = 0x7 << 8;
845
const SCB_AIRCR_SYSRESETREQ: u32 = 1 << 2;
0 commit comments