summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-12-24 16:24:42 +0000
committerDamien George <damien.p.george@gmail.com>2014-12-24 16:24:42 +0000
commitf3a1d673de96c588356f768b8042c88710351de3 (patch)
treed747752573bb857753f3b68d262e793402cccb70
parent90cd6cd9870e45da867c61d7488c33103222b353 (diff)
downloadmicropython-f3a1d673de96c588356f768b8042c88710351de3.tar.gz
micropython-f3a1d673de96c588356f768b8042c88710351de3.zip
stmhal: Enable ubinascii module, weak link to binascii.
-rw-r--r--stmhal/mpconfigport.h3
-rw-r--r--stmhal/qstrdefsport.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/stmhal/mpconfigport.h b/stmhal/mpconfigport.h
index 92dafe83d8..c01587f4f4 100644
--- a/stmhal/mpconfigport.h
+++ b/stmhal/mpconfigport.h
@@ -60,6 +60,7 @@
#define MICROPY_PY_CMATH (1)
#define MICROPY_PY_IO (1)
#define MICROPY_PY_IO_FILEIO (1)
+#define MICROPY_PY_UBINASCII (1)
#define MICROPY_PY_UCTYPES (1)
#define MICROPY_PY_UZLIB (1)
#define MICROPY_PY_UJSON (1)
@@ -82,6 +83,7 @@ extern const struct _mp_obj_fun_builtin_t mp_builtin_open_obj;
// extra built in modules to add to the list of known ones
extern const struct _mp_obj_module_t pyb_module;
extern const struct _mp_obj_module_t stm_module;
+extern const struct _mp_obj_module_t mp_module_ubinascii;
extern const struct _mp_obj_module_t mp_module_ure;
extern const struct _mp_obj_module_t mp_module_uzlib;
extern const struct _mp_obj_module_t mp_module_ujson;
@@ -103,6 +105,7 @@ extern const struct _mp_obj_module_t mp_module_network;
{ MP_OBJ_NEW_QSTR(MP_QSTR_network), (mp_obj_t)&mp_module_network }, \
#define MICROPY_PORT_BUILTIN_MODULE_WEAK_LINKS \
+ { MP_OBJ_NEW_QSTR(MP_QSTR_binascii), (mp_obj_t)&mp_module_ubinascii }, \
{ MP_OBJ_NEW_QSTR(MP_QSTR_re), (mp_obj_t)&mp_module_ure }, \
{ MP_OBJ_NEW_QSTR(MP_QSTR_zlib), (mp_obj_t)&mp_module_uzlib }, \
{ MP_OBJ_NEW_QSTR(MP_QSTR_json), (mp_obj_t)&mp_module_ujson }, \
diff --git a/stmhal/qstrdefsport.h b/stmhal/qstrdefsport.h
index e274c4f178..8348fdcceb 100644
--- a/stmhal/qstrdefsport.h
+++ b/stmhal/qstrdefsport.h
@@ -73,6 +73,7 @@ Q(elapsed_millis)
Q(elapsed_micros)
// for module weak links
+Q(binascii)
Q(re)
Q(zlib)
Q(json)