File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -76,11 +76,11 @@ impl Crc {
76
76
}
77
77
78
78
// writing to INIT sets DR to its value
79
- #[ cfg( not( feature = "h7" ) ) ]
79
+ #[ cfg( not( any ( feature = "h7" , feature = "l4" ) ) ) ]
80
80
self . regs
81
81
. init
82
82
. write ( |w| unsafe { w. crc_init ( ) . bits ( config. initial ) } ) ;
83
- #[ cfg( feature = "h7" ) ]
83
+ #[ cfg( any ( feature = "h7" , feature = "l4" ) ) ]
84
84
self . regs
85
85
. init
86
86
. write ( |w| unsafe { w. init ( ) . bits ( config. initial ) } ) ;
@@ -152,9 +152,9 @@ impl Crc {
152
152
/// Read the CRC without applying output XOR.
153
153
#[ inline( always) ]
154
154
fn read_crc_no_xor ( & self ) -> u32 {
155
- #[ cfg( not( feature = "h7" ) ) ]
155
+ #[ cfg( not( any ( feature = "h7" , feature = "l4" ) ) ) ]
156
156
return self . regs . dr . read ( ) . dr ( ) . bits ( ) ;
157
- #[ cfg( feature = "h7" ) ]
157
+ #[ cfg( any ( feature = "h7" , feature = "l4" ) ) ]
158
158
return self . regs . dr ( ) . read ( ) . dr ( ) . bits ( ) ;
159
159
}
160
160
You can’t perform that action at this time.
0 commit comments