aboutsummaryrefslogtreecommitdiff
path: root/src/peripheral/scb.rs
diff options
context:
space:
mode:
authorGravatar Viktor Sonesten <v@tmplt.dev> 2021-10-27 00:23:07 +0200
committerGravatar Viktor Sonesten <v@tmplt.dev> 2021-10-27 00:23:07 +0200
commit880b947c44e78fd07d7c231a3c0c82ed3e54b9ef (patch)
treec8f67545f42ab2311b57150f20c57c4e9903551a /src/peripheral/scb.rs
parentaa17958147ac57af6f10de170d869626397ba1d8 (diff)
parent6b013138b734b9bbeb24a345f75d2bcc1c69fa8d (diff)
downloadcortex-m-880b947c44e78fd07d7c231a3c0c82ed3e54b9ef.tar.gz
cortex-m-880b947c44e78fd07d7c231a3c0c82ed3e54b9ef.tar.zst
cortex-m-880b947c44e78fd07d7c231a3c0c82ed3e54b9ef.zip
Merge branch 'master' into feat/tracing
Diffstat (limited to 'src/peripheral/scb.rs')
-rw-r--r--src/peripheral/scb.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/peripheral/scb.rs b/src/peripheral/scb.rs
index b619328..688c431 100644
--- a/src/peripheral/scb.rs
+++ b/src/peripheral/scb.rs
@@ -832,7 +832,7 @@ impl SCB {
}
const SCB_AIRCR_VECTKEY: u32 = 0x05FA << 16;
-const SCB_AIRCR_PRIGROUP_MASK: u32 = 0x5 << 8;
+const SCB_AIRCR_PRIGROUP_MASK: u32 = 0x7 << 8;
const SCB_AIRCR_SYSRESETREQ: u32 = 1 << 2;
impl SCB {
@@ -994,7 +994,7 @@ impl SCB {
/// # Unsafety
///
/// Changing priority levels can break priority-based critical sections (see
- /// [`register::basepri`](../register/basepri/index.html)) and compromise memory safety.
+ /// [`register::basepri`](crate::register::basepri)) and compromise memory safety.
#[inline]
pub unsafe fn set_priority(&mut self, system_handler: SystemHandler, prio: u8) {
let index = system_handler as u8;