diff options
| author | Sean Cross <sean@xobs.io> | 2020-05-22 18:51:54 +0800 |
|---|---|---|
| committer | Sean Cross <sean@xobs.io> | 2020-05-27 11:28:49 +0800 |
| commit | c5c13a8ba14490c94fd7409bae0183e59b5767f4 (patch) | |
| tree | bb8121604cbdbc4a421a846f76a69c777cbe5c03 /ports | |
| parent | 108409c6cdfb4adb9f18affe8714cfb6a8a86188 (diff) | |
nrf: reset watchdog as part of port_reset()
Signed-off-by: Sean Cross <sean@xobs.io>
Diffstat (limited to 'ports')
| -rw-r--r-- | ports/nrf/supervisor/port.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ports/nrf/supervisor/port.c b/ports/nrf/supervisor/port.c index 89797e6dc..9fe72905c 100644 --- a/ports/nrf/supervisor/port.c +++ b/ports/nrf/supervisor/port.c @@ -50,6 +50,7 @@ #include "common-hal/pulseio/PulseIn.h" #include "common-hal/rtc/RTC.h" #include "common-hal/neopixel_write/__init__.h" +#include "common-hal/watchdog/WatchDogTimer.h" #include "shared-bindings/microcontroller/__init__.h" #include "shared-bindings/rtc/__init__.h" @@ -189,6 +190,10 @@ void reset_port(void) { bleio_reset(); #endif +#if CIRCUITPY_WATCHDOG + watchdog_reset(); +#endif + reset_all_pins(); } |
