nrf: reset watchdog as part of port_reset()
Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
108409c6cd
commit
c5c13a8ba1
1 changed files with 5 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue