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 @@ -62,7 +62,7 @@ use core::ops;
62
62
63
63
use crate :: interrupt;
64
64
65
- #[ cfg( cm7) ]
65
+ #[ cfg( feature = " cm7" ) ]
66
66
pub mod ac;
67
67
#[ cfg( not( armv6m) ) ]
68
68
pub mod cbp;
@@ -96,7 +96,7 @@ mod test;
96
96
#[ allow( clippy:: manual_non_exhaustive) ]
97
97
pub struct Peripherals {
98
98
/// Cortex-M7 TCM and cache access control.
99
- #[ cfg( cm7) ]
99
+ #[ cfg( feature = " cm7" ) ]
100
100
pub AC : AC ,
101
101
102
102
/// Cache and branch predictor maintenance operations.
@@ -180,7 +180,7 @@ impl Peripherals {
180
180
TAKEN = true ;
181
181
182
182
Peripherals {
183
- #[ cfg( cm7) ]
183
+ #[ cfg( feature = " cm7" ) ]
184
184
AC : AC {
185
185
_marker : PhantomData ,
186
186
} ,
@@ -232,15 +232,15 @@ impl Peripherals {
232
232
}
233
233
234
234
/// Access control
235
- #[ cfg( cm7) ]
235
+ #[ cfg( feature = " cm7" ) ]
236
236
pub struct AC {
237
237
_marker : PhantomData < * const ( ) > ,
238
238
}
239
239
240
- #[ cfg( cm7) ]
240
+ #[ cfg( feature = " cm7" ) ]
241
241
unsafe impl Send for AC { }
242
242
243
- #[ cfg( cm7) ]
243
+ #[ cfg( feature = " cm7" ) ]
244
244
impl AC {
245
245
/// Pointer to the register block
246
246
pub const PTR : * const self :: ac:: RegisterBlock = 0xE000_EF90 as * const _ ;
You can’t perform that action at this time.
0 commit comments