aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jorge Aparicio <jorge@japaric.io> 2018-10-26 19:55:03 +0200
committerGravatar Jorge Aparicio <jorge@japaric.io> 2018-10-26 19:55:03 +0200
commit0eff0b2f9857679249b7285593a691b1257c1f8e (patch)
tree0d3663041239f26ca62996a650fb9026315e7420
parentf47643305768c37706ffe3a321138aff8d8fd627 (diff)
downloadcortex-m-0eff0b2f9857679249b7285593a691b1257c1f8e.tar.gz
cortex-m-0eff0b2f9857679249b7285593a691b1257c1f8e.tar.zst
cortex-m-0eff0b2f9857679249b7285593a691b1257c1f8e.zip
add DebugMonitor variant to SystemHandler
-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!(),