diff options
Diffstat (limited to 'extmod')
| -rw-r--r-- | extmod/modbluetooth.c | 2 | ||||
| -rw-r--r-- | extmod/modbtree.c | 2 | ||||
| -rw-r--r-- | extmod/modframebuf.c | 2 | ||||
| -rw-r--r-- | extmod/modlwip.c | 2 | ||||
| -rw-r--r-- | extmod/moduasyncio.c | 2 | ||||
| -rw-r--r-- | extmod/modubinascii.c | 2 | ||||
| -rw-r--r-- | extmod/moducryptolib.c | 2 | ||||
| -rw-r--r-- | extmod/moductypes.c | 2 | ||||
| -rw-r--r-- | extmod/moduhashlib.c | 2 | ||||
| -rw-r--r-- | extmod/moduheapq.c | 2 | ||||
| -rw-r--r-- | extmod/modujson.c | 2 | ||||
| -rw-r--r-- | extmod/moduos.c | 2 | ||||
| -rw-r--r-- | extmod/moduplatform.c | 2 | ||||
| -rw-r--r-- | extmod/modurandom.c | 2 | ||||
| -rw-r--r-- | extmod/modure.c | 2 | ||||
| -rw-r--r-- | extmod/moduselect.c | 2 | ||||
| -rw-r--r-- | extmod/modussl_axtls.c | 4 | ||||
| -rw-r--r-- | extmod/modussl_mbedtls.c | 4 | ||||
| -rw-r--r-- | extmod/modutimeq.c | 1 | ||||
| -rw-r--r-- | extmod/moduwebsocket.c | 2 | ||||
| -rw-r--r-- | extmod/moduzlib.c | 3 | ||||
| -rw-r--r-- | extmod/modwebrepl.c | 2 |
22 files changed, 46 insertions, 2 deletions
diff --git a/extmod/modbluetooth.c b/extmod/modbluetooth.c index 68656551c..aecf48fd4 100644 --- a/extmod/modbluetooth.c +++ b/extmod/modbluetooth.c @@ -1004,6 +1004,8 @@ const mp_obj_module_t mp_module_ubluetooth = { .globals = (mp_obj_dict_t *)&mp_module_bluetooth_globals, }; +MP_REGISTER_MODULE(MP_QSTR_ubluetooth, mp_module_ubluetooth, MICROPY_PY_BLUETOOTH); + // Helpers #if !MICROPY_PY_BLUETOOTH_USE_SYNC_EVENTS diff --git a/extmod/modbtree.c b/extmod/modbtree.c index 467b68e1d..df33d765e 100644 --- a/extmod/modbtree.c +++ b/extmod/modbtree.c @@ -379,6 +379,8 @@ const mp_obj_module_t mp_module_btree = { .base = { &mp_type_module }, .globals = (mp_obj_dict_t *)&mp_module_btree_globals, }; + +MP_REGISTER_MODULE(MP_QSTR_btree, mp_module_btree, MICROPY_PY_BTREE); #endif #endif // MICROPY_PY_BTREE diff --git a/extmod/modframebuf.c b/extmod/modframebuf.c index fb231362e..4dfdb7eea 100644 --- a/extmod/modframebuf.c +++ b/extmod/modframebuf.c @@ -667,6 +667,8 @@ const mp_obj_module_t mp_module_framebuf = { .base = { &mp_type_module }, .globals = (mp_obj_dict_t *)&framebuf_module_globals, }; + +MP_REGISTER_MODULE(MP_QSTR_framebuf, mp_module_framebuf, MICROPY_PY_FRAMEBUF); #endif #endif // MICROPY_PY_FRAMEBUF diff --git a/extmod/modlwip.c b/extmod/modlwip.c index 4d4ffc1e0..53bead2a3 100644 --- a/extmod/modlwip.c +++ b/extmod/modlwip.c @@ -1778,4 +1778,6 @@ const mp_obj_module_t mp_module_lwip = { .globals = (mp_obj_dict_t *)&mp_module_lwip_globals, }; +MP_REGISTER_MODULE(MP_QSTR_lwip, mp_module_lwip, MICROPY_PY_LWIP); + #endif // MICROPY_PY_LWIP diff --git a/extmod/moduasyncio.c b/extmod/moduasyncio.c index c4ee897c2..b09b8d67b 100644 --- a/extmod/moduasyncio.c +++ b/extmod/moduasyncio.c @@ -310,4 +310,6 @@ const mp_obj_module_t mp_module_uasyncio = { .globals = (mp_obj_dict_t *)&mp_module_uasyncio_globals, }; +MP_REGISTER_MODULE(MP_QSTR__uasyncio, mp_module_uasyncio, MICROPY_PY_UASYNCIO); + #endif // MICROPY_PY_UASYNCIO diff --git a/extmod/modubinascii.c b/extmod/modubinascii.c index b34f232c6..a362a2d6e 100644 --- a/extmod/modubinascii.c +++ b/extmod/modubinascii.c @@ -258,4 +258,6 @@ const mp_obj_module_t mp_module_ubinascii = { .globals = (mp_obj_dict_t *)&mp_module_binascii_globals, }; +MP_REGISTER_MODULE(MP_QSTR_ubinascii, mp_module_ubinascii, MICROPY_PY_UBINASCII); + #endif // MICROPY_PY_UBINASCII diff --git a/extmod/moducryptolib.c b/extmod/moducryptolib.c index 50cdbfa72..ba04a7bde 100644 --- a/extmod/moducryptolib.c +++ b/extmod/moducryptolib.c @@ -374,4 +374,6 @@ const mp_obj_module_t mp_module_ucryptolib = { .globals = (mp_obj_dict_t *)&mp_module_ucryptolib_globals, }; +MP_REGISTER_MODULE(MP_QSTR_ucryptolib, mp_module_ucryptolib, MICROPY_PY_UCRYPTOLIB); + #endif // MICROPY_PY_UCRYPTOLIB diff --git a/extmod/moductypes.c b/extmod/moductypes.c index 7a0cbc39b..a6ebd92eb 100644 --- a/extmod/moductypes.c +++ b/extmod/moductypes.c @@ -717,4 +717,6 @@ const mp_obj_module_t mp_module_uctypes = { .globals = (mp_obj_dict_t *)&mp_module_uctypes_globals, }; +MP_REGISTER_MODULE(MP_QSTR_uctypes, mp_module_uctypes, MICROPY_PY_UCTYPES); + #endif diff --git a/extmod/moduhashlib.c b/extmod/moduhashlib.c index 765dd29c1..ded9972ca 100644 --- a/extmod/moduhashlib.c +++ b/extmod/moduhashlib.c @@ -371,4 +371,6 @@ const mp_obj_module_t mp_module_uhashlib = { .globals = (mp_obj_dict_t *)&mp_module_uhashlib_globals, }; +MP_REGISTER_MODULE(MP_QSTR_uhashlib, mp_module_uhashlib, MICROPY_PY_UHASHLIB); + #endif // MICROPY_PY_UHASHLIB diff --git a/extmod/moduheapq.c b/extmod/moduheapq.c index 073ce516b..42871f2c0 100644 --- a/extmod/moduheapq.c +++ b/extmod/moduheapq.c @@ -117,6 +117,8 @@ const mp_obj_module_t mp_module_uheapq = { .base = { &mp_type_module }, .globals = (mp_obj_dict_t *)&mp_module_uheapq_globals, }; + +MP_REGISTER_MODULE(MP_QSTR_uheapq, mp_module_uheapq, MICROPY_PY_UHEAPQ); #endif #endif // MICROPY_PY_UHEAPQ diff --git a/extmod/modujson.c b/extmod/modujson.c index e5bfb0d96..befa351f1 100644 --- a/extmod/modujson.c +++ b/extmod/modujson.c @@ -381,4 +381,6 @@ const mp_obj_module_t mp_module_ujson = { .globals = (mp_obj_dict_t *)&mp_module_ujson_globals, }; +MP_REGISTER_MODULE(MP_QSTR_ujson, mp_module_ujson, MICROPY_PY_UJSON); + #endif // MICROPY_PY_UJSON diff --git a/extmod/moduos.c b/extmod/moduos.c index ed278dd54..2b902eb21 100644 --- a/extmod/moduos.c +++ b/extmod/moduos.c @@ -176,4 +176,6 @@ const mp_obj_module_t mp_module_uos = { .globals = (mp_obj_dict_t *)&os_module_globals, }; +MP_REGISTER_MODULE(MP_QSTR_uos, mp_module_uos, MICROPY_PY_UOS); + #endif // MICROPY_PY_UOS diff --git a/extmod/moduplatform.c b/extmod/moduplatform.c index fa59c9227..16e45078f 100644 --- a/extmod/moduplatform.c +++ b/extmod/moduplatform.c @@ -75,4 +75,6 @@ const mp_obj_module_t mp_module_uplatform = { .globals = (mp_obj_dict_t *)&modplatform_globals, }; +MP_REGISTER_MODULE(MP_QSTR_uplatform, mp_module_uplatform, MICROPY_PY_UPLATFORM); + #endif // MICROPY_PY_UPLATFORM diff --git a/extmod/modurandom.c b/extmod/modurandom.c index 21fbac694..6e5f99de7 100644 --- a/extmod/modurandom.c +++ b/extmod/modurandom.c @@ -254,6 +254,8 @@ const mp_obj_module_t mp_module_urandom = { .base = { &mp_type_module }, .globals = (mp_obj_dict_t *)&mp_module_urandom_globals, }; + +MP_REGISTER_MODULE(MP_QSTR_urandom, mp_module_urandom, MICROPY_PY_URANDOM); #endif #endif // MICROPY_PY_URANDOM diff --git a/extmod/modure.c b/extmod/modure.c index 70bc02aa4..1d9d82c7b 100644 --- a/extmod/modure.c +++ b/extmod/modure.c @@ -447,6 +447,8 @@ const mp_obj_module_t mp_module_ure = { .base = { &mp_type_module }, .globals = (mp_obj_dict_t *)&mp_module_re_globals, }; + +MP_REGISTER_MODULE(MP_QSTR_ure, mp_module_ure, MICROPY_PY_URE); #endif // Source files #include'd here to make sure they're compiled in diff --git a/extmod/moduselect.c b/extmod/moduselect.c index 27dc04604..296d38a5d 100644 --- a/extmod/moduselect.c +++ b/extmod/moduselect.c @@ -373,4 +373,6 @@ const mp_obj_module_t mp_module_uselect = { .globals = (mp_obj_dict_t *)&mp_module_select_globals, }; +MP_REGISTER_MODULE(MP_QSTR_uselect, mp_module_uselect, MICROPY_PY_USELECT); + #endif // MICROPY_PY_USELECT diff --git a/extmod/modussl_axtls.c b/extmod/modussl_axtls.c index 9d5934206..c9ce629b6 100644 --- a/extmod/modussl_axtls.c +++ b/extmod/modussl_axtls.c @@ -358,4 +358,6 @@ const mp_obj_module_t mp_module_ussl = { .globals = (mp_obj_dict_t *)&mp_module_ssl_globals, }; -#endif // MICROPY_PY_USSL +MP_REGISTER_MODULE(MP_QSTR_ussl, mp_module_ussl, MICROPY_PY_USSL && MICROPY_SSL_AXTLS); + +#endif // MICROPY_PY_USSL && MICROPY_SSL_AXTLS diff --git a/extmod/modussl_mbedtls.c b/extmod/modussl_mbedtls.c index 277af37c7..8496642d0 100644 --- a/extmod/modussl_mbedtls.c +++ b/extmod/modussl_mbedtls.c @@ -418,4 +418,6 @@ const mp_obj_module_t mp_module_ussl = { .globals = (mp_obj_dict_t *)&mp_module_ssl_globals, }; -#endif // MICROPY_PY_USSL +MP_REGISTER_MODULE(MP_QSTR_ussl, mp_module_ussl, MICROPY_PY_USSL && MICROPY_SSL_MBEDTLS); + +#endif // MICROPY_PY_USSL && MICROPY_SSL_MBEDTLS diff --git a/extmod/modutimeq.c b/extmod/modutimeq.c index e92f4d903..93a9d09b0 100644 --- a/extmod/modutimeq.c +++ b/extmod/modutimeq.c @@ -229,4 +229,5 @@ const mp_obj_module_t mp_module_utimeq = { .globals = (mp_obj_dict_t *)&mp_module_utimeq_globals, }; +MP_REGISTER_MODULE(MP_QSTR_utimeq, mp_module_utimeq, MICROPY_PY_UTIMEQ); #endif // MICROPY_PY_UTIMEQ diff --git a/extmod/moduwebsocket.c b/extmod/moduwebsocket.c index 44e77da56..48f4cc78e 100644 --- a/extmod/moduwebsocket.c +++ b/extmod/moduwebsocket.c @@ -310,4 +310,6 @@ const mp_obj_module_t mp_module_uwebsocket = { .globals = (mp_obj_dict_t *)&uwebsocket_module_globals, }; +MP_REGISTER_MODULE(MP_QSTR_uwebsocket, mp_module_uwebsocket, MICROPY_PY_UWEBSOCKET); + #endif // MICROPY_PY_UWEBSOCKET diff --git a/extmod/moduzlib.c b/extmod/moduzlib.c index d02404f1c..b74c6b7b1 100644 --- a/extmod/moduzlib.c +++ b/extmod/moduzlib.c @@ -221,6 +221,9 @@ const mp_obj_module_t mp_module_uzlib = { .base = { &mp_type_module }, .globals = (mp_obj_dict_t *)&mp_module_uzlib_globals, }; + + +MP_REGISTER_MODULE(MP_QSTR_uzlib, mp_module_uzlib, MICROPY_PY_UZLIB); #endif // Source files #include'd here to make sure they're compiled in diff --git a/extmod/modwebrepl.c b/extmod/modwebrepl.c index 63810447f..e5fa5128c 100644 --- a/extmod/modwebrepl.c +++ b/extmod/modwebrepl.c @@ -363,4 +363,6 @@ const mp_obj_module_t mp_module_webrepl = { .globals = (mp_obj_dict_t *)&webrepl_module_globals, }; +MP_REGISTER_MODULE(MP_QSTR__webrepl, mp_module_webrepl, MICROPY_PY_WEBREPL); + #endif // MICROPY_PY_WEBREPL |
