Skip to content

Commit 11f119a

Browse files
committed
variants: XIAO NRF52: Enable DC/DC regulator
This reduces the power consumption by approximately 25%. Signed-off-by: Frieder Schrempf <[email protected]>
1 parent b9b82fc commit 11f119a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

variants/xiao_nrf52/XiaoNrf52Board.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ static void disconnect_callback(uint16_t conn_handle, uint8_t reason) {
2323
void XiaoNrf52Board::begin() {
2424
// for future use, sub-classes SHOULD call this from their begin()
2525
startup_reason = BD_STARTUP_NORMAL;
26+
NRF_POWER->DCDCEN = 1;
2627

2728
pinMode(PIN_VBAT, INPUT);
2829
pinMode(VBAT_ENABLE, OUTPUT);

0 commit comments

Comments
 (0)