@@ -412,27 +412,18 @@ extern const struct _mp_obj_module_t digitalio_module;
412412#define DIGITALIO_MODULE
413413#endif
414414
415+ // CIRCUITPY_DISPLAYIO uses MP_REGISTER_MODULE
416+ // CIRCUITPY_TERMINALIO uses MP_REGISTER_MODULE
417+ // CIRCUITPY_FONTIO uses MP_REGISTER_MODULE
418+
415419#if CIRCUITPY_DISPLAYIO
416- extern const struct _mp_obj_module_t displayio_module ;
417- extern const struct _mp_obj_module_t fontio_module ;
418- extern const struct _mp_obj_module_t terminalio_module ;
419- #define DISPLAYIO_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_displayio), (mp_obj_t)&displayio_module },
420420#ifndef CIRCUITPY_DISPLAY_LIMIT
421421#define CIRCUITPY_DISPLAY_LIMIT (1)
422422#endif
423423#else
424- #define DISPLAYIO_MODULE
425424#define CIRCUITPY_DISPLAY_LIMIT (0)
426425#endif
427426
428- #if CIRCUITPY_DISPLAYIO && CIRCUITPY_TERMINALIO
429- #define FONTIO_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_fontio), (mp_obj_t)&fontio_module },
430- #define TERMINALIO_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_terminalio), (mp_obj_t)&terminalio_module },
431- #else
432- #define FONTIO_MODULE
433- #define TERMINALIO_MODULE
434- #endif
435-
436427#if CIRCUITPY_DUALBANK
437428extern const struct _mp_obj_module_t dualbank_module ;
438429#define DUALBANK_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_dualbank), (mp_obj_t)&dualbank_module },
@@ -886,7 +877,7 @@ extern const struct _mp_obj_module_t msgpack_module;
886877 TIME_MODULE_ALT_NAME \
887878
888879// This is an inclusive list that should correspond to the CIRCUITPY_XXX list above,
889- // including dependencies such as TERMINALIO depending on DISPLAYIO (shown by indentation) .
880+ // including dependencies.
890881// Some of these definitions will be blank depending on what is turned on and off.
891882// Some are omitted because they're in MICROPY_PORT_BUILTIN_MODULE_WEAK_LINKS above.
892883#define MICROPY_PORT_BUILTIN_MODULES_STRONG_LINKS \
@@ -912,10 +903,7 @@ extern const struct _mp_obj_module_t msgpack_module;
912903 CANIO_MODULE \
913904 COUNTIO_MODULE \
914905 DIGITALIO_MODULE \
915- DISPLAYIO_MODULE \
916906 DUALBANK_MODULE \
917- FONTIO_MODULE \
918- TERMINALIO_MODULE \
919907 VECTORIO_MODULE \
920908 ERRNO_MODULE \
921909 ESPIDF_MODULE \
0 commit comments