aboutsummaryrefslogtreecommitdiff
path: root/src/peripheral/dcb.rs
diff options
context:
space:
mode:
authorGravatar Tyler Holmes <tyler@holmesengineering.com> 2021-12-14 08:21:09 -0800
committerGravatar Tyler Holmes <tyler@holmesengineering.com> 2021-12-19 12:13:47 -0800
commit1b9b2293cd72842902869bbfb22246817089b049 (patch)
treedcd88a3f76335a572ab58781cda15262b71c2949 /src/peripheral/dcb.rs
parent0da1028cbf4ae9d0accb3bb47f5d7341b31a1779 (diff)
downloadcortex-m-1b9b2293cd72842902869bbfb22246817089b049.tar.gz
cortex-m-1b9b2293cd72842902869bbfb22246817089b049.tar.zst
cortex-m-1b9b2293cd72842902869bbfb22246817089b049.zip
inline
Diffstat (limited to '')
-rw-r--r--src/peripheral/dcb.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/peripheral/dcb.rs b/src/peripheral/dcb.rs
index b2bbd57..ef879ac 100644
--- a/src/peripheral/dcb.rs
+++ b/src/peripheral/dcb.rs
@@ -48,6 +48,7 @@ impl DCB {
}
/// Enables the [`DebugMonitor`](crate::peripheral::scb::Exception::DebugMonitor) exception
+ #[inline]
pub fn enable_debug_monitor(&mut self) {
unsafe {
self.demcr.modify(|w| w | DCB_DEMCR_MON_EN);
@@ -55,6 +56,7 @@ impl DCB {
}
/// Disables the [`DebugMonitor`](crate::peripheral::scb::Exception::DebugMonitor) exception
+ #[inline]
pub fn disable_debug_monitor(&mut self) {
unsafe {
self.demcr.modify(|w| w & !DCB_DEMCR_MON_EN);