summaryrefslogtreecommitdiff
path: root/py/obj.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/obj.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/obj.h')
-rw-r--r--py/obj.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/py/obj.h b/py/obj.h
index fa315d12f..cabe5498d 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -596,6 +596,9 @@ extern const mp_obj_type_t mp_type_IndentationError;
extern const mp_obj_type_t mp_type_IndexError;
extern const mp_obj_type_t mp_type_KeyboardInterrupt;
extern const mp_obj_type_t mp_type_ReloadException;
+#if CIRCUITPY_WATCHDOG
+extern const mp_obj_type_t mp_type_WatchDogTimeout;
+#endif
extern const mp_obj_type_t mp_type_KeyError;
extern const mp_obj_type_t mp_type_LookupError;
extern const mp_obj_type_t mp_type_MemoryError;