mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #16004 from benpicco/cpu/nrf52-DCDCEN0_fix
cpu/nrf5x: only enable DCDC for REG0 if REG0 exists
This commit is contained in:
commit
bf7c697c8d
@ -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