Skip to content

Commit

Permalink
Starting to add some basic runtime power management
Browse files Browse the repository at this point in the history
  • Loading branch information
obra committed Dec 18, 2024
1 parent ff28931 commit 82f7f52
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions variants/preonic/variant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,14 @@ const uint32_t g_ADigitalPinMap[] =

void initVariant()
{
// LED1 & LED2
// pinMode(PIN_LED1, OUTPUT);
// ledOff(PIN_LED1);
// Enable DC/DC converter for better power efficiency
sd_power_dcdc_mode_set(NRF_POWER_DCDC_ENABLE);

// Disable debug interface if not actively debugging
NRF_CLOCK->TRACECONFIG = 0;

// Disable unused analog inputs
NRF_SAADC->ENABLE = 0;

// pinMode(PIN_LED2, OUTPUT);
// ledOff(PIN_LED2);
}

0 comments on commit 82f7f52

Please sign in to comment.