summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-05-10 23:27:29 +0100
committerDamien George <damien.p.george@gmail.com>2016-05-10 23:30:39 +0100
commit7e1f5809104ce69979de7b7fd958e68e428d7535 (patch)
treeed430bb76d854b2a102ea258b70764469747a20d /esp8266
parent4f2ba9fbdcbafd7ae09199186320f4173bcc8c31 (diff)
downloadmicropython-7e1f5809104ce69979de7b7fd958e68e428d7535.tar.gz
micropython-7e1f5809104ce69979de7b7fd958e68e428d7535.zip
esp8266: Enable uerrno module, weak linked also as errno.
Diffstat (limited to 'esp8266')
-rw-r--r--esp8266/mpconfigport.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/esp8266/mpconfigport.h b/esp8266/mpconfigport.h
index 1c0b465abe..1a9e54ee05 100644
--- a/esp8266/mpconfigport.h
+++ b/esp8266/mpconfigport.h
@@ -46,6 +46,7 @@
#define MICROPY_PY_SYS_MAXSIZE (1)
#define MICROPY_PY_SYS_EXIT (1)
#define MICROPY_PY_SYS_STDFILES (1)
+#define MICROPY_PY_UERRNO (1)
#define MICROPY_PY_UBINASCII (1)
#define MICROPY_PY_UCTYPES (1)
#define MICROPY_PY_UHASHLIB (1)
@@ -141,6 +142,7 @@ extern const struct _mp_obj_module_t onewire_module;
{ MP_OBJ_NEW_QSTR(MP_QSTR_time), (mp_obj_t)&utime_module }, \
{ MP_OBJ_NEW_QSTR(MP_QSTR_os), (mp_obj_t)&uos_module }, \
{ MP_OBJ_NEW_QSTR(MP_QSTR_json), (mp_obj_t)&mp_module_ujson }, \
+ { MP_OBJ_NEW_QSTR(MP_QSTR_errno), (mp_obj_t)&mp_module_uerrno }, \
#define MP_STATE_PORT MP_STATE_VM