We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 385b3eb commit da13beeCopy full SHA for da13bee
src/peripheral/dcb.rs
@@ -4,7 +4,7 @@ use volatile_register::{RW, WO};
4
5
use peripheral::DCB;
6
7
-const BIT_TRCENA: u32 = 0x01 << 24;
+const DCB_DEMCR_TRCENA: u32 = 1 << 24;
8
9
/// Register block
10
#[repr(C)]
@@ -26,12 +26,12 @@ impl DCB {
26
/// soft-reset, only on power reset.
27
pub fn enable_trace(&mut self) {
28
// set bit 24 / TRCENA
29
- unsafe { self.demcr.modify(|w| w | BIT_TRCENA); }
+ unsafe { self.demcr.modify(|w| w | DCB_DEMCR_TRCENA); }
30
}
31
32
/// Disables TRACE. See `DCB::enable_trace()` for more details
33
pub fn disable_trace(&mut self) {
34
// unset bit 24 / TRCENA
35
- unsafe { self.demcr.modify(|w| w & !BIT_TRCENA); }
+ unsafe { self.demcr.modify(|w| w & !DCB_DEMCR_TRCENA); }
36
37
0 commit comments