summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-05-13 00:18:41 +0100
committerDamien George <damien.p.george@gmail.com>2015-05-13 00:18:41 +0100
commit4e7dc97bdc8a11429b756f16f1167ac930680b0d (patch)
tree7c688dcc280f6373ebee3e750e6c55e5b2e51041 /esp8266
parent103d12a877f09e5d812f8c9c1fbf13ddbea4f78c (diff)
downloadmicropython-4e7dc97bdc8a11429b756f16f1167ac930680b0d.tar.gz
micropython-4e7dc97bdc8a11429b756f16f1167ac930680b0d.zip
esp8266: Add module weak links; link time to utime.
Diffstat (limited to 'esp8266')
-rw-r--r--esp8266/mpconfigport.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/esp8266/mpconfigport.h b/esp8266/mpconfigport.h
index 1c5932f9de..d76710b7ad 100644
--- a/esp8266/mpconfigport.h
+++ b/esp8266/mpconfigport.h
@@ -14,6 +14,7 @@
#define MICROPY_HELPER_REPL (1)
#define MICROPY_HELPER_LEXER_UNIX (0)
#define MICROPY_ENABLE_SOURCE_LINE (1)
+#define MICROPY_MODULE_WEAK_LINKS (1)
#define MICROPY_PY_BUILTINS_STR_UNICODE (1)
#define MICROPY_PY_BUILTINS_BYTEARRAY (1)
#define MICROPY_PY_BUILTINS_MEMORYVIEW (1)
@@ -71,6 +72,9 @@ extern const struct _mp_obj_module_t utime_module;
{ MP_OBJ_NEW_QSTR(MP_QSTR_esp), (mp_obj_t)&esp_module }, \
{ MP_OBJ_NEW_QSTR(MP_QSTR_utime), (mp_obj_t)&utime_module }, \
+#define MICROPY_PORT_BUILTIN_MODULE_WEAK_LINKS \
+ { MP_OBJ_NEW_QSTR(MP_QSTR_time), (mp_obj_t)&utime_module }, \
+
#define MP_STATE_PORT MP_STATE_VM
#define MICROPY_PORT_ROOT_POINTERS \