summaryrefslogtreecommitdiffstatshomepage
path: root/zephyr/mpconfigport.h
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/mpconfigport.h')
-rw-r--r--zephyr/mpconfigport.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/zephyr/mpconfigport.h b/zephyr/mpconfigport.h
index 2f12cf7112..0a3905c3c5 100644
--- a/zephyr/mpconfigport.h
+++ b/zephyr/mpconfigport.h
@@ -53,6 +53,7 @@
#define MICROPY_PY_CMATH (0)
#define MICROPY_PY_IO (0)
#define MICROPY_PY_MICROPYTHON_MEM_INFO (1)
+#define MICROPY_PY_MACHINE (1)
#define MICROPY_PY_STRUCT (0)
#define MICROPY_PY_UTIME (1)
#define MICROPY_PY_UTIME_MP_HAL (1)
@@ -90,6 +91,7 @@ typedef long mp_off_t;
mp_obj_t mp_kbd_exception; \
const char *readline_hist[8];
+extern const struct _mp_obj_module_t mp_module_machine;
extern const struct _mp_obj_module_t mp_module_time;
#if MICROPY_PY_UTIME
@@ -99,6 +101,7 @@ extern const struct _mp_obj_module_t mp_module_time;
#endif
#define MICROPY_PORT_BUILTIN_MODULES \
+ { MP_OBJ_NEW_QSTR(MP_QSTR_machine), (mp_obj_t)&mp_module_machine }, \
MICROPY_PY_UTIME_DEF \
// extra built in names to add to the global namespace