1
0
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:
Marian Buschsieweke 2021-02-14 14:28:41 +01:00 committed by GitHub
commit bf7c697c8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}