@geastack/targets 0.1.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +674 -0
- package/README.md +83 -0
- package/package.json +50 -0
- package/targets/cmake/geatsc-generated-archive-build.mjs +614 -0
- package/targets/cmake/geatsc_generated_archive.cmake +116 -0
- package/targets/cmake/geatsc_generated_archive_build.cmake +50 -0
- package/targets/esp32/app_project.cmake +33 -0
- package/targets/esp32/apps/app_manager.cpp +188 -0
- package/targets/esp32/apps/app_manager.h +10 -0
- package/targets/esp32/chip_bindings/README.md +58 -0
- package/targets/esp32/chip_bindings/audio/es8311.cpp +556 -0
- package/targets/esp32/chip_bindings/displays/co5300.cpp +510 -0
- package/targets/esp32/chip_bindings/displays/co5300.h +47 -0
- package/targets/esp32/chip_bindings/displays/co5300_async_stream.inc +79 -0
- package/targets/esp32/chip_bindings/displays/qspi_panel.h +65 -0
- package/targets/esp32/chip_bindings/displays/sh8601.cpp +583 -0
- package/targets/esp32/chip_bindings/displays/sh8601.h +36 -0
- package/targets/esp32/chip_bindings/gps/lc76g.cpp +296 -0
- package/targets/esp32/chip_bindings/gps/lc76g.h +7 -0
- package/targets/esp32/chip_bindings/imu/bmi270.cpp +299 -0
- package/targets/esp32/chip_bindings/imu/bmi270_config.inl +439 -0
- package/targets/esp32/chip_bindings/imu/qmi8658.cpp +213 -0
- package/targets/esp32/chip_bindings/power/axp2101.cpp +185 -0
- package/targets/esp32/chip_bindings/touch/cst9217.cpp +229 -0
- package/targets/esp32/chip_bindings/touch/cst9217_controller.h +78 -0
- package/targets/esp32/chip_bindings/touch/ft3168.cpp +340 -0
- package/targets/esp32/chip_bindings/touch/ft3168_controller.h +103 -0
- package/targets/esp32/chip_bindings/touch/ft6336.cpp +310 -0
- package/targets/esp32/chip_bindings/touch/ft6336_controller.h +90 -0
- package/targets/esp32/components/gea_framework/CMakeLists.txt +62 -0
- package/targets/esp32/connectivity/ble_hid.cpp +2916 -0
- package/targets/esp32/connectivity/ble_hid.h +8 -0
- package/targets/esp32/connectivity/diagnostics_transport.cpp +523 -0
- package/targets/esp32/connectivity/diagnostics_transport_offline.cpp +108 -0
- package/targets/esp32/connectivity/wifi.cpp +615 -0
- package/targets/esp32/connectivity/wifi_debug_offline.cpp +37 -0
- package/targets/esp32/connectivity/wifi_task_stack.h +119 -0
- package/targets/esp32/display.cpp +6010 -0
- package/targets/esp32/display_headless.cpp +468 -0
- package/targets/esp32/gea/platform_random.h +11 -0
- package/targets/esp32/gea_framework.cmake +382 -0
- package/targets/esp32/gpio.cpp +229 -0
- package/targets/esp32/host_sources.cmake +35 -0
- package/targets/esp32/imu_absent.cpp +36 -0
- package/targets/esp32/ldfragments/gea_ui_state_external.lf +35 -0
- package/targets/esp32/memory_config.h +64 -0
- package/targets/esp32/power_absent.cpp +22 -0
- package/targets/esp32/sdk-patches/0001-esp_ptr_dma_capable-accept-PSRAM.patch +70 -0
- package/targets/esp32/sdk-patches/0002-gdma-access_ext_mem-spi_master.patch +59 -0
- package/targets/esp32/sdk-patches/README.md +127 -0
- package/targets/esp32/services/app_runner.cpp +248 -0
- package/targets/esp32/services/app_state.cpp +56 -0
- package/targets/esp32/services/audio_runtime_stub.cpp +86 -0
- package/targets/esp32/services/battery_service.cpp +31 -0
- package/targets/esp32/services/device_control.cpp +1896 -0
- package/targets/esp32/services/device_control.h +31 -0
- package/targets/esp32/services/frame_scheduler.cpp +1571 -0
- package/targets/esp32/services/heap.cpp +129 -0
- package/targets/esp32/services/memory.cpp +103 -0
- package/targets/esp32/services/ota.cpp +840 -0
- package/targets/esp32/services/ota_image.cpp +162 -0
- package/targets/esp32/services/ota_image.h +16 -0
- package/targets/esp32/services/storage_service.cpp +159 -0
- package/targets/esp32/touch_absent.cpp +44 -0
- package/targets/esp32-m5stack-m5paper/CMakeLists.txt +10 -0
- package/targets/esp32-m5stack-m5paper/README.md +55 -0
- package/targets/esp32-m5stack-m5paper/dependencies.lock +76 -0
- package/targets/esp32-m5stack-m5paper/main/CMakeLists.txt +46 -0
- package/targets/esp32-m5stack-m5paper/main/Kconfig.projbuild +10 -0
- package/targets/esp32-m5stack-m5paper/main/app_main.cpp +114 -0
- package/targets/esp32-m5stack-m5paper/main/audio_stub.cpp +27 -0
- package/targets/esp32-m5stack-m5paper/main/buttons.cpp +111 -0
- package/targets/esp32-m5stack-m5paper/main/display.cpp +1074 -0
- package/targets/esp32-m5stack-m5paper/main/i2c.cpp +36 -0
- package/targets/esp32-m5stack-m5paper/main/idf_component.yml +7 -0
- package/targets/esp32-m5stack-m5paper/main/imu_stub.cpp +20 -0
- package/targets/esp32-m5stack-m5paper/main/include/board.h +100 -0
- package/targets/esp32-m5stack-m5paper/main/include/buttons.h +8 -0
- package/targets/esp32-m5stack-m5paper/main/launcher_button.cpp +82 -0
- package/targets/esp32-m5stack-m5paper/main/m5paper_psram.lf +20 -0
- package/targets/esp32-m5stack-m5paper/main/power.cpp +73 -0
- package/targets/esp32-m5stack-m5paper/main/sdcard_mount.cpp +82 -0
- package/targets/esp32-m5stack-m5paper/main/touch.cpp +279 -0
- package/targets/esp32-m5stack-m5paper/partitions.csv +9 -0
- package/targets/esp32-m5stack-m5paper/sdkconfig.defaults +84 -0
- package/targets/esp32-p4-m5stack-tab5/CMakeLists.txt +10 -0
- package/targets/esp32-p4-m5stack-tab5/dependencies.lock +276 -0
- package/targets/esp32-p4-m5stack-tab5/main/CMakeLists.txt +586 -0
- package/targets/esp32-p4-m5stack-tab5/main/Kconfig.projbuild +12 -0
- package/targets/esp32-p4-m5stack-tab5/main/app_main.cpp +177 -0
- package/targets/esp32-p4-m5stack-tab5/main/camera.cpp +2025 -0
- package/targets/esp32-p4-m5stack-tab5/main/display.cpp +4033 -0
- package/targets/esp32-p4-m5stack-tab5/main/fatfs_ffconf.h +383 -0
- package/targets/esp32-p4-m5stack-tab5/main/i2c.cpp +39 -0
- package/targets/esp32-p4-m5stack-tab5/main/idf_component.yml +21 -0
- package/targets/esp32-p4-m5stack-tab5/main/include/board.h +130 -0
- package/targets/esp32-p4-m5stack-tab5/main/include/tab5_drivers.h +68 -0
- package/targets/esp32-p4-m5stack-tab5/main/include/wifi_config.h.example +5 -0
- package/targets/esp32-p4-m5stack-tab5/main/launcher_button.cpp +188 -0
- package/targets/esp32-p4-m5stack-tab5/main/power.cpp +22 -0
- package/targets/esp32-p4-m5stack-tab5/main/sdcard_mount.cpp +125 -0
- package/targets/esp32-p4-m5stack-tab5/main/tab5_audio.cpp +345 -0
- package/targets/esp32-p4-m5stack-tab5/main/tab5_drivers.cpp +871 -0
- package/targets/esp32-p4-m5stack-tab5/main/tab5_imu.cpp +246 -0
- package/targets/esp32-p4-m5stack-tab5/main/touch.cpp +206 -0
- package/targets/esp32-p4-m5stack-tab5/partitions.csv +12 -0
- package/targets/esp32-p4-m5stack-tab5/sdkconfig.defaults +128 -0
- package/targets/esp32-p4-waveshare-touch-lcd-3.5/CMakeLists.txt +19 -0
- package/targets/esp32-p4-waveshare-touch-lcd-3.5/component-patches/0001-esp_video-csi-raw-passthrough-p4-rev-lt-v3.patch +28 -0
- package/targets/esp32-p4-waveshare-touch-lcd-3.5/component-patches/README.md +45 -0
- package/targets/esp32-p4-waveshare-touch-lcd-3.5/component-patches/apply.sh +37 -0
- package/targets/esp32-p4-waveshare-touch-lcd-3.5/dependencies.lock +196 -0
- package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/CMakeLists.txt +562 -0
- package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/Kconfig.projbuild +12 -0
- package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/app_main.cpp +166 -0
- package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/camera.cpp +2105 -0
- package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/display.cpp +1730 -0
- package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/fatfs_ffconf.h +383 -0
- package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/i2c.cpp +39 -0
- package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/idf_component.yml +11 -0
- package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/include/board.h +87 -0
- package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/include/panel_native.h +59 -0
- package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/include/wifi_config.h.example +5 -0
- package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/launcher_button.cpp +191 -0
- package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/power.cpp +15 -0
- package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/touch.cpp +306 -0
- package/targets/esp32-p4-waveshare-touch-lcd-3.5/partitions.csv +13 -0
- package/targets/esp32-p4-waveshare-touch-lcd-3.5/patches/README.md +22 -0
- package/targets/esp32-p4-waveshare-touch-lcd-3.5/patches/espressif__esp_video-csi-bypass.patch +28 -0
- package/targets/esp32-p4-waveshare-touch-lcd-3.5/sdkconfig.defaults +109 -0
- package/targets/esp32-p4-waveshare-touch-lcd-3.5/tools/README-camera-capture.md +84 -0
- package/targets/esp32-p4-waveshare-touch-lcd-3.5/tools/capture-camera.py +369 -0
- package/targets/esp32-p4-waveshare-touch-lcd-7/CMakeLists.txt +10 -0
- package/targets/esp32-p4-waveshare-touch-lcd-7/dependencies.lock +258 -0
- package/targets/esp32-p4-waveshare-touch-lcd-7/main/CMakeLists.txt +577 -0
- package/targets/esp32-p4-waveshare-touch-lcd-7/main/Kconfig.projbuild +12 -0
- package/targets/esp32-p4-waveshare-touch-lcd-7/main/app_main.cpp +177 -0
- package/targets/esp32-p4-waveshare-touch-lcd-7/main/camera.cpp +1935 -0
- package/targets/esp32-p4-waveshare-touch-lcd-7/main/display.cpp +2832 -0
- package/targets/esp32-p4-waveshare-touch-lcd-7/main/fatfs_ffconf.h +383 -0
- package/targets/esp32-p4-waveshare-touch-lcd-7/main/i2c.cpp +39 -0
- package/targets/esp32-p4-waveshare-touch-lcd-7/main/idf_component.yml +23 -0
- package/targets/esp32-p4-waveshare-touch-lcd-7/main/include/board.h +68 -0
- package/targets/esp32-p4-waveshare-touch-lcd-7/main/include/wifi_config.h.example +5 -0
- package/targets/esp32-p4-waveshare-touch-lcd-7/main/launcher_button.cpp +191 -0
- package/targets/esp32-p4-waveshare-touch-lcd-7/main/power.cpp +15 -0
- package/targets/esp32-p4-waveshare-touch-lcd-7/main/sdcard_mount.cpp +125 -0
- package/targets/esp32-p4-waveshare-touch-lcd-7/main/touch.cpp +332 -0
- package/targets/esp32-p4-waveshare-touch-lcd-7/partitions.csv +12 -0
- package/targets/esp32-p4-waveshare-touch-lcd-7/sdkconfig.defaults +122 -0
- package/targets/esp32-p4-waveshare-touch-lcd-7/tools/README-camera-capture.md +84 -0
- package/targets/esp32-p4-waveshare-touch-lcd-7/tools/capture-camera.py +369 -0
- package/targets/esp32-s3-devkit-n16r8.json +31 -0
- package/targets/esp32-s3-elecrow-rotary-2.1/CMakeLists.txt +10 -0
- package/targets/esp32-s3-elecrow-rotary-2.1/dependencies.lock +40 -0
- package/targets/esp32-s3-elecrow-rotary-2.1/main/CMakeLists.txt +549 -0
- package/targets/esp32-s3-elecrow-rotary-2.1/main/Kconfig.projbuild +12 -0
- package/targets/esp32-s3-elecrow-rotary-2.1/main/app_main.cpp +187 -0
- package/targets/esp32-s3-elecrow-rotary-2.1/main/display_rgb.cpp +1338 -0
- package/targets/esp32-s3-elecrow-rotary-2.1/main/i2c.cpp +39 -0
- package/targets/esp32-s3-elecrow-rotary-2.1/main/idf_component.yml +5 -0
- package/targets/esp32-s3-elecrow-rotary-2.1/main/include/board.h +142 -0
- package/targets/esp32-s3-elecrow-rotary-2.1/main/include/pcf8574.h +16 -0
- package/targets/esp32-s3-elecrow-rotary-2.1/main/include/rotary_encoder.h +7 -0
- package/targets/esp32-s3-elecrow-rotary-2.1/main/launcher_button.cpp +191 -0
- package/targets/esp32-s3-elecrow-rotary-2.1/main/pcf8574.cpp +86 -0
- package/targets/esp32-s3-elecrow-rotary-2.1/main/platform_stubs.cpp +47 -0
- package/targets/esp32-s3-elecrow-rotary-2.1/main/rotary_encoder.cpp +135 -0
- package/targets/esp32-s3-elecrow-rotary-2.1/main/touch.cpp +250 -0
- package/targets/esp32-s3-elecrow-rotary-2.1/partitions.csv +8 -0
- package/targets/esp32-s3-elecrow-rotary-2.1/sdkconfig.defaults +116 -0
- package/targets/esp32-s3-epaper-1.54/CMakeLists.txt +10 -0
- package/targets/esp32-s3-epaper-1.54/dependencies.lock +76 -0
- package/targets/esp32-s3-epaper-1.54/main/CMakeLists.txt +691 -0
- package/targets/esp32-s3-epaper-1.54/main/Kconfig.projbuild +12 -0
- package/targets/esp32-s3-epaper-1.54/main/app_main.cpp +181 -0
- package/targets/esp32-s3-epaper-1.54/main/buttons.cpp +144 -0
- package/targets/esp32-s3-epaper-1.54/main/display.cpp +1281 -0
- package/targets/esp32-s3-epaper-1.54/main/fatfs_ffconf.h +377 -0
- package/targets/esp32-s3-epaper-1.54/main/i2c.cpp +39 -0
- package/targets/esp32-s3-epaper-1.54/main/idf_component.yml +7 -0
- package/targets/esp32-s3-epaper-1.54/main/imu_stub.cpp +21 -0
- package/targets/esp32-s3-epaper-1.54/main/include/board.h +119 -0
- package/targets/esp32-s3-epaper-1.54/main/include/buttons.h +9 -0
- package/targets/esp32-s3-epaper-1.54/main/include/wifi_config.h.example +5 -0
- package/targets/esp32-s3-epaper-1.54/main/launcher_button.cpp +191 -0
- package/targets/esp32-s3-epaper-1.54/main/power.cpp +15 -0
- package/targets/esp32-s3-epaper-1.54/main/sdcard_mount.cpp +89 -0
- package/targets/esp32-s3-epaper-1.54/main/touch.cpp +299 -0
- package/targets/esp32-s3-epaper-1.54/partitions.csv +8 -0
- package/targets/esp32-s3-epaper-1.54/sdkconfig.defaults +217 -0
- package/targets/esp32-s3-lilygo-t-display-s3-long/CMakeLists.txt +10 -0
- package/targets/esp32-s3-lilygo-t-display-s3-long/README.md +29 -0
- package/targets/esp32-s3-lilygo-t-display-s3-long/dependencies.lock +116 -0
- package/targets/esp32-s3-lilygo-t-display-s3-long/main/CMakeLists.txt +90 -0
- package/targets/esp32-s3-lilygo-t-display-s3-long/main/idf_component.yml +7 -0
- package/targets/esp32-s3-lilygo-t-display-s3-long/main/include/board.h +61 -0
- package/targets/esp32-s3-lilygo-t-display-s3-long/main/touch.cpp +299 -0
- package/targets/esp32-s3-lilygo-t-display-s3-long/partitions.csv +7 -0
- package/targets/esp32-s3-lilygo-t-display-s3-long/sdkconfig.defaults +50 -0
- package/targets/esp32-s3-lilygo-t5-epaper-4.7/CMakeLists.txt +12 -0
- package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/CMakeLists.txt +17 -0
- package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/ed047tc1.c +269 -0
- package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/ed047tc1.h +142 -0
- package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/epd_driver.c +1114 -0
- package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/epd_driver.h +410 -0
- package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/gea_epd.c +989 -0
- package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/i2s_data_bus.c +489 -0
- package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/i2s_data_bus.h +104 -0
- package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/rmt_pulse.c +136 -0
- package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/rmt_pulse.h +78 -0
- package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/utilities.h +49 -0
- package/targets/esp32-s3-lilygo-t5-epaper-4.7/dependencies.lock +35 -0
- package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/CMakeLists.txt +30 -0
- package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/Kconfig.projbuild +10 -0
- package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/app_main.cpp +95 -0
- package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/audio_stub.cpp +27 -0
- package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/buttons.cpp +40 -0
- package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/display.cpp +627 -0
- package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/i2c.cpp +36 -0
- package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/idf_component.yml +4 -0
- package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/imu_stub.cpp +20 -0
- package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/include/board.h +85 -0
- package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/include/buttons.h +8 -0
- package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/launcher_button.cpp +82 -0
- package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/power.cpp +36 -0
- package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/sdcard_mount.cpp +90 -0
- package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/touch.cpp +293 -0
- package/targets/esp32-s3-lilygo-t5-epaper-4.7/partitions.csv +9 -0
- package/targets/esp32-s3-lilygo-t5-epaper-4.7/sdkconfig.defaults +217 -0
- package/targets/esp32-s3-m5stack-papers3/CMakeLists.txt +13 -0
- package/targets/esp32-s3-m5stack-papers3/components/papers3_epd/CMakeLists.txt +5 -0
- package/targets/esp32-s3-m5stack-papers3/components/papers3_epd/include/papers3_epd.h +74 -0
- package/targets/esp32-s3-m5stack-papers3/components/papers3_epd/papers3_epd.c +671 -0
- package/targets/esp32-s3-m5stack-papers3/dependencies.lock +76 -0
- package/targets/esp32-s3-m5stack-papers3/main/CMakeLists.txt +64 -0
- package/targets/esp32-s3-m5stack-papers3/main/Kconfig.projbuild +10 -0
- package/targets/esp32-s3-m5stack-papers3/main/app_main.cpp +96 -0
- package/targets/esp32-s3-m5stack-papers3/main/audio_stub.cpp +27 -0
- package/targets/esp32-s3-m5stack-papers3/main/buttons.cpp +49 -0
- package/targets/esp32-s3-m5stack-papers3/main/display.cpp +706 -0
- package/targets/esp32-s3-m5stack-papers3/main/i2c.cpp +36 -0
- package/targets/esp32-s3-m5stack-papers3/main/idf_component.yml +14 -0
- package/targets/esp32-s3-m5stack-papers3/main/imu.cpp +351 -0
- package/targets/esp32-s3-m5stack-papers3/main/include/board.h +101 -0
- package/targets/esp32-s3-m5stack-papers3/main/include/buttons.h +8 -0
- package/targets/esp32-s3-m5stack-papers3/main/launcher_button.cpp +96 -0
- package/targets/esp32-s3-m5stack-papers3/main/power.cpp +102 -0
- package/targets/esp32-s3-m5stack-papers3/main/sdcard_mount.cpp +88 -0
- package/targets/esp32-s3-m5stack-papers3/main/touch.cpp +287 -0
- package/targets/esp32-s3-m5stack-papers3/partitions.csv +9 -0
- package/targets/esp32-s3-m5stack-papers3/sdkconfig.defaults +232 -0
- package/targets/esp32-s3-m5stack-sticks3/CMakeLists.txt +10 -0
- package/targets/esp32-s3-m5stack-sticks3/dependencies.lock +51 -0
- package/targets/esp32-s3-m5stack-sticks3/main/CMakeLists.txt +51 -0
- package/targets/esp32-s3-m5stack-sticks3/main/Kconfig.projbuild +12 -0
- package/targets/esp32-s3-m5stack-sticks3/main/app_main.cpp +130 -0
- package/targets/esp32-s3-m5stack-sticks3/main/buttons.cpp +101 -0
- package/targets/esp32-s3-m5stack-sticks3/main/display.cpp +1391 -0
- package/targets/esp32-s3-m5stack-sticks3/main/i2c.cpp +39 -0
- package/targets/esp32-s3-m5stack-sticks3/main/idf_component.yml +8 -0
- package/targets/esp32-s3-m5stack-sticks3/main/imu_stub.cpp +9 -0
- package/targets/esp32-s3-m5stack-sticks3/main/include/board.h +89 -0
- package/targets/esp32-s3-m5stack-sticks3/main/include/buttons.h +9 -0
- package/targets/esp32-s3-m5stack-sticks3/main/launcher_button.cpp +191 -0
- package/targets/esp32-s3-m5stack-sticks3/main/power.cpp +15 -0
- package/targets/esp32-s3-m5stack-sticks3/main/sdcard_mount.cpp +8 -0
- package/targets/esp32-s3-m5stack-sticks3/main/touch.cpp +65 -0
- package/targets/esp32-s3-m5stack-sticks3/partitions.csv +8 -0
- package/targets/esp32-s3-m5stack-sticks3/sdkconfig.defaults +130 -0
- package/targets/esp32-s3-touch-amoled-1.75/CMakeLists.txt +10 -0
- package/targets/esp32-s3-touch-amoled-1.75/dependencies.lock +130 -0
- package/targets/esp32-s3-touch-amoled-1.75/main/CMakeLists.txt +589 -0
- package/targets/esp32-s3-touch-amoled-1.75/main/Kconfig.projbuild +12 -0
- package/targets/esp32-s3-touch-amoled-1.75/main/app_main.cpp +153 -0
- package/targets/esp32-s3-touch-amoled-1.75/main/i2c.cpp +39 -0
- package/targets/esp32-s3-touch-amoled-1.75/main/idf_component.yml +9 -0
- package/targets/esp32-s3-touch-amoled-1.75/main/include/board.h +110 -0
- package/targets/esp32-s3-touch-amoled-1.75/main/include/wifi_config.h.example +5 -0
- package/targets/esp32-s3-touch-amoled-1.75/main/launcher_button.cpp +191 -0
- package/targets/esp32-s3-touch-amoled-1.75/main/touch.cpp +45 -0
- package/targets/esp32-s3-touch-amoled-1.75/partitions.csv +8 -0
- package/targets/esp32-s3-touch-amoled-1.75/sdkconfig.defaults +179 -0
- package/targets/esp32-s3-touch-amoled-1.8/CMakeLists.txt +10 -0
- package/targets/esp32-s3-touch-amoled-1.8/dependencies.lock +105 -0
- package/targets/esp32-s3-touch-amoled-1.8/main/CMakeLists.txt +768 -0
- package/targets/esp32-s3-touch-amoled-1.8/main/Kconfig.projbuild +12 -0
- package/targets/esp32-s3-touch-amoled-1.8/main/app_main.cpp +172 -0
- package/targets/esp32-s3-touch-amoled-1.8/main/i2c.cpp +39 -0
- package/targets/esp32-s3-touch-amoled-1.8/main/idf_component.yml +8 -0
- package/targets/esp32-s3-touch-amoled-1.8/main/include/board.h +83 -0
- package/targets/esp32-s3-touch-amoled-1.8/main/include/wifi_config.h.example +5 -0
- package/targets/esp32-s3-touch-amoled-1.8/main/launcher_button.cpp +191 -0
- package/targets/esp32-s3-touch-amoled-1.8/main/touch.cpp +41 -0
- package/targets/esp32-s3-touch-amoled-1.8/partitions.csv +8 -0
- package/targets/esp32-s3-touch-amoled-1.8/sdkconfig.defaults +179 -0
- package/targets/esp32-s3-touch-amoled-2.06/CMakeLists.txt +10 -0
- package/targets/esp32-s3-touch-amoled-2.06/dependencies.lock +64 -0
- package/targets/esp32-s3-touch-amoled-2.06/main/CMakeLists.txt +1121 -0
- package/targets/esp32-s3-touch-amoled-2.06/main/Kconfig.projbuild +12 -0
- package/targets/esp32-s3-touch-amoled-2.06/main/app_main.cpp +333 -0
- package/targets/esp32-s3-touch-amoled-2.06/main/i2c.cpp +39 -0
- package/targets/esp32-s3-touch-amoled-2.06/main/idf_component.yml +27 -0
- package/targets/esp32-s3-touch-amoled-2.06/main/include/board.h +114 -0
- package/targets/esp32-s3-touch-amoled-2.06/main/include/wifi_config.h.example +5 -0
- package/targets/esp32-s3-touch-amoled-2.06/main/launcher_button.cpp +199 -0
- package/targets/esp32-s3-touch-amoled-2.06/main/sdcard_mount.cpp +105 -0
- package/targets/esp32-s3-touch-amoled-2.06/main/touch.cpp +49 -0
- package/targets/esp32-s3-touch-amoled-2.06/partitions.csv +14 -0
- package/targets/esp32-s3-touch-amoled-2.06/sdkconfig.defaults +273 -0
- package/targets/esp32-s3-touch-amoled-2.41/CMakeLists.txt +10 -0
- package/targets/esp32-s3-touch-amoled-2.41/main/CMakeLists.txt +71 -0
- package/targets/esp32-s3-touch-amoled-2.41/main/Kconfig.projbuild +12 -0
- package/targets/esp32-s3-touch-amoled-2.41/main/idf_component.yml +27 -0
- package/targets/esp32-s3-touch-amoled-2.41/main/include/board.h +108 -0
- package/targets/esp32-s3-touch-amoled-2.41/main/include/wifi_config.h.example +5 -0
- package/targets/esp32-s3-touch-amoled-2.41/main/panel_reset.cpp +82 -0
- package/targets/esp32-s3-touch-amoled-2.41/main/touch.cpp +49 -0
- package/targets/esp32-s3-touch-amoled-2.41/partitions.csv +8 -0
- package/targets/esp32-s3-touch-amoled-2.41/sdkconfig.defaults +273 -0
- package/targets/rp2350-tufty-2350/CMakeLists.txt +348 -0
- package/targets/rp2350-tufty-2350/README.md +53 -0
- package/targets/rp2350-tufty-2350/boards/pimoroni_tufty2350.h +87 -0
- package/targets/rp2350-tufty-2350/main/bringup.cpp +187 -0
- package/targets/rp2350-tufty-2350/main/include/board.h +124 -0
- package/targets/rp2350-tufty-2350/main/rp2350_panel.cpp +428 -0
- package/targets/rp2350-tufty-2350/main/rp2350_panel.h +46 -0
- package/targets/rp2350-tufty-2350/main/st7789_parallel.pio +7 -0
- package/targets/rp2350-waveshare-touch-amoled-2.41/CMakeLists.txt +345 -0
- package/targets/rp2350-waveshare-touch-amoled-2.41/README.md +153 -0
- package/targets/rp2350-waveshare-touch-amoled-2.41/boards/waveshare_rp2350_touch_amoled_2_41.h +59 -0
- package/targets/rp2350-waveshare-touch-amoled-2.41/main/app.cpp +984 -0
- package/targets/rp2350-waveshare-touch-amoled-2.41/main/bringup.cpp +222 -0
- package/targets/rp2350-waveshare-touch-amoled-2.41/main/include/board.h +138 -0
- package/targets/rp2350-waveshare-touch-amoled-2.41/main/rp2350_gea_platform.cpp +2553 -0
- package/targets/rp2350-waveshare-touch-amoled-2.41/main/rp2350_gea_platform.h +18 -0
- package/targets/rp2350-waveshare-touch-amoled-2.41/main/rp2350_host_fetch_stub.cpp +64 -0
- package/targets/rp2350-waveshare-touch-amoled-2.41/main/rp2350_panel.cpp +677 -0
- package/targets/rp2350-waveshare-touch-amoled-2.41/main/rp2350_panel.h +48 -0
- package/targets/rp2350-waveshare-touch-amoled-2.41/main/vendor/waveshare_psram/rp_pico_alloc.c +354 -0
- package/targets/rp2350-waveshare-touch-amoled-2.41/main/vendor/waveshare_psram/rp_pico_alloc.h +56 -0
- package/targets/rp2350-waveshare-touch-amoled-2.41/main/vendor/waveshare_psram/tlsf/tlsf.c +1284 -0
- package/targets/rp2350-waveshare-touch-amoled-2.41/main/vendor/waveshare_psram/tlsf/tlsf.h +95 -0
- package/targets/rp2350-waveshare-touch-amoled-2.41/main/vendor/waveshare_psram/tlsf/tlsf_block_functions.h +123 -0
- package/targets/rp2350-waveshare-touch-amoled-2.41/main/vendor/waveshare_psram/tlsf/tlsf_common.h +127 -0
- package/targets/rp2350-waveshare-touch-amoled-2.41/tools/rp2350-scroll-bench.py +162 -0
- package/targets/rp2350-waveshare-touch-amoled-2.41/tools/rp2350-scroll-parity.py +198 -0
- package/targets.json +154 -0
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
cmake_minimum_required(VERSION 3.13)
|
|
2
|
+
|
|
3
|
+
set(PICO_BOARD_HEADER_DIRS "${CMAKE_CURRENT_LIST_DIR}/boards" CACHE STRING "Pico board header search dirs")
|
|
4
|
+
set(PICO_BOARD waveshare_rp2350_touch_amoled_2_41 CACHE STRING "Pico SDK board")
|
|
5
|
+
set(PICO_PLATFORM rp2350 CACHE STRING "Pico SDK platform")
|
|
6
|
+
|
|
7
|
+
if(DEFINED ENV{PICO_SDK_PATH})
|
|
8
|
+
include("$ENV{PICO_SDK_PATH}/external/pico_sdk_import.cmake")
|
|
9
|
+
elseif(DEFINED PICO_SDK_PATH)
|
|
10
|
+
include("${PICO_SDK_PATH}/external/pico_sdk_import.cmake")
|
|
11
|
+
else()
|
|
12
|
+
message(FATAL_ERROR "PICO_SDK_PATH is required to build the RP2350 target.")
|
|
13
|
+
endif()
|
|
14
|
+
|
|
15
|
+
project(gea_rp2350_touch_amoled_241 C CXX ASM)
|
|
16
|
+
set(CMAKE_C_STANDARD 11)
|
|
17
|
+
set(CMAKE_CXX_STANDARD 20)
|
|
18
|
+
|
|
19
|
+
pico_sdk_init()
|
|
20
|
+
|
|
21
|
+
get_filename_component(GEA_TARGETS_ROOT "${CMAKE_CURRENT_LIST_DIR}/../.." ABSOLUTE)
|
|
22
|
+
foreach(_GEA_REQUIRED_ENV GEA_CORE_DIR GEA_COMPILER_DIR GEA_CHIPS_DIR GEA_ENGINE_DIR GEA_HOST_DIR GEA_ELEMENTS_DIR GEA_GEAOS_PACKAGE_DIR)
|
|
23
|
+
if(NOT DEFINED ENV{${_GEA_REQUIRED_ENV}} OR "$ENV{${_GEA_REQUIRED_ENV}}" STREQUAL "")
|
|
24
|
+
message(FATAL_ERROR "${_GEA_REQUIRED_ENV} is unset. Run this target through the gea CLI so npm packages are resolved first.")
|
|
25
|
+
endif()
|
|
26
|
+
endforeach()
|
|
27
|
+
get_filename_component(GEA_CORE "$ENV{GEA_CORE_DIR}" REALPATH)
|
|
28
|
+
get_filename_component(GEA_COMPILER "$ENV{GEA_COMPILER_DIR}" REALPATH)
|
|
29
|
+
get_filename_component(GEA_CHIPS "$ENV{GEA_CHIPS_DIR}" REALPATH)
|
|
30
|
+
get_filename_component(GEA_ENGINE "$ENV{GEA_ENGINE_DIR}" REALPATH)
|
|
31
|
+
get_filename_component(GEA_HOST "$ENV{GEA_HOST_DIR}" REALPATH)
|
|
32
|
+
get_filename_component(GEA_ELEMENTS "$ENV{GEA_ELEMENTS_DIR}" REALPATH)
|
|
33
|
+
include("${GEA_TARGETS_ROOT}/targets/cmake/geatsc_generated_archive.cmake")
|
|
34
|
+
set(GEA_EMBEDDED_CSS_DEVICE_PIXEL_RATIO "1.5" CACHE STRING "Logical CSS px to physical pixel scale for this board")
|
|
35
|
+
set(GEA_EMBEDDED_CPP_BOARD "waveshare-rp2350-amoled-2.41" CACHE STRING "Board profile passed to geatsc for C++ target selection")
|
|
36
|
+
set(GEA_EMBEDDED_TTF_RUNTIME_FONTS OFF CACHE BOOL "Use runtime TTF rasterization instead of baked embedded font atlases")
|
|
37
|
+
set(GEA_RP2350_STARTUP_TRACE OFF CACHE BOOL "Log app startup milestones over USB stdio")
|
|
38
|
+
set(GEA_EMBEDDED_TTF_RUNTIME_TRACE OFF CACHE BOOL "Log runtime TTF font cache milestones over USB stdio")
|
|
39
|
+
|
|
40
|
+
add_executable(gea_rp2350_touch_amoled_241_bringup
|
|
41
|
+
main/bringup.cpp
|
|
42
|
+
"${GEA_CHIPS}/displays/rm690b0/rm690b0.cpp"
|
|
43
|
+
"${GEA_CHIPS}/imu/qmi8658/qmi8658.cpp"
|
|
44
|
+
"${GEA_CHIPS}/power/eta6098/eta6098.cpp"
|
|
45
|
+
"${GEA_CHIPS}/rtc/pcf85063/pcf85063.cpp"
|
|
46
|
+
"${GEA_CHIPS}/touch/ft6336/ft6336.cpp"
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
target_include_directories(gea_rp2350_touch_amoled_241_bringup PRIVATE
|
|
50
|
+
main/include
|
|
51
|
+
"${GEA_CHIPS}"
|
|
52
|
+
)
|
|
53
|
+
|
|
54
|
+
target_compile_definitions(gea_rp2350_touch_amoled_241_bringup PRIVATE
|
|
55
|
+
GEA_EMBEDDED_DISPLAY_WIDTH=450
|
|
56
|
+
GEA_EMBEDDED_DISPLAY_HEIGHT=600
|
|
57
|
+
GEA_EMBEDDED_DISPLAY_NATIVE_WIDTH=450
|
|
58
|
+
GEA_EMBEDDED_DISPLAY_NATIVE_HEIGHT=600
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
target_link_libraries(gea_rp2350_touch_amoled_241_bringup
|
|
62
|
+
pico_stdlib
|
|
63
|
+
hardware_adc
|
|
64
|
+
hardware_gpio
|
|
65
|
+
hardware_i2c
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
pico_enable_stdio_usb(gea_rp2350_touch_amoled_241_bringup 1)
|
|
69
|
+
pico_enable_stdio_uart(gea_rp2350_touch_amoled_241_bringup 0)
|
|
70
|
+
pico_add_extra_outputs(gea_rp2350_touch_amoled_241_bringup)
|
|
71
|
+
|
|
72
|
+
set(GEA_EMBEDDED_APP "" CACHE STRING "Gea app id to compile into the RP2350 firmware")
|
|
73
|
+
|
|
74
|
+
if(GEA_EMBEDDED_APP)
|
|
75
|
+
find_program(NODE_EXECUTABLE NAMES node)
|
|
76
|
+
if(NOT NODE_EXECUTABLE)
|
|
77
|
+
message(FATAL_ERROR "Node.js is required to build Gea apps for RP2350.")
|
|
78
|
+
endif()
|
|
79
|
+
|
|
80
|
+
# App metadata (root;entry;runtime;native sources...) is resolved once by
|
|
81
|
+
# the gea CLI and passed as -DGEA_EMBEDDED_APP_META (and in the environment).
|
|
82
|
+
if(NOT GEA_EMBEDDED_APP_META AND DEFINED ENV{GEA_EMBEDDED_APP_META})
|
|
83
|
+
set(GEA_EMBEDDED_APP_META "$ENV{GEA_EMBEDDED_APP_META}")
|
|
84
|
+
endif()
|
|
85
|
+
if(NOT GEA_EMBEDDED_APP_META)
|
|
86
|
+
message(FATAL_ERROR "GEA_EMBEDDED_APP_META is unset for app '${GEA_EMBEDDED_APP}'. Run this target through the gea CLI: gea build --board <alias> --app ${GEA_EMBEDDED_APP}")
|
|
87
|
+
endif()
|
|
88
|
+
set(GEA_APP_META_LIST "${GEA_EMBEDDED_APP_META}")
|
|
89
|
+
# Element 0 is the app's absolute directory (see gea_framework.cmake).
|
|
90
|
+
list(GET GEA_APP_META_LIST 0 GEA_APP_DIR)
|
|
91
|
+
list(GET GEA_APP_META_LIST 1 GEA_APP_ENTRY)
|
|
92
|
+
set(GEA_APP_NATIVE_SOURCE_RELS "")
|
|
93
|
+
list(LENGTH GEA_APP_META_LIST GEA_APP_META_LENGTH)
|
|
94
|
+
if(GEA_APP_META_LENGTH GREATER 3)
|
|
95
|
+
list(SUBLIST GEA_APP_META_LIST 3 -1 GEA_APP_NATIVE_SOURCE_RELS)
|
|
96
|
+
endif()
|
|
97
|
+
|
|
98
|
+
if(NOT IS_ABSOLUTE "${GEA_APP_DIR}")
|
|
99
|
+
message(FATAL_ERROR "GEA_EMBEDDED_APP_META must start with the app's absolute directory (got '${GEA_APP_DIR}')")
|
|
100
|
+
endif()
|
|
101
|
+
if(NOT EXISTS "${GEA_APP_DIR}/package.json")
|
|
102
|
+
message(FATAL_ERROR "Gea app '${GEA_EMBEDDED_APP}' not found at ${GEA_APP_DIR}.")
|
|
103
|
+
endif()
|
|
104
|
+
|
|
105
|
+
set(GEA_APP_BUILD_DIR "${CMAKE_BINARY_DIR}/apps/${GEA_EMBEDDED_APP}")
|
|
106
|
+
set(GEA_APP_STAMP "${GEA_APP_BUILD_DIR}/.geatsc.stamp")
|
|
107
|
+
set(GEA_APP_SOURCE_LIST "${GEA_APP_BUILD_DIR}/geatsc-sources.txt")
|
|
108
|
+
set(GEA_APP_GEATSC_ARCHIVE "${GEA_APP_BUILD_DIR}/libgea_app_geatsc.a")
|
|
109
|
+
set(GEA_APP_NATIVE_HEADERS_H "${GEA_APP_BUILD_DIR}/gea_app_native_headers.h")
|
|
110
|
+
set(GEA_APP_FONT_CPP "${GEA_APP_BUILD_DIR}/gea_embedded_font_generated.cpp")
|
|
111
|
+
set(GEA_APP_ASSET_CPP "${GEA_APP_BUILD_DIR}/gea_embedded_assets_generated.cpp")
|
|
112
|
+
set(GEA_APP_NATIVE_SOURCES "")
|
|
113
|
+
set(GEA_APP_NATIVE_INCLUDE_DIRS "")
|
|
114
|
+
set(GEA_APP_NATIVE_HEADER_INCLUDES "")
|
|
115
|
+
foreach(GEA_APP_NATIVE_SOURCE_REL IN LISTS GEA_APP_NATIVE_SOURCE_RELS)
|
|
116
|
+
set(GEA_APP_NATIVE_SOURCE "${GEA_APP_DIR}/${GEA_APP_NATIVE_SOURCE_REL}")
|
|
117
|
+
if(NOT EXISTS "${GEA_APP_NATIVE_SOURCE}")
|
|
118
|
+
message(FATAL_ERROR "App native source not found: ${GEA_APP_NATIVE_SOURCE}")
|
|
119
|
+
endif()
|
|
120
|
+
list(APPEND GEA_APP_NATIVE_SOURCES "${GEA_APP_NATIVE_SOURCE}")
|
|
121
|
+
get_filename_component(GEA_APP_NATIVE_SOURCE_DIR "${GEA_APP_NATIVE_SOURCE}" DIRECTORY)
|
|
122
|
+
list(APPEND GEA_APP_NATIVE_INCLUDE_DIRS "${GEA_APP_NATIVE_SOURCE_DIR}")
|
|
123
|
+
get_filename_component(GEA_APP_NATIVE_SOURCE_EXT "${GEA_APP_NATIVE_SOURCE}" EXT)
|
|
124
|
+
if(GEA_APP_NATIVE_SOURCE_EXT MATCHES "^\\.(cc|cpp|cxx)$")
|
|
125
|
+
get_filename_component(GEA_APP_NATIVE_SOURCE_BASE "${GEA_APP_NATIVE_SOURCE}" NAME_WE)
|
|
126
|
+
foreach(GEA_APP_NATIVE_HEADER_EXT h hh hpp hxx)
|
|
127
|
+
set(GEA_APP_NATIVE_HEADER "${GEA_APP_NATIVE_SOURCE_DIR}/${GEA_APP_NATIVE_SOURCE_BASE}.${GEA_APP_NATIVE_HEADER_EXT}")
|
|
128
|
+
if(EXISTS "${GEA_APP_NATIVE_HEADER}")
|
|
129
|
+
list(APPEND GEA_APP_NATIVE_HEADER_INCLUDES "${GEA_APP_NATIVE_HEADER}")
|
|
130
|
+
break()
|
|
131
|
+
endif()
|
|
132
|
+
endforeach()
|
|
133
|
+
elseif(GEA_APP_NATIVE_SOURCE_EXT MATCHES "^\\.(h|hh|hpp|hxx)$")
|
|
134
|
+
list(APPEND GEA_APP_NATIVE_HEADER_INCLUDES "${GEA_APP_NATIVE_SOURCE}")
|
|
135
|
+
endif()
|
|
136
|
+
endforeach()
|
|
137
|
+
list(REMOVE_DUPLICATES GEA_APP_NATIVE_INCLUDE_DIRS)
|
|
138
|
+
list(REMOVE_DUPLICATES GEA_APP_NATIVE_HEADER_INCLUDES)
|
|
139
|
+
|
|
140
|
+
file(WRITE "${GEA_APP_NATIVE_HEADERS_H}" "#pragma once\n")
|
|
141
|
+
foreach(GEA_APP_NATIVE_HEADER IN LISTS GEA_APP_NATIVE_HEADER_INCLUDES)
|
|
142
|
+
file(APPEND "${GEA_APP_NATIVE_HEADERS_H}" "#include \"${GEA_APP_NATIVE_HEADER}\"\n")
|
|
143
|
+
endforeach()
|
|
144
|
+
|
|
145
|
+
file(GLOB_RECURSE GEA_APP_INPUTS CONFIGURE_DEPENDS
|
|
146
|
+
"${GEA_APP_DIR}/*.css"
|
|
147
|
+
"${GEA_APP_DIR}/*.ts"
|
|
148
|
+
"${GEA_APP_DIR}/*.tsx"
|
|
149
|
+
"${GEA_APP_DIR}/*.ttf"
|
|
150
|
+
"${GEA_APP_DIR}/*.otf"
|
|
151
|
+
"${GEA_APP_DIR}/package.json"
|
|
152
|
+
"${GEA_APP_DIR}/vite.config.*"
|
|
153
|
+
)
|
|
154
|
+
|
|
155
|
+
set(GEA_EMBEDDED_FONT_ARGS "")
|
|
156
|
+
if(GEA_EMBEDDED_TTF_RUNTIME_FONTS)
|
|
157
|
+
list(APPEND GEA_EMBEDDED_FONT_ARGS --runtime-ttf-fonts)
|
|
158
|
+
endif()
|
|
159
|
+
|
|
160
|
+
# --cpp-prelude-symbol: emit the CSS/prelude registration as a function
|
|
161
|
+
# instead of a file-scope global. At static-init time only the small SRAM
|
|
162
|
+
# newlib heap exists (PSRAM comes up in main's memoryInit), and a large app
|
|
163
|
+
# stylesheet OOM-panics the boot; main() calls the symbol after memoryInit
|
|
164
|
+
# so the registration allocates from PSRAM.
|
|
165
|
+
add_custom_command(
|
|
166
|
+
OUTPUT "${GEA_APP_STAMP}"
|
|
167
|
+
BYPRODUCTS
|
|
168
|
+
"${GEA_APP_SOURCE_LIST}"
|
|
169
|
+
"${GEA_APP_BUILD_DIR}/entry.cpp"
|
|
170
|
+
"${GEA_APP_BUILD_DIR}/generated_support.hpp"
|
|
171
|
+
"${GEA_APP_FONT_CPP}"
|
|
172
|
+
"${GEA_APP_ASSET_CPP}"
|
|
173
|
+
"${GEA_APP_BUILD_DIR}/gea_embedded_font_generated.h"
|
|
174
|
+
"${GEA_APP_BUILD_DIR}/runtime_pch.h"
|
|
175
|
+
"${GEA_APP_BUILD_DIR}/runtime.cpp"
|
|
176
|
+
COMMAND "${CMAKE_COMMAND}" -E make_directory "${GEA_APP_BUILD_DIR}"
|
|
177
|
+
COMMAND "${NODE_EXECUTABLE}"
|
|
178
|
+
"${GEA_CORE}/scripts/build-gea-vite-geatsc.mjs"
|
|
179
|
+
--app-dir "${GEA_APP_DIR}"
|
|
180
|
+
--entry "${GEA_APP_ENTRY}"
|
|
181
|
+
--out-dir "${GEA_APP_BUILD_DIR}"
|
|
182
|
+
--gea-ir-backend
|
|
183
|
+
--cpp-board "${GEA_EMBEDDED_CPP_BOARD}"
|
|
184
|
+
--cpp-prelude-symbol gea_plugin_cpp_register_prelude
|
|
185
|
+
--pixel-panel-endian 1
|
|
186
|
+
--font-viewport-width 450
|
|
187
|
+
--font-viewport-height 600
|
|
188
|
+
--font-device-pixel-ratio ${GEA_EMBEDDED_CSS_DEVICE_PIXEL_RATIO}
|
|
189
|
+
--allow-any
|
|
190
|
+
${GEA_EMBEDDED_FONT_ARGS}
|
|
191
|
+
COMMAND "${CMAKE_COMMAND}" -E touch "${GEA_APP_STAMP}"
|
|
192
|
+
DEPENDS
|
|
193
|
+
"${GEA_CORE}/scripts/build-gea-vite-geatsc.mjs"
|
|
194
|
+
"${GEA_CORE}/scripts/generate-gea-embedded-fonts.mjs"
|
|
195
|
+
${GEA_APP_INPUTS}
|
|
196
|
+
VERBATIM
|
|
197
|
+
)
|
|
198
|
+
add_custom_target(gea_rp2350_touch_amoled_241_codegen DEPENDS "${GEA_APP_STAMP}")
|
|
199
|
+
|
|
200
|
+
set_source_files_properties(
|
|
201
|
+
"${GEA_APP_FONT_CPP}"
|
|
202
|
+
"${GEA_APP_ASSET_CPP}"
|
|
203
|
+
PROPERTIES GENERATED TRUE
|
|
204
|
+
)
|
|
205
|
+
|
|
206
|
+
file(GLOB GEA_ENGINE_UI_SOURCES CONFIGURE_DEPENDS
|
|
207
|
+
"${GEA_ENGINE}/ui/*.cpp"
|
|
208
|
+
)
|
|
209
|
+
|
|
210
|
+
set(GEA_ENGINE_SOURCES
|
|
211
|
+
"${GEA_ENGINE}/vendor/AnimatedGIF/AnimatedGIF.c"
|
|
212
|
+
"${GEA_ENGINE}/bitmap_font.cpp"
|
|
213
|
+
"${GEA_ENGINE}/canvas.cpp"
|
|
214
|
+
"${GEA_ENGINE}/image_store.cpp"
|
|
215
|
+
"${GEA_ENGINE}/rasterized_font.cpp"
|
|
216
|
+
"${GEA_ENGINE}/touch_runtime.cpp"
|
|
217
|
+
"${GEA_CORE}/events.cpp"
|
|
218
|
+
"${GEA_ELEMENTS}/ui/camera_element.cpp"
|
|
219
|
+
"${GEA_ELEMENTS}/ui/virtual_list.cpp"
|
|
220
|
+
"${GEA_HOST}/host/image.cpp"
|
|
221
|
+
${GEA_ENGINE_UI_SOURCES}
|
|
222
|
+
)
|
|
223
|
+
|
|
224
|
+
add_executable(gea_rp2350_touch_amoled_241_app
|
|
225
|
+
main/app.cpp
|
|
226
|
+
main/rp2350_gea_platform.cpp
|
|
227
|
+
main/rp2350_host_fetch_stub.cpp
|
|
228
|
+
main/rp2350_panel.cpp
|
|
229
|
+
main/vendor/waveshare_psram/rp_pico_alloc.c
|
|
230
|
+
main/vendor/waveshare_psram/tlsf/tlsf.c
|
|
231
|
+
"${GEA_CHIPS}/touch/ft6336/ft6336.cpp"
|
|
232
|
+
"${GEA_APP_FONT_CPP}"
|
|
233
|
+
"${GEA_APP_ASSET_CPP}"
|
|
234
|
+
${GEA_APP_NATIVE_SOURCES}
|
|
235
|
+
${GEA_ENGINE_SOURCES}
|
|
236
|
+
)
|
|
237
|
+
add_dependencies(gea_rp2350_touch_amoled_241_app gea_rp2350_touch_amoled_241_codegen)
|
|
238
|
+
|
|
239
|
+
target_include_directories(gea_rp2350_touch_amoled_241_app PRIVATE
|
|
240
|
+
main
|
|
241
|
+
main/include
|
|
242
|
+
main/vendor/waveshare_psram
|
|
243
|
+
"${GEA_APP_BUILD_DIR}"
|
|
244
|
+
${GEA_APP_NATIVE_INCLUDE_DIRS}
|
|
245
|
+
"${GEA_CHIPS}"
|
|
246
|
+
"${GEA_CORE}/include"
|
|
247
|
+
"${GEA_ENGINE}"
|
|
248
|
+
"${GEA_ENGINE}/ui"
|
|
249
|
+
"${GEA_ELEMENTS}"
|
|
250
|
+
"${GEA_ELEMENTS}/ui"
|
|
251
|
+
"${GEA_ENGINE}/vendor/AnimatedGIF"
|
|
252
|
+
"${GEA_ENGINE}/vendor/stb"
|
|
253
|
+
"${GEA_HOST}/include"
|
|
254
|
+
)
|
|
255
|
+
|
|
256
|
+
target_compile_definitions(gea_rp2350_touch_amoled_241_app PRIVATE
|
|
257
|
+
GEA_CPP_VALUE_AVAILABLE=1
|
|
258
|
+
GEA_EMBEDDED_PIXEL_PANEL_ENDIAN=1
|
|
259
|
+
GEA_EMBEDDED_DISPLAY_WIDTH=450
|
|
260
|
+
GEA_EMBEDDED_DISPLAY_HEIGHT=600
|
|
261
|
+
GEA_EMBEDDED_DISPLAY_NATIVE_WIDTH=450
|
|
262
|
+
GEA_EMBEDDED_DISPLAY_NATIVE_HEIGHT=600
|
|
263
|
+
GEA_EMBEDDED_CSS_DEVICE_PIXEL_RATIO=${GEA_EMBEDDED_CSS_DEVICE_PIXEL_RATIO}
|
|
264
|
+
GEA_EMBEDDED_HAS_GENERATED_FONTS=1
|
|
265
|
+
GEA_EMBEDDED_DEFAULT_FRAME_INTERVAL_US=8333
|
|
266
|
+
GEA_EMBEDDED_DISPLAY_FUSE_REPLAY_FLUSH=1
|
|
267
|
+
GEA_EMBEDDED_DISPLAY_FUSE_INTERLEAVED_REPLAY_FLUSH=1
|
|
268
|
+
GEA_EMBEDDED_DISPLAY_FUSE_REPLAY_CLEAR_RGB565=-1
|
|
269
|
+
GEA_EMBEDDED_FLUSH_ANCHOR_LEFT_PARTIAL_RECTS=1
|
|
270
|
+
GEA_EMBEDDED_GRADIENT_LUT_SLOTS=6
|
|
271
|
+
GEA_EMBEDDED_PERF=0
|
|
272
|
+
GEA_EMBEDDED_RAF_PERF=0
|
|
273
|
+
GEA_EMBEDDED_SINGLE_THREAD_IMAGE_STORE=1
|
|
274
|
+
GEA_PICO_SDK=1
|
|
275
|
+
GEA_RP2350_PSRAM_SIZE_BYTES=8388608
|
|
276
|
+
PICO_PANIC_FUNCTION=gea_panic
|
|
277
|
+
GEA_RP2350_RENDER_CORE1=1
|
|
278
|
+
GEA_RP2350_RENDER_CORE1_STACK_BYTES=12288
|
|
279
|
+
GEA_RP2350_RENDER_CORE1_WAIT_TIMEOUT_US=100000
|
|
280
|
+
GEA_RP2350_FRAME_PHASE_PERF=0
|
|
281
|
+
GEA_RP2350_REFRESH_DETAIL_PERF=0
|
|
282
|
+
PICO_CXX_DISABLE_ALLOCATION_OVERRIDES=1
|
|
283
|
+
)
|
|
284
|
+
|
|
285
|
+
if(GEA_EMBEDDED_TTF_RUNTIME_FONTS)
|
|
286
|
+
target_compile_definitions(gea_rp2350_touch_amoled_241_app PRIVATE
|
|
287
|
+
GEA_EMBEDDED_TTF_RUNTIME_FONTS=1
|
|
288
|
+
)
|
|
289
|
+
endif()
|
|
290
|
+
|
|
291
|
+
if(GEA_RP2350_STARTUP_TRACE)
|
|
292
|
+
target_compile_definitions(gea_rp2350_touch_amoled_241_app PRIVATE
|
|
293
|
+
GEA_RP2350_STARTUP_TRACE=1
|
|
294
|
+
)
|
|
295
|
+
endif()
|
|
296
|
+
|
|
297
|
+
if(GEA_EMBEDDED_TTF_RUNTIME_TRACE)
|
|
298
|
+
target_compile_definitions(gea_rp2350_touch_amoled_241_app PRIVATE
|
|
299
|
+
GEA_EMBEDDED_TTF_RUNTIME_TRACE=1
|
|
300
|
+
)
|
|
301
|
+
endif()
|
|
302
|
+
|
|
303
|
+
target_compile_options(gea_rp2350_touch_amoled_241_app PRIVATE
|
|
304
|
+
-Wno-deprecated
|
|
305
|
+
-Wno-unused-value
|
|
306
|
+
-Wno-parentheses-equality
|
|
307
|
+
-Wno-volatile
|
|
308
|
+
)
|
|
309
|
+
gea_geatsc_add_generated_archive(
|
|
310
|
+
TARGET gea_rp2350_touch_amoled_241_app
|
|
311
|
+
NAME gea_rp2350_touch_amoled_241_geatsc_archive
|
|
312
|
+
SOURCE_LIST "${GEA_APP_SOURCE_LIST}"
|
|
313
|
+
OUTPUT "${GEA_APP_GEATSC_ARCHIVE}"
|
|
314
|
+
DEPENDS "${GEA_APP_STAMP}"
|
|
315
|
+
COMPILE_OPTIONS
|
|
316
|
+
-include
|
|
317
|
+
"${GEA_APP_NATIVE_HEADERS_H}"
|
|
318
|
+
-Wno-unused-variable
|
|
319
|
+
-Wno-return-type
|
|
320
|
+
-Wno-format-truncation
|
|
321
|
+
-Os
|
|
322
|
+
)
|
|
323
|
+
|
|
324
|
+
target_link_libraries(gea_rp2350_touch_amoled_241_app
|
|
325
|
+
pico_stdlib
|
|
326
|
+
hardware_adc
|
|
327
|
+
hardware_clocks
|
|
328
|
+
hardware_dma
|
|
329
|
+
hardware_flash
|
|
330
|
+
hardware_gpio
|
|
331
|
+
hardware_i2c
|
|
332
|
+
hardware_pio
|
|
333
|
+
hardware_spi
|
|
334
|
+
hardware_sync
|
|
335
|
+
hardware_vreg
|
|
336
|
+
hardware_xip_cache
|
|
337
|
+
pico_multicore
|
|
338
|
+
pico_rand
|
|
339
|
+
m
|
|
340
|
+
)
|
|
341
|
+
|
|
342
|
+
pico_enable_stdio_usb(gea_rp2350_touch_amoled_241_app 1)
|
|
343
|
+
pico_enable_stdio_uart(gea_rp2350_touch_amoled_241_app 0)
|
|
344
|
+
pico_add_extra_outputs(gea_rp2350_touch_amoled_241_app)
|
|
345
|
+
endif()
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
# Waveshare RP2350 Touch AMOLED 2.41
|
|
2
|
+
|
|
3
|
+
Target scaffold for the Waveshare RP2350-Touch-AMOLED-2.41 board.
|
|
4
|
+
|
|
5
|
+
## Hardware
|
|
6
|
+
|
|
7
|
+
- MCU: RP2350
|
|
8
|
+
- Display: 450x600 AMOLED, RM690B0-compatible QSPI command set
|
|
9
|
+
- Touch: FT6336 at I2C address `0x38`
|
|
10
|
+
- IMU: QMI8658 at I2C address `0x6B`
|
|
11
|
+
- RTC: PCF85063 at I2C address `0x51`
|
|
12
|
+
- Power: ETA6098 power path, GPIO power hold/key, ADC battery sense
|
|
13
|
+
- Memory: 16 MB flash, 8 MB PSRAM (APS6408, KGD `0x5d`, EID `0x53`)
|
|
14
|
+
|
|
15
|
+
Note: the PSRAM pool is clamped by `GEA_RP2350_PSRAM_SIZE_BYTES` in
|
|
16
|
+
`CMakeLists.txt`. This was wrongly set to 2 MB until 2026-07-02 (this README
|
|
17
|
+
claimed 2 MB too), which capped the heap at 2 MB and made memory-heavy apps
|
|
18
|
+
(e.g. typography) panic with `Out of memory` at boot — a black screen. The
|
|
19
|
+
chip's own EID density decode reports 8 MB and the allocator now uses all of
|
|
20
|
+
it.
|
|
21
|
+
|
|
22
|
+
## Pin Map
|
|
23
|
+
|
|
24
|
+
| Function | Pin |
|
|
25
|
+
| --- | ---: |
|
|
26
|
+
| I2C1 SDA | GP6 |
|
|
27
|
+
| I2C1 SCL | GP7 |
|
|
28
|
+
| Touch IRQ | GP4 |
|
|
29
|
+
| Touch reset | GP5 |
|
|
30
|
+
| QMI8658 IRQ | GP8 |
|
|
31
|
+
| Display CS | GP9 |
|
|
32
|
+
| Display SCLK | GP10 |
|
|
33
|
+
| Display D0-D3 | GP11-GP14 |
|
|
34
|
+
| Display reset | GP15 |
|
|
35
|
+
| Power key | GP24 |
|
|
36
|
+
| Power hold/control | GP25 |
|
|
37
|
+
| Battery ADC | GP40 / ADC0 |
|
|
38
|
+
|
|
39
|
+
## Status
|
|
40
|
+
|
|
41
|
+
This target builds either the Pico SDK bring-up app (power hold, I2C probes,
|
|
42
|
+
QMI8658/FT6336/PCF85063 cores, battery ADC, RM690B0 link check) or, with
|
|
43
|
+
`--app=<id>`, a full Gea app compiled by geatsc into the firmware
|
|
44
|
+
(`npx gea run --board waveshare-rp2350-amoled-2.41 --app typography`).
|
|
45
|
+
|
|
46
|
+
## Fonts: baked atlases vs runtime TTF
|
|
47
|
+
|
|
48
|
+
`GEA_EMBEDDED_TTF_RUNTIME_FONTS` (CMake option, **default OFF**) picks how app
|
|
49
|
+
fonts are shipped:
|
|
50
|
+
|
|
51
|
+
- **OFF (default, recommended):** geatsc bakes rasterized glyph atlases into
|
|
52
|
+
the firmware at build time.
|
|
53
|
+
- **ON (experimental):** the firmware embeds the deflate-compressed TTFs and
|
|
54
|
+
rasterizes glyphs on demand via stb_truetype into a runtime slot cache
|
|
55
|
+
(`core/packages/engine/rasterized_font.cpp`).
|
|
56
|
+
|
|
57
|
+
Measured on typography (2026-07-02, dpr 1.5, 450x600):
|
|
58
|
+
|
|
59
|
+
| | atlases (OFF) | runtime TTF (ON) |
|
|
60
|
+
| --- | ---: | ---: |
|
|
61
|
+
| flash image | 3.48 MB | 2.00 MB |
|
|
62
|
+
| PSRAM peak | 1.89 MB | 2.82 MB |
|
|
63
|
+
| idle fps | 59 | 59 |
|
|
64
|
+
| scroll | smooth | visibly janky |
|
|
65
|
+
|
|
66
|
+
Runtime TTF is kept OFF for now because it currently scrolls much worse on
|
|
67
|
+
text-heavy screens: `presentDirectToPanel()` in `rp2350_gea_platform.cpp`
|
|
68
|
+
refuses frames containing `FillText` when runtime fonts are enabled (runtime
|
|
69
|
+
slot atlases can be reallocated mid-replay, so glyph pointers would dangle),
|
|
70
|
+
which drops every scroll frame to the full-framebuffer path, and glyphs are
|
|
71
|
+
additionally rasterized lazily inside scroll frames on first use. Fixing that
|
|
72
|
+
means pinning/pre-reserving slot atlases so the direct path stays safe, and
|
|
73
|
+
pre-rasterizing registered families at startup. Until then the +1.5 MB flash
|
|
74
|
+
for atlases is the better trade; the runtime path is the option when flash is
|
|
75
|
+
tight or font/size combinations are too numerous to bake.
|
|
76
|
+
|
|
77
|
+
## Boot memory constraints (read before porting a new app)
|
|
78
|
+
|
|
79
|
+
Until `main()` runs `memoryInit()`, the ONLY heap is the newlib SRAM heap
|
|
80
|
+
(~200-260 KB after .data/.bss) — and pico_malloc PANICS on a failed alloc, so
|
|
81
|
+
anything allocation-hungry before/around boot kills the board with a dark USB.
|
|
82
|
+
Weather hit all three of these (2026-07-02):
|
|
83
|
+
|
|
84
|
+
1. **CSS/prelude registration** used to run as a file-scope static constructor
|
|
85
|
+
(before main, SRAM-only). The codegen now emits it as a function via
|
|
86
|
+
`--cpp-prelude-symbol gea_plugin_cpp_register_prelude` (see the
|
|
87
|
+
`add_custom_command`), which `main()` calls right after `memoryInit()` so
|
|
88
|
+
the stylesheet allocates from PSRAM. A big enough stylesheet OOM'd pre-main
|
|
89
|
+
(typography's ~185 KB squeaked by; weather's didn't).
|
|
90
|
+
2. **geatsc's `gea_cpp_shared_vector`** used to allocate in its default
|
|
91
|
+
constructor, so emitted `inline static` members (the dynamic-prop sidecars)
|
|
92
|
+
ran allocating constructors pre-main. Fixed upstream in the geatsc runtime:
|
|
93
|
+
the constructor is now constexpr/lazy and such statics constant-initialize
|
|
94
|
+
into .bss.
|
|
95
|
+
3. **stb_image** allocated decode buffers with plain `malloc` (SRAM). Fixed in
|
|
96
|
+
`core/packages/engine/image_store.cpp`: `STBI_MALLOC` routes through
|
|
97
|
+
`Allocator::allocatePreferSpiram`.
|
|
98
|
+
|
|
99
|
+
Boot diagnostics live in `main/app.cpp` and stay compiled in: a HardFault
|
|
100
|
+
handler and a pre-main hang detector report via watchdog-scratch on the next
|
|
101
|
+
boot, a 1 ms PC sampler records where a locked-up boot was stuck, and
|
|
102
|
+
`PICO_PANIC_FUNCTION=gea_panic` broadcasts panic messages over USB for 8 s and
|
|
103
|
+
then reboots (instead of wedging with dead USB) — which also keeps a live
|
|
104
|
+
USB window every cycle so `picotool load -f` can reflash a crashing firmware
|
|
105
|
+
without touching BOOTSEL.
|
|
106
|
+
|
|
107
|
+
Networked apps: this board has no radio. `main/rp2350_host_fetch_stub.cpp`
|
|
108
|
+
resolves every `gea::host::fetch` as a failed "offline" response, so apps run
|
|
109
|
+
in their placeholder/offline states; `host/image.cpp` is compiled in for
|
|
110
|
+
embedded-asset image loading (weather's icons).
|
|
111
|
+
|
|
112
|
+
## Scroll performance
|
|
113
|
+
|
|
114
|
+
The RM690B0 on this board does NOT implement DCS vertical scrolling
|
|
115
|
+
(`0x33`/`0x37` are ignored — verified 2026-07-02), so the platform fakes a
|
|
116
|
+
scroll register in software (`GEA_RP2350_SOFTWARE_SCROLL_REGISTER`: circular
|
|
117
|
+
framebuffer row remap) and every scroll frame re-streams the full region to
|
|
118
|
+
GRAM (~540 KB). The QSPI link (PIO at clkdiv 1, 4-bit @ 200 MHz ≈ 50 MB/s)
|
|
119
|
+
makes that ~10.8 ms/frame of TX at minimum.
|
|
120
|
+
|
|
121
|
+
Two optimizations carry sustained scroll from 46.8 to ~56 fps on typography
|
|
122
|
+
(measured via `scripts/rp2350-scroll-bench.py`, which drives the firmware's
|
|
123
|
+
`GEADEV DRAG` synthetic touch):
|
|
124
|
+
|
|
125
|
+
1. **Zero-copy span flush.** The scroll-region flush streams as ≤2 contiguous
|
|
126
|
+
full-width framebuffer spans via 32-bit byte-swapped DMA from the uncached
|
|
127
|
+
PSRAM alias (`panelFlushFullWidthSpans`), with the PIO autopull threshold
|
|
128
|
+
switched 8→32 around the burst (the SM's shift state must be restarted at
|
|
129
|
+
the switch or 24 stale bits misalign the stream — uniform hue corruption).
|
|
130
|
+
No CPU copies; ~45 MB/s effective. 46.8 → 51.3 fps.
|
|
131
|
+
2. **Translate-only display-list maintenance** (engine,
|
|
132
|
+
`RootScrollOnlyRefresh`): instead of a full clear()+recordNode() every
|
|
133
|
+
scroll frame (~2.1 ms), the ENTIRE scroll content is pre-recorded once
|
|
134
|
+
(record clip expanded to the content bounds), then each scroll frame just
|
|
135
|
+
translates the scroll subtree's commands in place, un-translates the
|
|
136
|
+
scroll node's own box, and patches the scrollbar thumb
|
|
137
|
+
(`DisplayList::patchScrollbarThumb`). Scrolling never re-records; only a
|
|
138
|
+
content change (dirty nodes → the plain rebuild path) or another record
|
|
139
|
+
(`recordSerial()`) invalidates coverage. Content taller than ~16k px
|
|
140
|
+
(int16 command coords) or a command-buffer overflow
|
|
141
|
+
(`DisplayList::commandOverflow()`) falls back to a ±512 px window around
|
|
142
|
+
the viewport. Verified pixel-identical to the rebuild path at both scroll
|
|
143
|
+
clamps (`scripts/rp2350-scroll-parity.py`);
|
|
144
|
+
`GEA_EMBEDDED_ROOT_SCROLL_TRANSLATE=0` restores the old behavior for A/B.
|
|
145
|
+
51.3 → ~56 fps, and no periodic coverage-re-record hitch mid-fling.
|
|
146
|
+
|
|
147
|
+
Remaining scroll frame costs: ~12 ms TX-bound flush (the QSPI link is the
|
|
148
|
+
wall) + ~1.5 ms strip replay + ~0.6 ms scrollbar damage replay. Known dead
|
|
149
|
+
ends: DMA via the cached window thrashes the 16 KB XIP cache (net loss);
|
|
150
|
+
chained/fully-async DMA completion showed intermittent 100 ms+ stalls
|
|
151
|
+
(unexplained — parked; the machinery is still in rp2350_panel.cpp); uncached
|
|
152
|
+
byte-wide DMA runs ~15 MB/s. The last ~3 fps to 60 needs the flush TX
|
|
153
|
+
overlapped with engine work (fix the async stall) or fewer streamed bytes.
|
package/targets/rp2350-waveshare-touch-amoled-2.41/boards/waveshare_rp2350_touch_amoled_2_41.h
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Pico SDK board definition for Waveshare RP2350-Touch-AMOLED-2.41.
|
|
3
|
+
*
|
|
4
|
+
* Derived from Waveshare's board package. Keep this file limited to
|
|
5
|
+
* preprocessor definitions so the Pico SDK can include it from C and ASM
|
|
6
|
+
* contexts.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
#ifndef _BOARDS_WAVESHARE_RP2350_TOUCH_AMOLED_2_41_H
|
|
10
|
+
#define _BOARDS_WAVESHARE_RP2350_TOUCH_AMOLED_2_41_H
|
|
11
|
+
|
|
12
|
+
pico_board_cmake_set(PICO_PLATFORM, rp2350)
|
|
13
|
+
|
|
14
|
+
#define WAVESHARE_RP2350_TOUCH_AMOLED_2_41
|
|
15
|
+
#define PICO_RP2350A 0
|
|
16
|
+
|
|
17
|
+
#ifndef PICO_DEFAULT_UART
|
|
18
|
+
#define PICO_DEFAULT_UART 0
|
|
19
|
+
#endif
|
|
20
|
+
#ifndef PICO_DEFAULT_UART_TX_PIN
|
|
21
|
+
#define PICO_DEFAULT_UART_TX_PIN 0
|
|
22
|
+
#endif
|
|
23
|
+
#ifndef PICO_DEFAULT_UART_RX_PIN
|
|
24
|
+
#define PICO_DEFAULT_UART_RX_PIN 1
|
|
25
|
+
#endif
|
|
26
|
+
|
|
27
|
+
#ifndef PICO_DEFAULT_I2C
|
|
28
|
+
#define PICO_DEFAULT_I2C 1
|
|
29
|
+
#endif
|
|
30
|
+
#ifndef PICO_DEFAULT_I2C_SDA_PIN
|
|
31
|
+
#define PICO_DEFAULT_I2C_SDA_PIN 6
|
|
32
|
+
#endif
|
|
33
|
+
#ifndef PICO_DEFAULT_I2C_SCL_PIN
|
|
34
|
+
#define PICO_DEFAULT_I2C_SCL_PIN 7
|
|
35
|
+
#endif
|
|
36
|
+
|
|
37
|
+
#define PICO_BOOT_STAGE2_CHOOSE_W25Q080 1
|
|
38
|
+
|
|
39
|
+
#ifndef RP2350_XIP_CSI_PIN
|
|
40
|
+
#define RP2350_XIP_CSI_PIN 47
|
|
41
|
+
#endif
|
|
42
|
+
|
|
43
|
+
#ifndef PICO_FLASH_SPI_CLKDIV
|
|
44
|
+
#define PICO_FLASH_SPI_CLKDIV 2
|
|
45
|
+
#endif
|
|
46
|
+
|
|
47
|
+
pico_board_cmake_set_default(PICO_FLASH_SIZE_BYTES, (16 * 1024 * 1024))
|
|
48
|
+
|
|
49
|
+
#ifndef PICO_FLASH_SIZE_BYTES
|
|
50
|
+
#define PICO_FLASH_SIZE_BYTES (16 * 1024 * 1024)
|
|
51
|
+
#endif
|
|
52
|
+
|
|
53
|
+
pico_board_cmake_set_default(PICO_RP2350_A2_SUPPORTED, 1)
|
|
54
|
+
|
|
55
|
+
#ifndef PICO_RP2350_A2_SUPPORTED
|
|
56
|
+
#define PICO_RP2350_A2_SUPPORTED 1
|
|
57
|
+
#endif
|
|
58
|
+
|
|
59
|
+
#endif
|