Skip to content

Commit 0eff0b2

Browse files
committed
add DebugMonitor variant to SystemHandler
1 parent f476433 commit 0eff0b2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/peripheral/scb.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -695,8 +695,10 @@ pub enum SystemHandler {
695695
/// SV call interrupt
696696
SVCall,
697697

698-
// #[cfg(not(armv6m))]
699-
// DebugMonitor, // unclear whether this has configurable priority
698+
/// Debug monitor interrupt (not present on Cortex-M0 variants)
699+
#[cfg(not(armv6m))]
700+
DebugMonitor,
701+
700702
/// Pend SV interrupt
701703
PendSV,
702704

@@ -720,6 +722,8 @@ impl SystemHandler {
720722
#[cfg(any(armv8m, target_arch = "x86_64"))]
721723
SystemHandler::SecureFault => 7,
722724
SystemHandler::SVCall => 11,
725+
#[cfg(not(armv6m))]
726+
SystemHandler::DebugMonitor => 12,
723727
SystemHandler::PendSV => 14,
724728
SystemHandler::SysTick => 15,
725729
SystemHandler::__DO_NOT_MATCH_AGAINST_THIS_VARIANT__ => unreachable!(),

0 commit comments

Comments
 (0)