Add 60s watchdog for nrf52

In order to restore after battery voltage sags too low
This commit is contained in:
Wessel Nieboer 2026-03-12 14:41:20 +01:00 committed by Wessel Nieboer
parent fb726e48c2
commit f46f822bfc
No known key found for this signature in database
GPG key ID: 27BB1C3D63DEEFFF
14 changed files with 128 additions and 9 deletions

View file

@ -10,7 +10,9 @@
const PowerMgtConfig power_config = {
.lpcomp_ain_channel = PWRMGT_LPCOMP_AIN,
.lpcomp_refsel = PWRMGT_LPCOMP_REFSEL,
.voltage_bootlock = PWRMGT_VOLTAGE_BOOTLOCK
.voltage_bootlock = PWRMGT_VOLTAGE_BOOTLOCK,
.voltage_runtime = PWRMGT_VOLTAGE_BOOTLOCK - 200,
.wdt_timeout_ms = 60000
};

View file

@ -9,7 +9,9 @@
const PowerMgtConfig power_config = {
.lpcomp_ain_channel = PWRMGT_LPCOMP_AIN,
.lpcomp_refsel = PWRMGT_LPCOMP_REFSEL,
.voltage_bootlock = PWRMGT_VOLTAGE_BOOTLOCK
.voltage_bootlock = PWRMGT_VOLTAGE_BOOTLOCK,
.voltage_runtime = PWRMGT_VOLTAGE_BOOTLOCK - 200,
.wdt_timeout_ms = 60000
};
void T114Board::initiateShutdown(uint8_t reason) {

View file

@ -9,7 +9,9 @@
const PowerMgtConfig power_config = {
.lpcomp_ain_channel = PWRMGT_LPCOMP_AIN,
.lpcomp_refsel = PWRMGT_LPCOMP_REFSEL,
.voltage_bootlock = PWRMGT_VOLTAGE_BOOTLOCK
.voltage_bootlock = PWRMGT_VOLTAGE_BOOTLOCK,
.voltage_runtime = PWRMGT_VOLTAGE_BOOTLOCK - 200,
.wdt_timeout_ms = 60000
};
void RAK4631Board::initiateShutdown(uint8_t reason) {

View file

@ -7,7 +7,9 @@
const PowerMgtConfig power_config = {
.lpcomp_ain_channel = PWRMGT_LPCOMP_AIN,
.lpcomp_refsel = PWRMGT_LPCOMP_REFSEL,
.voltage_bootlock = PWRMGT_VOLTAGE_BOOTLOCK
.voltage_bootlock = PWRMGT_VOLTAGE_BOOTLOCK,
.voltage_runtime = PWRMGT_VOLTAGE_BOOTLOCK - 200,
.wdt_timeout_ms = 60000
};
void SenseCapSolarBoard::initiateShutdown(uint8_t reason) {

View file

@ -11,7 +11,9 @@
const PowerMgtConfig power_config = {
.lpcomp_ain_channel = PWRMGT_LPCOMP_AIN,
.lpcomp_refsel = PWRMGT_LPCOMP_REFSEL,
.voltage_bootlock = PWRMGT_VOLTAGE_BOOTLOCK
.voltage_bootlock = PWRMGT_VOLTAGE_BOOTLOCK,
.voltage_runtime = PWRMGT_VOLTAGE_BOOTLOCK - 200,
.wdt_timeout_ms = 60000
};
void XiaoNrf52Board::initiateShutdown(uint8_t reason) {