summaryrefslogtreecommitdiff
path: root/py/circuitpy_mpconfig.h
diff options
context:
space:
mode:
authorSean Cross <sean@xobs.io>2020-05-21 13:47:23 +0800
committerSean Cross <sean@xobs.io>2020-05-27 11:28:49 +0800
commit595f6387c2a4f1c919cfab80b07493820ac0051b (patch)
tree40e96e0fcf52ced0cf6dc48bc3aef317af3f58a4 /py/circuitpy_mpconfig.h
parentc23f151b6b64011a97752b85e97d1d06b70b73d4 (diff)
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>
Diffstat (limited to 'py/circuitpy_mpconfig.h')
-rw-r--r--py/circuitpy_mpconfig.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/py/circuitpy_mpconfig.h b/py/circuitpy_mpconfig.h
index 50f1139d7..002b60e8a 100644
--- a/py/circuitpy_mpconfig.h
+++ b/py/circuitpy_mpconfig.h
@@ -630,11 +630,9 @@ extern const struct _mp_obj_module_t ustack_module;
#define RE_MODULE
#endif
-#if CIRCUITPY_WDT
-extern const struct _mp_obj_module_t wdt_module;
-#define WDT_MODULE { MP_ROM_QSTR(MP_QSTR_wdt), MP_ROM_PTR(&wdt_module) },
-#else
-#define WDT_MODULE
+// This is not a top-level module; it's microcontroller.watchdog.
+#if CIRCUITPY_WATCHDOG
+extern const struct _mp_obj_module_t watchdog_module;
#endif
// Define certain native modules with weak links so they can be replaced with Python
@@ -707,7 +705,6 @@ extern const struct _mp_obj_module_t wdt_module;
USB_HID_MODULE \
USB_MIDI_MODULE \
USTACK_MODULE \
- WDT_MODULE \
// If weak links are enabled, just include strong links in the main list of modules,
// and also include the underscore alternate names.