nrf5/modules: Adding Peripheral, Service and UUID class to the ubluepy module globals table.
This commit is contained in:
parent
0264f68698
commit
ddc31d4084
@ -28,9 +28,12 @@
|
||||
|
||||
#if MICROPY_PY_UBLUEPY
|
||||
|
||||
extern const mp_obj_type_t ubluepy_peripheral_type;
|
||||
extern const mp_obj_type_t ubluepy_service_type;
|
||||
extern const mp_obj_type_t ubluepy_uuid_type;
|
||||
|
||||
STATIC const mp_map_elem_t mp_module_ubluepy_globals_table[] = {
|
||||
{ MP_OBJ_NEW_QSTR(MP_QSTR___name__), MP_OBJ_NEW_QSTR(MP_QSTR_ubluepy) },
|
||||
#if 0
|
||||
#if MICROPY_PY_UBLUEPY_PERIPHERAL
|
||||
{ MP_OBJ_NEW_QSTR(MP_QSTR_Peripheral), (mp_obj_t)&ubluepy_peripheral_type },
|
||||
#endif
|
||||
@ -46,19 +49,14 @@ STATIC const mp_map_elem_t mp_module_ubluepy_globals_table[] = {
|
||||
#if MICROPY_PY_UBLUEPY_DEFAULT_DELEGATE
|
||||
{ MP_OBJ_NEW_QSTR(MP_QSTR_DefaultDelegate), (mp_obj_t)&ubluepy_default_delegate_type },
|
||||
#endif
|
||||
#if MICROPY_PY_UBLUEPY_UUID
|
||||
{ MP_OBJ_NEW_QSTR(MP_QSTR_UUID), (mp_obj_t)&ubluepy_uuid_type },
|
||||
#endif
|
||||
#if MICROPY_PY_UBLUEPY_SERVICE
|
||||
{ MP_OBJ_NEW_QSTR(MP_QSTR_Service), (mp_obj_t)&ubluepy_service_type },
|
||||
#endif
|
||||
#if MICROPY_PY_UBLUEPY_CHARACTERISTIC
|
||||
{ MP_OBJ_NEW_QSTR(MP_QSTR_Characteristic), (mp_obj_t)&ubluepy_characteristic_type },
|
||||
#endif
|
||||
#if MICROPY_PY_UBLUEPY_DESCRIPTOR
|
||||
{ MP_OBJ_NEW_QSTR(MP_QSTR_Descriptor), (mp_obj_t)&ubluepy_descriptor_type },
|
||||
#endif
|
||||
#endif // 0
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user