From 0107e90328334fab9a85c1c72c905eed64afee4f Mon Sep 17 00:00:00 2001 From: Damien George Date: Sun, 12 Oct 2014 20:23:47 +0100 Subject: 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. --- stmhal/modtime.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'stmhal/modtime.c') 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, }; -- cgit v1.2.3