26 #include "periph_conf.h"
46 if (
IS_ACTIVE(MODULE_VDD_LC_FILTER_REG1)) {
47 NRF_POWER->DCDCEN = 1;
50 #ifdef POWER_DCDCEN0_DCDCEN_Msk
54 if (
IS_ACTIVE(MODULE_VDD_LC_FILTER_REG0) &&
55 (NRF_POWER->MAINREGSTATUS == POWER_MAINREGSTATUS_MAINREGSTATUS_High)) {
56 NRF_POWER->DCDCEN0 = 1;
Common macros and compiler attributes/pragmas configuration.
#define IS_ACTIVE(macro)
Allows to verify a macro definition outside the preprocessor.
static void nrfx_dcdc_init(void)
Enable the internal DC/DC power converter for the NRF5x MCU.