Skip to content

Commit 4284b38

Browse files
committed
esp8266: Enable modmachine.
1 parent 5d7c408 commit 4284b38

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

esp8266/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ SRC_C = \
6363
modnetwork.c \
6464
modutime.c \
6565
moduos.c \
66+
modmachine.c \
6667
utils.c \
6768
$(BUILD)/frozen.c \
6869

esp8266/mpconfigport.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
#define MICROPY_PY_UHASHLIB (1)
4444
#define MICROPY_PY_UHASHLIB_SHA1 (1)
4545
#define MICROPY_PY_UJSON (1)
46+
#define MICROPY_PY_MACHINE (1)
4647
#define MICROPY_PY_MICROPYTHON_MEM_INFO (1)
4748
#define MICROPY_CPYTHON_COMPAT (1)
4849
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ)
@@ -80,13 +81,15 @@ extern const struct _mp_obj_module_t esp_module;
8081
extern const struct _mp_obj_module_t network_module;
8182
extern const struct _mp_obj_module_t utime_module;
8283
extern const struct _mp_obj_module_t uos_module;
84+
extern const struct _mp_obj_module_t mp_module_machine;
8385

8486
#define MICROPY_PORT_BUILTIN_MODULES \
8587
{ MP_OBJ_NEW_QSTR(MP_QSTR_pyb), (mp_obj_t)&pyb_module }, \
8688
{ MP_OBJ_NEW_QSTR(MP_QSTR_esp), (mp_obj_t)&esp_module }, \
8789
{ MP_OBJ_NEW_QSTR(MP_QSTR_network), (mp_obj_t)&network_module }, \
8890
{ MP_OBJ_NEW_QSTR(MP_QSTR_utime), (mp_obj_t)&utime_module }, \
8991
{ MP_OBJ_NEW_QSTR(MP_QSTR_uos), (mp_obj_t)&uos_module }, \
92+
{ MP_OBJ_NEW_QSTR(MP_QSTR_machine), (mp_obj_t)&mp_module_machine }, \
9093

9194
#define MICROPY_PORT_BUILTIN_MODULE_WEAK_LINKS \
9295
{ MP_OBJ_NEW_QSTR(MP_QSTR_time), (mp_obj_t)&utime_module }, \

0 commit comments

Comments
 (0)