mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/nrf5x: only enable DCDC for REG0 if REG0 exists
nRF52833 has POWER_MAINREGSTATUS_MAINREGSTATUS_High, but no POWER->DCDCEN0 register. This breaks all builds on this MCU. Fix the ifdef to fix the build.
This commit is contained in:
parent
76c03291dc
commit
a8fcc7b238
@ -46,7 +46,7 @@ static inline void nrfx_dcdc_init(void)
|
||||
/* on CPUs that support high voltage power supply via VDDH and thus use a
|
||||
* two stage regulator, we also enable the DC/DC converter for the first
|
||||
* state. */
|
||||
#ifdef POWER_MAINREGSTATUS_MAINREGSTATUS_High
|
||||
#ifdef POWER_DCDCEN0_DCDCEN_Msk
|
||||
if (NRF_POWER->MAINREGSTATUS == POWER_MAINREGSTATUS_MAINREGSTATUS_High) {
|
||||
NRF_POWER->DCDCEN0 = 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user