Browse Source

extmmod/modonewire: Rename public module to mp_module_onewire.

This follows naming scheme of other modules in extmod.
pull/3165/head
Damien George 7 years ago
parent
commit
eeaab1897b
  1. 4
      esp8266/mpconfigport.h
  2. 2
      extmod/modonewire.c

4
esp8266/mpconfigport.h

@ -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 }, \

2
extmod/modonewire.c

@ -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…
Cancel
Save