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