1
0
Fork 0

boards: Make the watchdog more aggressive

Let's not tune for debug by default... the point of the bootloader is that
it is for use when the SWD pins are not easily accessed.
wasp-os-next
Daniel Thompson 2020-01-19 11:58:32 +00:00
parent 20f5764f64
commit 0d74a6efca
1 changed files with 3 additions and 1 deletions

View File

@ -484,7 +484,9 @@ void neopixel_write (uint8_t *pixels)
void wdt_init(void)
{
// 1 => keep running during a sleep, stop during SWD debug
nrf_wdt_behaviour_set(NRF_WDT, 1);
// 9 => run during sleep and SWD debug (e.g. most robust but
// makes debugger attachment difficult)
nrf_wdt_behaviour_set(NRF_WDT, 9);
// timeout after 5 seconds
nrf_wdt_reload_value_set(NRF_WDT, 5 * 32768);