File tree Expand file tree Collapse file tree
variants/muziworks_r1_neo Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,9 +14,12 @@ const PowerMgtConfig power_config = {
1414
1515void R1NeoBoard::initiateShutdown (uint8_t reason) {
1616 // Disable LoRa module power before shutdown
17- MESH_DEBUG_PRINTLN (" R1Neo: shutting down" );
1817 digitalWrite (SX126X_POWER_EN , LOW );
1918
19+ // Signal IO controller that MCU is off, then release DCDC latch
20+ digitalWrite (PIN_SOFT_SHUTDOWN , LOW );
21+ digitalWrite (PIN_DCDC_EN_MCU_HOLD , LOW );
22+
2023 if (reason == SHUTDOWN_REASON_LOW_VOLTAGE ||
2124 reason == SHUTDOWN_REASON_BOOT_PROTECT ) {
2225 configureVoltageWake (power_config.lpcomp_ain_channel , power_config.lpcomp_refsel );
Original file line number Diff line number Diff line change @@ -18,6 +18,12 @@ class R1NeoBoard : public NRF52BoardDCDC {
1818 R1NeoBoard () : NRF52Board(" R1NEO_OTA" ) {}
1919 void begin ();
2020
21+ #ifdef NRF52_POWER_MANAGEMENT
22+ void powerOff () override {
23+ initiateShutdown (SHUTDOWN_REASON_USER );
24+ }
25+ #endif
26+
2127#if defined(P_LORA_TX_LED)
2228 void onBeforeTransmit () override {
2329 digitalWrite (P_LORA_TX_LED , HIGH ); // turn TX LED on
You can’t perform that action at this time.
0 commit comments