summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-12-31 00:52:01 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-03-04 17:37:13 +0200
commit4284b3811f55faa8ed1a358396e168837990c07b (patch)
tree7e4bccfbf4da691f2636112b7fd90388c7958a75 /esp8266
parent5d7c408ba89c40816cbed33e8a2ba74e5302fdc2 (diff)
downloadmicropython-4284b3811f55faa8ed1a358396e168837990c07b.tar.gz
micropython-4284b3811f55faa8ed1a358396e168837990c07b.zip
esp8266: Enable modmachine.
Diffstat (limited to 'esp8266')
-rw-r--r--esp8266/Makefile1
-rw-r--r--esp8266/mpconfigport.h3
2 files changed, 4 insertions, 0 deletions
diff --git a/esp8266/Makefile b/esp8266/Makefile
index 7d3567e6dc..27a35d7dde 100644
--- a/esp8266/Makefile
+++ b/esp8266/Makefile
@@ -63,6 +63,7 @@ SRC_C = \
modnetwork.c \
modutime.c \
moduos.c \
+ modmachine.c \
utils.c \
$(BUILD)/frozen.c \
diff --git a/esp8266/mpconfigport.h b/esp8266/mpconfigport.h
index cadff86fd3..1f823c02e9 100644
--- a/esp8266/mpconfigport.h
+++ b/esp8266/mpconfigport.h
@@ -43,6 +43,7 @@
#define MICROPY_PY_UHASHLIB (1)
#define MICROPY_PY_UHASHLIB_SHA1 (1)
#define MICROPY_PY_UJSON (1)
+#define MICROPY_PY_MACHINE (1)
#define MICROPY_PY_MICROPYTHON_MEM_INFO (1)
#define MICROPY_CPYTHON_COMPAT (1)
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ)
@@ -80,6 +81,7 @@ extern const struct _mp_obj_module_t esp_module;
extern const struct _mp_obj_module_t network_module;
extern const struct _mp_obj_module_t utime_module;
extern const struct _mp_obj_module_t uos_module;
+extern const struct _mp_obj_module_t mp_module_machine;
#define MICROPY_PORT_BUILTIN_MODULES \
{ MP_OBJ_NEW_QSTR(MP_QSTR_pyb), (mp_obj_t)&pyb_module }, \
@@ -87,6 +89,7 @@ extern const struct _mp_obj_module_t uos_module;
{ MP_OBJ_NEW_QSTR(MP_QSTR_network), (mp_obj_t)&network_module }, \
{ MP_OBJ_NEW_QSTR(MP_QSTR_utime), (mp_obj_t)&utime_module }, \
{ MP_OBJ_NEW_QSTR(MP_QSTR_uos), (mp_obj_t)&uos_module }, \
+ { MP_OBJ_NEW_QSTR(MP_QSTR_machine), (mp_obj_t)&mp_module_machine }, \
#define MICROPY_PORT_BUILTIN_MODULE_WEAK_LINKS \
{ MP_OBJ_NEW_QSTR(MP_QSTR_time), (mp_obj_t)&utime_module }, \