aboutsummaryrefslogtreecommitdiff
path: root/stmhal/modtime.c
diff options
context:
space:
mode:
authorDamien George2014-10-12 20:23:47 +0100
committerDamien George2014-10-12 20:23:47 +0100
commit0107e90328334fab9a85c1c72c905eed64afee4f (patch)
tree42c69d95688bc866aeb551ecb2d60e2182293bc4 /stmhal/modtime.c
parentc14a81662c1df812c0c6b4299f97966302f16477 (diff)
stmhal: Enable module weak links.
os, time, select modules are now prefixed with u, but are still available (via weak links) as their original names. ure and ujson now available as re and json via weak links.
Diffstat (limited to 'stmhal/modtime.c')
-rw-r--r--stmhal/modtime.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/stmhal/modtime.c b/stmhal/modtime.c
index 89df6ae99..fd8fbb36a 100644
--- a/stmhal/modtime.c
+++ b/stmhal/modtime.c
@@ -336,7 +336,7 @@ STATIC mp_obj_t time_time(void) {
MP_DEFINE_CONST_FUN_OBJ_0(time_time_obj, time_time);
STATIC const mp_map_elem_t time_module_globals_table[] = {
- { MP_OBJ_NEW_QSTR(MP_QSTR___name__), MP_OBJ_NEW_QSTR(MP_QSTR_time) },
+ { MP_OBJ_NEW_QSTR(MP_QSTR___name__), MP_OBJ_NEW_QSTR(MP_QSTR_utime) },
{ MP_OBJ_NEW_QSTR(MP_QSTR_localtime), (mp_obj_t)&time_localtime_obj },
{ MP_OBJ_NEW_QSTR(MP_QSTR_mktime), (mp_obj_t)&time_mktime_obj },
@@ -355,8 +355,8 @@ STATIC const mp_obj_dict_t time_module_globals = {
},
};
-const mp_obj_module_t time_module = {
+const mp_obj_module_t mp_module_utime = {
.base = { &mp_type_module },
- .name = MP_QSTR_time,
+ .name = MP_QSTR_utime,
.globals = (mp_obj_dict_t*)&time_module_globals,
};