Power optimization - enable the DC/DC regulator.

The DC/DC regulator reduce the power consumption of the MCU compared to the default LDO regulator. The DC/DC regulator needs additional HW that is mounted on the PineTime.

This change reduces the power usage by 380µA during fast advertising, by 200µA during slow advertising and by 186µA when BLE is disabled.
This commit is contained in:
Jean-François Milants 2023-05-07 18:15:33 +02:00 committed by JF
parent a48d4e0b13
commit 2fa3aaa161

View File

@ -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); nrf_drv_clock_calibration_start(16, calibrate_lf_clock_rc);
} }
void enable_dcdc_regulator() {
NRF_POWER->DCDCEN = 1;
}
int main() { int main() {
enable_dcdc_regulator();
logger.Init(); logger.Init();
nrf_drv_clock_init(); nrf_drv_clock_init();