File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use volatile_register::{RW, WO};
4
4
5
5
use peripheral:: DCB ;
6
6
7
- const BIT_TRACENA : u32 = 0x01 << 24 ;
7
+ const BIT_TRCENA : u32 = 0x01 << 24 ;
8
8
9
9
/// Register block
10
10
#[ repr( C ) ]
@@ -25,13 +25,13 @@ impl DCB {
25
25
/// As by STM documentation, this flag is not reset on
26
26
/// soft-reset, only on power reset.
27
27
pub fn enable_trace ( & mut self ) {
28
- // set bit 24 / TRACENA
29
- unsafe { self . demcr . modify ( |w| w | BIT_TRACENA ) ; }
28
+ // set bit 24 / TRCENA
29
+ unsafe { self . demcr . modify ( |w| w | BIT_TRCENA ) ; }
30
30
}
31
31
32
32
/// Disables TRACE. See `DCB::enable_trace()` for more details
33
33
pub fn disable_trace ( & mut self ) {
34
- // unset bit 24 / TRACENA
35
- unsafe { self . demcr . modify ( |w| w & !BIT_TRACENA ) ; }
34
+ // unset bit 24 / TRCENA
35
+ unsafe { self . demcr . modify ( |w| w & !BIT_TRCENA ) ; }
36
36
}
37
37
}
You can’t perform that action at this time.
0 commit comments