Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
f3a1d673
Commit
f3a1d673
authored
Dec 24, 2014
by
Damien George
Browse files
stmhal: Enable ubinascii module, weak link to binascii.
parent
90cd6cd9
Changes
2
Hide whitespace changes
Inline
Side-by-side
stmhal/mpconfigport.h
View file @
f3a1d673
...
...
@@ -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 }, \
...
...
stmhal/qstrdefsport.h
View file @
f3a1d673
...
...
@@ -73,6 +73,7 @@ Q(elapsed_millis)
Q
(
elapsed_micros
)
// for module weak links
Q
(
binascii
)
Q
(
re
)
Q
(
zlib
)
Q
(
json
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment