We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3f85e6 commit 4b0adbfCopy full SHA for 4b0adbf
cortex-m/src/peripheral/scb.rs
@@ -832,6 +832,26 @@ impl SCB {
832
}
833
834
835
+const SCB_SCR_SEVONPEND: u32 = 0x1 << 4;
836
+
837
+impl SCB {
838
+ /// Set the SEVONPEND bit in the SCR register
839
+ #[inline]
840
+ pub fn set_sevonpend(&mut self) {
841
+ unsafe {
842
+ self.scr.modify(|scr| scr | SCB_SCR_SEVONPEND);
843
+ }
844
845
846
+ /// Clear the SEVONPEND bit in the SCR register
847
848
+ pub fn clear_sevonpend(&mut self) {
849
850
+ self.scr.modify(|scr| scr & !SCB_SCR_SEVONPEND);
851
852
853
+}
854
855
const SCB_AIRCR_VECTKEY: u32 = 0x05FA << 16;
856
const SCB_AIRCR_PRIGROUP_MASK: u32 = 0x7 << 8;
857
const SCB_AIRCR_SYSRESETREQ: u32 = 1 << 2;
0 commit comments