@@ -374,13 +374,7 @@ extern const struct _mp_obj_module_t _eve_module;
374
374
#endif
375
375
376
376
// CIRCUITPY_FRAMEBUFFERIO uses MP_REGISTER_MODULE
377
-
378
- #if CIRCUITPY_VECTORIO
379
- extern const struct _mp_obj_module_t vectorio_module ;
380
- #define VECTORIO_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_vectorio), (mp_obj_t)&vectorio_module },
381
- #else
382
- #define VECTORIO_MODULE
383
- #endif
377
+ // CIRCUITPY_VECTORIO uses MP_REGISTER_MODULE
384
378
385
379
// CIRCUITPY_FREQUENCYIO uses MP_REGISTER_MODULE
386
380
// CIRCUITPY_GAMEPADSHIFT uses MP_REGISTER_MODULE
@@ -456,25 +450,14 @@ extern const struct _mp_obj_module_t memorymonitor_module;
456
450
#endif
457
451
458
452
// CIRCUITPY_MICROCONTROLLER uses MP_REGISTER_MODULE
459
-
460
- #if CIRCUITPY_NEOPIXEL_WRITE
461
- extern const struct _mp_obj_module_t neopixel_write_module ;
462
- #define NEOPIXEL_WRITE_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_neopixel_write),(mp_obj_t)&neopixel_write_module },
463
- #else
464
- #define NEOPIXEL_WRITE_MODULE
465
- #endif
453
+ // CIRCUITPY_NEOPIXEL_WRITE uses MP_REGISTER_MODULE
466
454
467
455
// This is not a top-level module; it's microcontroller.nvm.
468
456
#if CIRCUITPY_NVM
469
457
extern const struct _mp_obj_module_t nvm_module ;
470
458
#endif
471
459
472
- #if CIRCUITPY_ONEWIREIO
473
- extern const struct _mp_obj_module_t onewireio_module ;
474
- #define ONEWIREIO_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_onewireio), (mp_obj_t)&onewireio_module },
475
- #else
476
- #define ONEWIREIO_MODULE
477
- #endif
460
+ // CIRCUITPY_ONEWIREIO_WRITE uses MP_REGISTER_MODULE
478
461
479
462
#if CIRCUITPY_OS
480
463
extern const struct _mp_obj_module_t os_module ;
@@ -493,43 +476,12 @@ extern const struct _mp_obj_module_t pew_module;
493
476
#endif
494
477
495
478
// CIRCUITPY_PIXELBUF (pixelbuf_module) uses MP_REGISTER_MODULE
496
-
497
- #if CIRCUITPY_PS2IO
498
- extern const struct _mp_obj_module_t ps2io_module ;
499
- #define PS2IO_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_ps2io), (mp_obj_t)&ps2io_module },
500
- #else
501
- #define PS2IO_MODULE
502
- #endif
503
-
504
- #if CIRCUITPY_PULSEIO
505
- extern const struct _mp_obj_module_t pulseio_module ;
506
- #define PULSEIO_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_pulseio), (mp_obj_t)&pulseio_module },
507
- #else
508
- #define PULSEIO_MODULE
509
- #endif
510
-
511
- #if CIRCUITPY_PWMIO
512
- extern const struct _mp_obj_module_t pwmio_module ;
513
- #define PWMIO_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_pwmio), (mp_obj_t)&pwmio_module },
514
- #else
515
- #define PWMIO_MODULE
516
- #endif
517
-
479
+ // CIRCUITPY_PS2IO uses MP_REGISTER_MODULE
480
+ // CIRCUITPY_PULSEIO uses MP_REGISTER_MODULE
481
+ // CIRCUITPY_PWMIO uses MP_REGISTER_MODULE
518
482
// CIRCUITPY_QRIO uses MP_REGISTER_MODULE
519
-
520
- #if CIRCUITPY_RAINBOWIO
521
- extern const struct _mp_obj_module_t rainbowio_module ;
522
- #define RAINBOWIO_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_rainbowio), (mp_obj_t)&rainbowio_module },
523
- #else
524
- #define RAINBOWIO_MODULE
525
- #endif
526
-
527
- #if CIRCUITPY_RANDOM
528
- extern const struct _mp_obj_module_t random_module ;
529
- #define RANDOM_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_random), (mp_obj_t)&random_module },
530
- #else
531
- #define RANDOM_MODULE
532
- #endif
483
+ // CIRCUITPY_RAINBOWIO uses MP_REGISTER_MODULE
484
+ // CIRCUITPY_RANDOM uses MP_REGISTER_MODULE
533
485
534
486
#if CIRCUITPY_RE
535
487
#define MICROPY_PY_URE (1)
@@ -538,19 +490,8 @@ extern const struct _mp_obj_module_t random_module;
538
490
#define RE_MODULE
539
491
#endif
540
492
541
- #if CIRCUITPY_RGBMATRIX
542
- extern const struct _mp_obj_module_t rgbmatrix_module ;
543
- #define RGBMATRIX_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_rgbmatrix),(mp_obj_t)&rgbmatrix_module },
544
- #else
545
- #define RGBMATRIX_MODULE
546
- #endif
547
-
548
- #if CIRCUITPY_ROTARYIO
549
- extern const struct _mp_obj_module_t rotaryio_module ;
550
- #define ROTARYIO_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_rotaryio), (mp_obj_t)&rotaryio_module },
551
- #else
552
- #define ROTARYIO_MODULE
553
- #endif
493
+ // CIRCUITPY_RGBMATRIX uses MP_REGISTER_MODULE
494
+ // CIRCUITPY_ROTARYIO uses MP_REGISTER_MODULE
554
495
555
496
#if CIRCUITPY_RP2PIO
556
497
extern const struct _mp_obj_module_t rp2pio_module ;
@@ -559,12 +500,7 @@ extern const struct _mp_obj_module_t rp2pio_module;
559
500
#define RP2PIO_MODULE
560
501
#endif
561
502
562
- #if CIRCUITPY_RTC
563
- extern const struct _mp_obj_module_t rtc_module ;
564
- #define RTC_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_rtc), (mp_obj_t)&rtc_module },
565
- #else
566
- #define RTC_MODULE
567
- #endif
503
+ // CIRCUITPY_RTC uses MP_REGISTER_MODULE
568
504
569
505
#if CIRCUITPY_SAMD
570
506
extern const struct _mp_obj_module_t samd_module ;
@@ -573,12 +509,7 @@ extern const struct _mp_obj_module_t samd_module;
573
509
#define SAMD_MODULE
574
510
#endif
575
511
576
- #if CIRCUITPY_SDCARDIO
577
- extern const struct _mp_obj_module_t sdcardio_module ;
578
- #define SDCARDIO_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_sdcardio), (mp_obj_t)&sdcardio_module },
579
- #else
580
- #define SDCARDIO_MODULE
581
- #endif
512
+ // CIRCUITPY_SDCARDIO uses MP_REGISTER_MODULE
582
513
583
514
#if CIRCUITPY_SDIOIO
584
515
extern const struct _mp_obj_module_t sdioio_module ;
@@ -587,12 +518,7 @@ extern const struct _mp_obj_module_t sdioio_module;
587
518
#define SDIOIO_MODULE
588
519
#endif
589
520
590
- #if CIRCUITPY_SHARPDISPLAY
591
- extern const struct _mp_obj_module_t sharpdisplay_module ;
592
- #define SHARPDISPLAY_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_sharpdisplay),(mp_obj_t)&sharpdisplay_module },
593
- #else
594
- #define SHARPDISPLAY_MODULE
595
- #endif
521
+ // CIRCUITPY_SHARPDISPLAY uses MP_REGISTER_MODULE
596
522
597
523
#if CIRCUITPY_SOCKETPOOL
598
524
extern const struct _mp_obj_module_t socketpool_module ;
@@ -608,40 +534,11 @@ extern const struct _mp_obj_module_t ssl_module;
608
534
#define SSL_MODULE
609
535
#endif
610
536
611
- #if CIRCUITPY_STAGE
612
- extern const struct _mp_obj_module_t stage_module ;
613
- #define STAGE_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR__stage), (mp_obj_t)&stage_module },
614
- #else
615
- #define STAGE_MODULE
616
- #endif
617
-
618
- #if CIRCUITPY_STORAGE
619
- extern const struct _mp_obj_module_t storage_module ;
620
- #define STORAGE_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_storage), (mp_obj_t)&storage_module },
621
- #else
622
- #define STORAGE_MODULE
623
- #endif
624
-
625
- #if CIRCUITPY_STRUCT
626
- extern const struct _mp_obj_module_t struct_module ;
627
- #define STRUCT_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_struct), (mp_obj_t)&struct_module },
628
- #else
629
- #define STRUCT_MODULE
630
- #endif
631
-
632
- #if CIRCUITPY_SUPERVISOR
633
- extern const struct _mp_obj_module_t supervisor_module ;
634
- #define SUPERVISOR_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_supervisor), (mp_obj_t)&supervisor_module },
635
- #else
636
- #define SUPERVISOR_MODULE
637
- #endif
638
-
639
- #if CIRCUITPY_SYNTHIO
640
- #define SYNTHIO_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_synthio), (mp_obj_t)&synthio_module },
641
- extern const struct _mp_obj_module_t synthio_module ;
642
- #else
643
- #define SYNTHIO_MODULE
644
- #endif
537
+ // CIRCUITPY_STAGE uses MP_REGISTER_MODULE
538
+ // CIRCUITPY_STORAGE uses MP_REGISTER_MODULE
539
+ // CIRCUITPY_STRUCT uses MP_REGISTER_MODULE
540
+ // CIRCUITPY_SUPERVISOR uses MP_REGISTER_MODULE
541
+ // CIRCUITPY_SYNTHIO uses MP_REGISTER_MODULE
645
542
646
543
#if CIRCUITPY_TIME
647
544
extern const struct _mp_obj_module_t time_module ;
@@ -652,19 +549,8 @@ extern const struct _mp_obj_module_t time_module;
652
549
#define TIME_MODULE_ALT_NAME
653
550
#endif
654
551
655
- #if CIRCUITPY_TOUCHIO
656
- extern const struct _mp_obj_module_t touchio_module ;
657
- #define TOUCHIO_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_touchio), (mp_obj_t)&touchio_module },
658
- #else
659
- #define TOUCHIO_MODULE
660
- #endif
661
-
662
- #if CIRCUITPY_TRACEBACK
663
- extern const struct _mp_obj_module_t traceback_module ;
664
- #define TRACEBACK_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_traceback), (mp_obj_t)&traceback_module },
665
- #else
666
- #define TRACEBACK_MODULE
667
- #endif
552
+ // CIRCUITPY_TOUCHIO uses MP_REGISTER_MODULE
553
+ // CIRCUITPY_TRACEBACK uses MP_REGISTER_MODULE
668
554
669
555
#if CIRCUITPY_UHEAP
670
556
extern const struct _mp_obj_module_t uheap_module ;
@@ -673,26 +559,9 @@ extern const struct _mp_obj_module_t uheap_module;
673
559
#define UHEAP_MODULE
674
560
#endif
675
561
676
- #if CIRCUITPY_USB_CDC
677
- extern const struct _mp_obj_module_t usb_cdc_module ;
678
- #define USB_CDC_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_usb_cdc),(mp_obj_t)&usb_cdc_module },
679
- #else
680
- #define USB_CDC_MODULE
681
- #endif
682
-
683
- #if CIRCUITPY_USB_HID
684
- extern const struct _mp_obj_module_t usb_hid_module ;
685
- #define USB_HID_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_usb_hid),(mp_obj_t)&usb_hid_module },
686
- #else
687
- #define USB_HID_MODULE
688
- #endif
689
-
690
- #if CIRCUITPY_USB_MIDI
691
- extern const struct _mp_obj_module_t usb_midi_module ;
692
- #define USB_MIDI_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_usb_midi),(mp_obj_t)&usb_midi_module },
693
- #else
694
- #define USB_MIDI_MODULE
695
- #endif
562
+ // CIRCUITPY_USB_CDC uses MP_REGISTER_MODULE
563
+ // CIRCUITPY_USB_HID uses MP_REGISTER_MODULE
564
+ // CIRCUITPY_USB_MIDI uses MP_REGISTER_MODULE
696
565
697
566
#if CIRCUITPY_USTACK
698
567
extern const struct _mp_obj_module_t ustack_module ;
@@ -756,7 +625,6 @@ extern const struct _mp_obj_module_t wifi_module;
756
625
CAMERA_MODULE \
757
626
CANIO_MODULE \
758
627
DUALBANK_MODULE \
759
- VECTORIO_MODULE \
760
628
ERRNO_MODULE \
761
629
ESPIDF_MODULE \
762
630
_EVE_MODULE \
@@ -766,36 +634,14 @@ extern const struct _mp_obj_module_t wifi_module;
766
634
IMAGECAPTURE_MODULE \
767
635
JSON_MODULE \
768
636
MEMORYMONITOR_MODULE \
769
- NEOPIXEL_WRITE_MODULE \
770
- ONEWIREIO_MODULE \
771
637
PEW_MODULE \
772
- PS2IO_MODULE \
773
- PULSEIO_MODULE \
774
- PWMIO_MODULE \
775
- RAINBOWIO_MODULE \
776
- RANDOM_MODULE \
777
638
RE_MODULE \
778
- RGBMATRIX_MODULE \
779
- ROTARYIO_MODULE \
780
639
RP2PIO_MODULE \
781
- RTC_MODULE \
782
640
SAMD_MODULE \
783
- SDCARDIO_MODULE \
784
641
SDIOIO_MODULE \
785
- SHARPDISPLAY_MODULE \
786
642
SOCKETPOOL_MODULE \
787
643
SSL_MODULE \
788
- STAGE_MODULE \
789
- STORAGE_MODULE \
790
- STRUCT_MODULE \
791
- SUPERVISOR_MODULE \
792
- SYNTHIO_MODULE \
793
- TOUCHIO_MODULE \
794
- TRACEBACK_MODULE \
795
644
UHEAP_MODULE \
796
- USB_CDC_MODULE \
797
- USB_HID_MODULE \
798
- USB_MIDI_MODULE \
799
645
USTACK_MODULE \
800
646
WATCHDOG_MODULE \
801
647
WIFI_MODULE \
0 commit comments