File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -360,3 +360,5 @@ const mp_obj_module_t pyb_module = {
360
360
.base = { & mp_type_module },
361
361
.globals = (mp_obj_dict_t * )& pyb_module_globals ,
362
362
};
363
+
364
+ MP_REGISTER_MODULE (MP_QSTR_pyb , pyb_module , 1 );
Original file line number Diff line number Diff line change 34
34
// extra built in names to add to the global namespace
35
35
#define MICROPY_PORT_BUILTINS \
36
36
37
- // extra built in modules to add to the list of known ones
38
- extern const struct _mp_obj_module_t os_module ;
39
- extern const struct _mp_obj_module_t pyb_module ;
40
- extern const struct _mp_obj_module_t time_module ;
41
- #define MICROPY_PORT_BUILTIN_MODULES \
42
- { MP_ROM_QSTR(MP_QSTR_pyb), MP_ROM_PTR(&pyb_module) }, \
43
-
44
37
// extra constants
38
+ extern const struct _mp_obj_module_t pyb_module ;
45
39
#define MICROPY_PORT_CONSTANTS \
46
40
{ MP_ROM_QSTR(MP_QSTR_pyb), MP_ROM_PTR(&pyb_module) }, \
47
41
You can’t perform that action at this time.
0 commit comments