javascript: Make port-specific modules use MP_REGISTER_MODULE.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This commit is contained in:
parent
ec2fe5d6ca
commit
9e4da2320a
|
@ -54,3 +54,5 @@ const mp_obj_module_t mp_module_utime = {
|
|||
.base = { &mp_type_module },
|
||||
.globals = (mp_obj_dict_t *)&time_module_globals,
|
||||
};
|
||||
|
||||
MP_REGISTER_MODULE(MP_QSTR_utime, mp_module_utime, 1);
|
||||
|
|
|
@ -126,11 +126,6 @@
|
|||
|
||||
#define MP_SSIZE_MAX (0x7fffffff)
|
||||
|
||||
extern const struct _mp_obj_module_t mp_module_utime;
|
||||
|
||||
#define MICROPY_PORT_BUILTIN_MODULES \
|
||||
{ MP_ROM_QSTR(MP_QSTR_utime), MP_ROM_PTR(&mp_module_utime) }, \
|
||||
|
||||
// #define MICROPY_EVENT_POLL_HOOK {ets_event_poll();}
|
||||
#if MICROPY_PY_THREAD
|
||||
#define MICROPY_EVENT_POLL_HOOK \
|
||||
|
|
Loading…
Reference in New Issue