File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 60
60
use core:: marker:: PhantomData ;
61
61
use core:: ops;
62
62
63
- #[ cfg( cm7) ]
63
+ #[ cfg( feature = " cm7" ) ]
64
64
pub mod ac;
65
65
#[ cfg( not( armv6m) ) ]
66
66
pub mod cbp;
@@ -94,7 +94,7 @@ mod test;
94
94
#[ allow( clippy:: manual_non_exhaustive) ]
95
95
pub struct Peripherals {
96
96
/// Cortex-M7 TCM and cache access control.
97
- #[ cfg( cm7) ]
97
+ #[ cfg( feature = " cm7" ) ]
98
98
pub AC : AC ,
99
99
100
100
/// Cache and branch predictor maintenance operations.
@@ -178,7 +178,7 @@ impl Peripherals {
178
178
TAKEN = true ;
179
179
180
180
Peripherals {
181
- #[ cfg( cm7) ]
181
+ #[ cfg( feature = " cm7" ) ]
182
182
AC : AC {
183
183
_marker : PhantomData ,
184
184
} ,
@@ -230,15 +230,15 @@ impl Peripherals {
230
230
}
231
231
232
232
/// Access control
233
- #[ cfg( cm7) ]
233
+ #[ cfg( feature = " cm7" ) ]
234
234
pub struct AC {
235
235
_marker : PhantomData < * const ( ) > ,
236
236
}
237
237
238
- #[ cfg( cm7) ]
238
+ #[ cfg( feature = " cm7" ) ]
239
239
unsafe impl Send for AC { }
240
240
241
- #[ cfg( cm7) ]
241
+ #[ cfg( feature = " cm7" ) ]
242
242
impl AC {
243
243
/// Pointer to the register block
244
244
pub const PTR : * const self :: ac:: RegisterBlock = 0xE000_EF90 as * const _ ;
You can’t perform that action at this time.
0 commit comments