@@ -65,7 +65,7 @@ compile_error!("feature `reset-pin-as-gpio` is only valid for nRF52 series chips
65
65
#[ cfg( all( feature = "nfc-pins-as-gpio" , not( any( feature = "_nrf52" , feature = "_nrf5340-app" ) ) ) ) ]
66
66
compile_error ! ( "feature `nfc-pins-as-gpio` is only valid for nRF52, or nRF53's application core." ) ;
67
67
68
- #[ cfg( all( feature = "lfxo-pins-as-gpio" , not( any ( feature = "_nrf5340" ) ) ) ) ]
68
+ #[ cfg( all( feature = "lfxo-pins-as-gpio" , not( feature = "_nrf5340" ) ) ) ]
69
69
compile_error ! ( "feature `lfxo-pins-as-gpio` is only valid for nRF53 series chips." ) ;
70
70
71
71
// This mod MUST go first, so that the others see its macros.
@@ -285,24 +285,16 @@ pub mod config {
285
285
/// Internal RC oscillator
286
286
InternalRC ,
287
287
/// Synthesized from the high frequency clock source.
288
- #[ cfg( not( any ( feature = "_nrf91" ) ) ) ]
288
+ #[ cfg( not( feature = "_nrf91" ) ) ]
289
289
Synthesized ,
290
290
/// External source from xtal.
291
- #[ cfg( not( all ( feature = "_nrf5340" , feature = " lfxo-pins-as-gpio") ) ) ]
291
+ #[ cfg( not( feature = "lfxo-pins-as-gpio" ) ) ]
292
292
ExternalXtal ,
293
293
/// External source from xtal with low swing applied.
294
- #[ cfg( not( any(
295
- all( feature = "_nrf5340" , feature = "lfxo-pins-as-gpio" ) ,
296
- feature = "_nrf91" ,
297
- feature = "_nrf54l"
298
- ) ) ) ]
294
+ #[ cfg( not( any( feature = "lfxo-pins-as-gpio" , feature = "_nrf91" , feature = "_nrf54l" ) ) ) ]
299
295
ExternalLowSwing ,
300
296
/// External source from xtal with full swing applied.
301
- #[ cfg( not( any(
302
- all( feature = "_nrf5340" , feature = "lfxo-pins-as-gpio" ) ,
303
- feature = "_nrf91" ,
304
- feature = "_nrf54l"
305
- ) ) ) ]
297
+ #[ cfg( not( any( feature = "lfxo-pins-as-gpio" , feature = "_nrf91" , feature = "_nrf54l" ) ) ) ]
306
298
ExternalFullSwing ,
307
299
}
308
300
0 commit comments