Skip to content

Commit 4eab44a

Browse files
committed
extmod: Make extmod modules use MP_REGISTER_MODULE.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
1 parent 4694501 commit 4eab44a

35 files changed

Lines changed: 69 additions & 74 deletions

extmod/modbluetooth.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,6 +1004,8 @@ const mp_obj_module_t mp_module_ubluetooth = {
10041004
.globals = (mp_obj_dict_t *)&mp_module_bluetooth_globals,
10051005
};
10061006

1007+
MP_REGISTER_MODULE(MP_QSTR_ubluetooth, mp_module_ubluetooth, MICROPY_PY_BLUETOOTH);
1008+
10071009
// Helpers
10081010

10091011
#if !MICROPY_PY_BLUETOOTH_USE_SYNC_EVENTS

extmod/modbtree.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,8 @@ const mp_obj_module_t mp_module_btree = {
379379
.base = { &mp_type_module },
380380
.globals = (mp_obj_dict_t *)&mp_module_btree_globals,
381381
};
382+
383+
MP_REGISTER_MODULE(MP_QSTR_btree, mp_module_btree, MICROPY_PY_BTREE);
382384
#endif
383385

384386
#endif // MICROPY_PY_BTREE

extmod/modframebuf.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,8 @@ const mp_obj_module_t mp_module_framebuf = {
667667
.base = { &mp_type_module },
668668
.globals = (mp_obj_dict_t *)&framebuf_module_globals,
669669
};
670+
671+
MP_REGISTER_MODULE(MP_QSTR_framebuf, mp_module_framebuf, MICROPY_PY_FRAMEBUF);
670672
#endif
671673

672674
#endif // MICROPY_PY_FRAMEBUF

extmod/modlwip.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1778,4 +1778,6 @@ const mp_obj_module_t mp_module_lwip = {
17781778
.globals = (mp_obj_dict_t *)&mp_module_lwip_globals,
17791779
};
17801780

1781+
MP_REGISTER_MODULE(MP_QSTR_lwip, mp_module_lwip, MICROPY_PY_LWIP);
1782+
17811783
#endif // MICROPY_PY_LWIP

extmod/moduasyncio.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,4 +310,6 @@ const mp_obj_module_t mp_module_uasyncio = {
310310
.globals = (mp_obj_dict_t *)&mp_module_uasyncio_globals,
311311
};
312312

313+
MP_REGISTER_MODULE(MP_QSTR__uasyncio, mp_module_uasyncio, MICROPY_PY_UASYNCIO);
314+
313315
#endif // MICROPY_PY_UASYNCIO

extmod/modubinascii.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,4 +258,6 @@ const mp_obj_module_t mp_module_ubinascii = {
258258
.globals = (mp_obj_dict_t *)&mp_module_binascii_globals,
259259
};
260260

261+
MP_REGISTER_MODULE(MP_QSTR_ubinascii, mp_module_ubinascii, MICROPY_PY_UBINASCII);
262+
261263
#endif // MICROPY_PY_UBINASCII

extmod/moducryptolib.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,4 +374,6 @@ const mp_obj_module_t mp_module_ucryptolib = {
374374
.globals = (mp_obj_dict_t *)&mp_module_ucryptolib_globals,
375375
};
376376

377+
MP_REGISTER_MODULE(MP_QSTR_ucryptolib, mp_module_ucryptolib, MICROPY_PY_UCRYPTOLIB);
378+
377379
#endif // MICROPY_PY_UCRYPTOLIB

extmod/moductypes.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,4 +717,6 @@ const mp_obj_module_t mp_module_uctypes = {
717717
.globals = (mp_obj_dict_t *)&mp_module_uctypes_globals,
718718
};
719719

720+
MP_REGISTER_MODULE(MP_QSTR_uctypes, mp_module_uctypes, MICROPY_PY_UCTYPES);
721+
720722
#endif

extmod/moduhashlib.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,4 +371,6 @@ const mp_obj_module_t mp_module_uhashlib = {
371371
.globals = (mp_obj_dict_t *)&mp_module_uhashlib_globals,
372372
};
373373

374+
MP_REGISTER_MODULE(MP_QSTR_uhashlib, mp_module_uhashlib, MICROPY_PY_UHASHLIB);
375+
374376
#endif // MICROPY_PY_UHASHLIB

extmod/moduheapq.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ const mp_obj_module_t mp_module_uheapq = {
117117
.base = { &mp_type_module },
118118
.globals = (mp_obj_dict_t *)&mp_module_uheapq_globals,
119119
};
120+
121+
MP_REGISTER_MODULE(MP_QSTR_uheapq, mp_module_uheapq, MICROPY_PY_UHEAPQ);
120122
#endif
121123

122124
#endif // MICROPY_PY_UHEAPQ

0 commit comments

Comments
 (0)