27#include "periph_conf.h"
47 if (
IS_ACTIVE(MODULE_VDD_LC_FILTER_REG1)) {
48 NRF_POWER->DCDCEN = 1;
51#ifdef POWER_DCDCEN0_DCDCEN_Msk
55 if (
IS_ACTIVE(MODULE_VDD_LC_FILTER_REG0) &&
56 (NRF_POWER->MAINREGSTATUS == POWER_MAINREGSTATUS_MAINREGSTATUS_High)) {
57 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.