summaryrefslogtreecommitdiffstatshomepage
path: root/py/objmodule.c
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2019-10-22 17:03:59 +1100
committerDamien George <damien.p.george@gmail.com>2019-10-22 21:58:05 +1100
commitb02d7e612d12b507a3a91a95eb30187b24ce21a7 (patch)
treedf91ce3d964dccca93f9c2fba7de8c10f935279b /py/objmodule.c
parent30e25174bbf077e8a3cbe2a3a6a97795f8d67dc2 (diff)
downloadmicropython-b02d7e612d12b507a3a91a95eb30187b24ce21a7.tar.gz
micropython-b02d7e612d12b507a3a91a95eb30187b24ce21a7.zip
extmod/modbluetooth: Rename module to "ubluetooth".
For consistency with "umachine". Now that weak links are enabled by default for built-in modules, this should be a no-op, but allows extension of the bluetooth module by user code. Also move registration of ubluetooth to objmodule rather than port-specific.
Diffstat (limited to 'py/objmodule.c')
-rw-r--r--py/objmodule.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/py/objmodule.c b/py/objmodule.c
index d725bb6a14..81558a02ef 100644
--- a/py/objmodule.c
+++ b/py/objmodule.c
@@ -224,6 +224,9 @@ STATIC const mp_rom_map_elem_t mp_builtin_module_table[] = {
#if MICROPY_PY_BTREE
{ MP_ROM_QSTR(MP_QSTR_btree), MP_ROM_PTR(&mp_module_btree) },
#endif
+#if MICROPY_PY_BLUETOOTH
+ { MP_ROM_QSTR(MP_QSTR_ubluetooth), MP_ROM_PTR(&mp_module_ubluetooth) },
+#endif
// extra builtin modules as defined by a port
MICROPY_PORT_BUILTIN_MODULES