File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -314,14 +314,14 @@ pub mod config {
314314 #[ cfg( feature = "nrf52840" ) ]
315315 pub reg0 : bool ,
316316 /// Configure the voltage of the first stage DCDC. It is stored in non-volatile memory (UICR.REGOUT0 register); pass None to not touch it.
317- #[ cfg( feature = "nrf52840" ) ]
317+ #[ cfg( any ( feature = "nrf52840" , feature = "nrf52833" ) ) ]
318318 pub reg0_voltage : Option < Reg0Voltage > ,
319319 /// Config for the second stage DCDC (VDD -> DEC4), if disabled LDO will be used.
320320 pub reg1 : bool ,
321321 }
322322
323323 /// Output voltage setting for REG0 regulator stage.
324- #[ cfg( feature = "nrf52840" ) ]
324+ #[ cfg( any ( feature = "nrf52840" , feature = "nrf52833" ) ) ]
325325 pub enum Reg0Voltage {
326326 /// 1.8 V
327327 _1V8 = 0 ,
@@ -388,7 +388,7 @@ pub mod config {
388388 dcdc : DcdcConfig {
389389 #[ cfg( feature = "nrf52840" ) ]
390390 reg0 : false ,
391- #[ cfg( feature = "nrf52840" ) ]
391+ #[ cfg( any ( feature = "nrf52840" , feature = "nrf52833" ) ) ]
392392 reg0_voltage : None ,
393393 reg1 : false ,
394394 } ,
@@ -664,7 +664,7 @@ pub fn init(config: config::Config) -> Peripherals {
664664 }
665665 }
666666
667- #[ cfg( feature = "nrf52840" ) ]
667+ #[ cfg( any ( feature = "nrf52840" , feature = "nrf52833" ) ) ]
668668 unsafe {
669669 if let Some ( value) = config. dcdc . reg0_voltage {
670670 let value = value as u32 ;
You can’t perform that action at this time.
0 commit comments