Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
micropython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
card10
micropython
Commits
f3a1d673
Commit
f3a1d673
authored
10 years ago
by
Damien George
Browse files
Options
Downloads
Patches
Plain Diff
stmhal: Enable ubinascii module, weak link to binascii.
parent
90cd6cd9
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
stmhal/mpconfigport.h
+3
-0
3 additions, 0 deletions
stmhal/mpconfigport.h
stmhal/qstrdefsport.h
+1
-0
1 addition, 0 deletions
stmhal/qstrdefsport.h
with
4 additions
and
0 deletions
stmhal/mpconfigport.h
+
3
−
0
View file @
f3a1d673
...
@@ -60,6 +60,7 @@
...
@@ -60,6 +60,7 @@
#define MICROPY_PY_CMATH (1)
#define MICROPY_PY_CMATH (1)
#define MICROPY_PY_IO (1)
#define MICROPY_PY_IO (1)
#define MICROPY_PY_IO_FILEIO (1)
#define MICROPY_PY_IO_FILEIO (1)
#define MICROPY_PY_UBINASCII (1)
#define MICROPY_PY_UCTYPES (1)
#define MICROPY_PY_UCTYPES (1)
#define MICROPY_PY_UZLIB (1)
#define MICROPY_PY_UZLIB (1)
#define MICROPY_PY_UJSON (1)
#define MICROPY_PY_UJSON (1)
...
@@ -82,6 +83,7 @@ extern const struct _mp_obj_fun_builtin_t mp_builtin_open_obj;
...
@@ -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
// 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
pyb_module
;
extern
const
struct
_mp_obj_module_t
stm_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_ure
;
extern
const
struct
_mp_obj_module_t
mp_module_uzlib
;
extern
const
struct
_mp_obj_module_t
mp_module_uzlib
;
extern
const
struct
_mp_obj_module_t
mp_module_ujson
;
extern
const
struct
_mp_obj_module_t
mp_module_ujson
;
...
@@ -103,6 +105,7 @@ extern const struct _mp_obj_module_t mp_module_network;
...
@@ -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 }, \
{ MP_OBJ_NEW_QSTR(MP_QSTR_network), (mp_obj_t)&mp_module_network }, \
#define MICROPY_PORT_BUILTIN_MODULE_WEAK_LINKS \
#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_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_zlib), (mp_obj_t)&mp_module_uzlib }, \
{ MP_OBJ_NEW_QSTR(MP_QSTR_json), (mp_obj_t)&mp_module_ujson }, \
{ MP_OBJ_NEW_QSTR(MP_QSTR_json), (mp_obj_t)&mp_module_ujson }, \
...
...
This diff is collapsed.
Click to expand it.
stmhal/qstrdefsport.h
+
1
−
0
View file @
f3a1d673
...
@@ -73,6 +73,7 @@ Q(elapsed_millis)
...
@@ -73,6 +73,7 @@ Q(elapsed_millis)
Q
(
elapsed_micros
)
Q
(
elapsed_micros
)
// for module weak links
// for module weak links
Q
(
binascii
)
Q
(
re
)
Q
(
re
)
Q
(
zlib
)
Q
(
zlib
)
Q
(
json
)
Q
(
json
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment