aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/peripheral/scb.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/peripheral/scb.rs b/src/peripheral/scb.rs
index 8dca96b..d381637 100644
--- a/src/peripheral/scb.rs
+++ b/src/peripheral/scb.rs
@@ -695,8 +695,10 @@ pub enum SystemHandler {
/// SV call interrupt
SVCall,
- // #[cfg(not(armv6m))]
- // DebugMonitor, // unclear whether this has configurable priority
+ /// Debug monitor interrupt (not present on Cortex-M0 variants)
+ #[cfg(not(armv6m))]
+ DebugMonitor,
+
/// Pend SV interrupt
PendSV,
@@ -720,6 +722,8 @@ impl SystemHandler {
#[cfg(any(armv8m, target_arch = "x86_64"))]
SystemHandler::SecureFault => 7,
SystemHandler::SVCall => 11,
+ #[cfg(not(armv6m))]
+ SystemHandler::DebugMonitor => 12,
SystemHandler::PendSV => 14,
SystemHandler::SysTick => 15,
SystemHandler::__DO_NOT_MATCH_AGAINST_THIS_VARIANT__ => unreachable!(),