summaryrefslogtreecommitdiff
path: root/py/mpstate.h
diff options
context:
space:
mode:
authorSean Cross <sean@xobs.io>2020-05-21 20:45:03 +0800
committerSean Cross <sean@xobs.io>2020-05-27 11:28:49 +0800
commitae950bc050fc9c7ee675d0a4d52f352ebc24a369 (patch)
tree1c92d6fab19725d5b25374b74e728243d04eed4e /py/mpstate.h
parent0169ea5155d553094d33613e94a6c597ee2e0860 (diff)
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>
Diffstat (limited to 'py/mpstate.h')
-rw-r--r--py/mpstate.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/py/mpstate.h b/py/mpstate.h
index a5815776a..5d3b7709b 100644
--- a/py/mpstate.h
+++ b/py/mpstate.h
@@ -141,6 +141,11 @@ typedef struct _mp_state_vm_t {
// exception object of type ReloadException
mp_obj_exception_t mp_reload_exception;
+ #if CIRCUITPY_WATCHDOG
+ // exception object of type WatchdogTimeout
+ mp_obj_exception_t mp_watchdog_exception;
+ #endif
+
// dictionary with loaded modules (may be exposed as sys.modules)
mp_obj_dict_t mp_loaded_modules_dict;