aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index aa98de3f..9c13a169 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -304,7 +304,12 @@ void calibrate_lf_clock_rc(nrf_drv_clock_evt_type_t /*event*/) {
nrf_drv_clock_calibration_start(16, calibrate_lf_clock_rc);
}
+void enable_dcdc_regulator() {
+ NRF_POWER->DCDCEN = 1;
+}
+
int main() {
+ enable_dcdc_regulator();
logger.Init();
nrf_drv_clock_init();