File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -39,3 +39,5 @@ const mp_obj_module_t mp_module_samd = {
39
39
.base = { & mp_type_module },
40
40
.globals = (mp_obj_dict_t * )& samd_module_globals ,
41
41
};
42
+
43
+ MP_REGISTER_MODULE (MP_QSTR_samd , mp_module_samd , 1 );
Original file line number Diff line number Diff line change @@ -99,3 +99,5 @@ const mp_obj_module_t mp_module_utime = {
99
99
.base = { & mp_type_module },
100
100
.globals = (mp_obj_dict_t * )& time_module_globals ,
101
101
};
102
+
103
+ MP_REGISTER_MODULE (MP_QSTR_utime , mp_module_utime , 1 );
Original file line number Diff line number Diff line change 108
108
#define MICROPY_PORT_BUILTINS \
109
109
{ MP_ROM_QSTR(MP_QSTR_open), MP_ROM_PTR(&mp_builtin_open_obj) },
110
110
111
- extern const struct _mp_obj_module_t mp_module_samd ;
112
- extern const struct _mp_obj_module_t mp_module_utime ;
113
-
114
- #define MICROPY_PORT_BUILTIN_MODULES \
115
- { MP_ROM_QSTR(MP_QSTR_samd), MP_ROM_PTR(&mp_module_samd) }, \
116
- { MP_ROM_QSTR(MP_QSTR_utime), MP_ROM_PTR(&mp_module_utime) }, \
117
-
118
111
#define MICROPY_PORT_ROOT_POINTERS \
119
112
const char *readline_hist[8];
120
113
You can’t perform that action at this time.
0 commit comments