extmmod/modonewire: Rename public module to mp_module_onewire.
This follows naming scheme of other modules in extmod.
This commit is contained in:
parent
6cc4da4cb8
commit
eeaab1897b
@ -157,7 +157,7 @@ extern const struct _mp_obj_module_t utime_module;
|
|||||||
extern const struct _mp_obj_module_t uos_module;
|
extern const struct _mp_obj_module_t uos_module;
|
||||||
extern const struct _mp_obj_module_t mp_module_lwip;
|
extern const struct _mp_obj_module_t mp_module_lwip;
|
||||||
extern const struct _mp_obj_module_t mp_module_machine;
|
extern const struct _mp_obj_module_t mp_module_machine;
|
||||||
extern const struct _mp_obj_module_t onewire_module;
|
extern const struct _mp_obj_module_t mp_module_onewire;
|
||||||
|
|
||||||
#define MICROPY_PORT_BUILTIN_MODULES \
|
#define MICROPY_PORT_BUILTIN_MODULES \
|
||||||
{ MP_OBJ_NEW_QSTR(MP_QSTR_esp), (mp_obj_t)&esp_module }, \
|
{ MP_OBJ_NEW_QSTR(MP_QSTR_esp), (mp_obj_t)&esp_module }, \
|
||||||
@ -167,7 +167,7 @@ extern const struct _mp_obj_module_t onewire_module;
|
|||||||
{ MP_OBJ_NEW_QSTR(MP_QSTR_utime), (mp_obj_t)&utime_module }, \
|
{ MP_OBJ_NEW_QSTR(MP_QSTR_utime), (mp_obj_t)&utime_module }, \
|
||||||
{ MP_OBJ_NEW_QSTR(MP_QSTR_uos), (mp_obj_t)&uos_module }, \
|
{ MP_OBJ_NEW_QSTR(MP_QSTR_uos), (mp_obj_t)&uos_module }, \
|
||||||
{ MP_OBJ_NEW_QSTR(MP_QSTR_machine), (mp_obj_t)&mp_module_machine }, \
|
{ MP_OBJ_NEW_QSTR(MP_QSTR_machine), (mp_obj_t)&mp_module_machine }, \
|
||||||
{ MP_OBJ_NEW_QSTR(MP_QSTR__onewire), (mp_obj_t)&onewire_module }, \
|
{ MP_OBJ_NEW_QSTR(MP_QSTR__onewire), (mp_obj_t)&mp_module_onewire }, \
|
||||||
|
|
||||||
#define MICROPY_PORT_BUILTIN_MODULE_WEAK_LINKS \
|
#define MICROPY_PORT_BUILTIN_MODULE_WEAK_LINKS \
|
||||||
{ MP_OBJ_NEW_QSTR(MP_QSTR_time), (mp_obj_t)&utime_module }, \
|
{ MP_OBJ_NEW_QSTR(MP_QSTR_time), (mp_obj_t)&utime_module }, \
|
||||||
|
@ -156,7 +156,7 @@ STATIC const mp_map_elem_t onewire_module_globals_table[] = {
|
|||||||
|
|
||||||
STATIC MP_DEFINE_CONST_DICT(onewire_module_globals, onewire_module_globals_table);
|
STATIC MP_DEFINE_CONST_DICT(onewire_module_globals, onewire_module_globals_table);
|
||||||
|
|
||||||
const mp_obj_module_t onewire_module = {
|
const mp_obj_module_t mp_module_onewire = {
|
||||||
.base = { &mp_type_module },
|
.base = { &mp_type_module },
|
||||||
.globals = (mp_obj_dict_t*)&onewire_module_globals,
|
.globals = (mp_obj_dict_t*)&onewire_module_globals,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user