@@ -412,27 +412,18 @@ extern const struct _mp_obj_module_t digitalio_module;
412
412
#define DIGITALIO_MODULE
413
413
#endif
414
414
415
+ // CIRCUITPY_DISPLAYIO uses MP_REGISTER_MODULE
416
+ // CIRCUITPY_TERMINALIO uses MP_REGISTER_MODULE
417
+ // CIRCUITPY_FONTIO uses MP_REGISTER_MODULE
418
+
415
419
#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 },
420
420
#ifndef CIRCUITPY_DISPLAY_LIMIT
421
421
#define CIRCUITPY_DISPLAY_LIMIT (1)
422
422
#endif
423
423
#else
424
- #define DISPLAYIO_MODULE
425
424
#define CIRCUITPY_DISPLAY_LIMIT (0)
426
425
#endif
427
426
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
-
436
427
#if CIRCUITPY_DUALBANK
437
428
extern const struct _mp_obj_module_t dualbank_module ;
438
429
#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;
886
877
TIME_MODULE_ALT_NAME \
887
878
888
879
// 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 (shown by indentation).
890
881
// Some of these definitions will be blank depending on what is turned on and off.
891
882
// Some are omitted because they're in MICROPY_PORT_BUILTIN_MODULE_WEAK_LINKS above.
892
883
#define MICROPY_PORT_BUILTIN_MODULES_STRONG_LINKS \
@@ -912,10 +903,7 @@ extern const struct _mp_obj_module_t msgpack_module;
912
903
CANIO_MODULE \
913
904
COUNTIO_MODULE \
914
905
DIGITALIO_MODULE \
915
- DISPLAYIO_MODULE \
916
906
DUALBANK_MODULE \
917
- FONTIO_MODULE \
918
- TERMINALIO_MODULE \
919
907
VECTORIO_MODULE \
920
908
ERRNO_MODULE \
921
909
ESPIDF_MODULE \
0 commit comments