Sean Cross
bd086a102e
Revert "add WatchDogTimeout exception"
...
This reverts commit 561e7e619095869f58fc728d428f3ff20e8bfc40.
2020-05-27 11:28:49 +08:00
Sean Cross
589cb1af6d
nrf: watchdog: use nrfx_wdt driver
...
Instead of directly poking registers, use `nrfx_wdt`.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-27 11:28:49 +08:00
Sean Cross
08362c9cab
watchdogtimer: refactor to new api
...
This refactors the WatchDogTimer API to use the format proposed in
https://github.com/adafruit/circuitpython/pull/2933#issuecomment-632268227
Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-27 11:28:49 +08:00
Sean Cross
ae950bc050
add WatchDogTimeout exception
...
This adds an exception to be raised when the WatchDogTimer times out.
Note that this currently causes a HardFault, and it's not clear why it's
not behaving properly.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-27 11:28:49 +08:00
Sean Cross
8f46133917
nrf: watchdog: implement software watchdogtimer
...
This adds a software WatchDogTimer implementation that can be used for
testing.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-27 11:28:49 +08:00
Sean Cross
595f6387c2
watchdog: rename module from wdt
and move to microcontroller
...
This also places it under the `microcontroller` object.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-27 11:28:49 +08:00