@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,136 @@
|
|
|
1
|
+
|
|
2
|
+
/******************************************************************************/
|
|
3
|
+
/*** include files ***/
|
|
4
|
+
/******************************************************************************/
|
|
5
|
+
|
|
6
|
+
#include "rmt_pulse.h"
|
|
7
|
+
|
|
8
|
+
#include "esp_idf_version.h" // ESP_IDF_VERSION_MAJOR — not transitively included on IDF 6
|
|
9
|
+
|
|
10
|
+
#if ESP_IDF_VERSION_MAJOR >= 5 // IDF 5+ — new RMT TX driver (driver_ng)
|
|
11
|
+
#include <driver/rmt_tx.h>
|
|
12
|
+
#include <driver/rmt_encoder.h>
|
|
13
|
+
#include <freertos/FreeRTOS.h> // portMAX_DELAY
|
|
14
|
+
#else
|
|
15
|
+
#include <driver/rmt.h>
|
|
16
|
+
#endif
|
|
17
|
+
|
|
18
|
+
#include <esp_log.h>
|
|
19
|
+
|
|
20
|
+
/******************************************************************************/
|
|
21
|
+
/*** local variables ***/
|
|
22
|
+
/******************************************************************************/
|
|
23
|
+
|
|
24
|
+
#if ESP_IDF_VERSION_MAJOR >= 5
|
|
25
|
+
|
|
26
|
+
static rmt_channel_handle_t rmt_chan = NULL;
|
|
27
|
+
static rmt_encoder_handle_t copy_encoder = NULL;
|
|
28
|
+
|
|
29
|
+
#else
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @brief the RMT channel configuration object
|
|
33
|
+
*/
|
|
34
|
+
static rmt_config_t row_rmt_config;
|
|
35
|
+
|
|
36
|
+
#endif
|
|
37
|
+
|
|
38
|
+
/******************************************************************************/
|
|
39
|
+
/*** exported functions ***/
|
|
40
|
+
/******************************************************************************/
|
|
41
|
+
|
|
42
|
+
void rmt_pulse_init(gpio_num_t pin)
|
|
43
|
+
{
|
|
44
|
+
#if ESP_IDF_VERSION_MAJOR >= 5
|
|
45
|
+
rmt_tx_channel_config_t tx_chan_config = {
|
|
46
|
+
.clk_src = RMT_CLK_SRC_DEFAULT,
|
|
47
|
+
.gpio_num = pin,
|
|
48
|
+
.mem_block_symbols = 64,
|
|
49
|
+
// 10 MHz -> 0.1 us resolution (same as legacy clk_div=8 on 80MHz APB)
|
|
50
|
+
.resolution_hz = 10 * 1000 * 1000,
|
|
51
|
+
.trans_queue_depth = 4,
|
|
52
|
+
.flags.invert_out = false,
|
|
53
|
+
.flags.with_dma = false,
|
|
54
|
+
};
|
|
55
|
+
ESP_ERROR_CHECK(rmt_new_tx_channel(&tx_chan_config, &rmt_chan));
|
|
56
|
+
|
|
57
|
+
rmt_copy_encoder_config_t copy_encoder_config = {};
|
|
58
|
+
ESP_ERROR_CHECK(rmt_new_copy_encoder(©_encoder_config, ©_encoder));
|
|
59
|
+
|
|
60
|
+
ESP_ERROR_CHECK(rmt_enable(rmt_chan));
|
|
61
|
+
#else
|
|
62
|
+
row_rmt_config.rmt_mode = RMT_MODE_TX;
|
|
63
|
+
// currently hardcoded: use channel 1
|
|
64
|
+
row_rmt_config.channel = RMT_CHANNEL_1;
|
|
65
|
+
|
|
66
|
+
row_rmt_config.gpio_num = pin;
|
|
67
|
+
row_rmt_config.mem_block_num = 2;
|
|
68
|
+
|
|
69
|
+
// Divide 80MHz APB Clock by 8 -> .1us resolution delay
|
|
70
|
+
row_rmt_config.clk_div = 8;
|
|
71
|
+
|
|
72
|
+
row_rmt_config.tx_config.loop_en = false;
|
|
73
|
+
row_rmt_config.tx_config.carrier_en = false;
|
|
74
|
+
row_rmt_config.tx_config.carrier_level = RMT_CARRIER_LEVEL_LOW;
|
|
75
|
+
row_rmt_config.tx_config.idle_level = RMT_IDLE_LEVEL_LOW;
|
|
76
|
+
row_rmt_config.tx_config.idle_output_en = true;
|
|
77
|
+
|
|
78
|
+
rmt_config(&row_rmt_config);
|
|
79
|
+
rmt_driver_install(RMT_CHANNEL_1, 0, 0);
|
|
80
|
+
#endif
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
void IRAM_ATTR pulse_ckv_ticks(uint16_t high_time_ticks,
|
|
85
|
+
uint16_t low_time_ticks, bool wait)
|
|
86
|
+
{
|
|
87
|
+
#if ESP_IDF_VERSION_MAJOR >= 5
|
|
88
|
+
rmt_symbol_word_t symbol;
|
|
89
|
+
if (high_time_ticks > 0) {
|
|
90
|
+
symbol.level0 = 1;
|
|
91
|
+
symbol.duration0 = high_time_ticks;
|
|
92
|
+
symbol.level1 = 0;
|
|
93
|
+
symbol.duration1 = low_time_ticks > 0 ? low_time_ticks : 1;
|
|
94
|
+
} else {
|
|
95
|
+
symbol.level0 = 1;
|
|
96
|
+
symbol.duration0 = low_time_ticks;
|
|
97
|
+
symbol.level1 = 0;
|
|
98
|
+
symbol.duration1 = 1;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
rmt_transmit_config_t tx_config = {
|
|
102
|
+
.loop_count = 0,
|
|
103
|
+
};
|
|
104
|
+
rmt_transmit(rmt_chan, copy_encoder, &symbol, sizeof(symbol), &tx_config);
|
|
105
|
+
if (wait) {
|
|
106
|
+
rmt_tx_wait_all_done(rmt_chan, portMAX_DELAY);
|
|
107
|
+
}
|
|
108
|
+
#else
|
|
109
|
+
rmt_item32_t rmt_mem_ptr;
|
|
110
|
+
if (high_time_ticks > 0)
|
|
111
|
+
{
|
|
112
|
+
rmt_mem_ptr.level0 = 1;
|
|
113
|
+
rmt_mem_ptr.duration0 = high_time_ticks;
|
|
114
|
+
rmt_mem_ptr.level1 = 0;
|
|
115
|
+
rmt_mem_ptr.duration1 = low_time_ticks;
|
|
116
|
+
}
|
|
117
|
+
else
|
|
118
|
+
{
|
|
119
|
+
rmt_mem_ptr.level0 = 1;
|
|
120
|
+
rmt_mem_ptr.duration0 = low_time_ticks;
|
|
121
|
+
rmt_mem_ptr.level1 = 0;
|
|
122
|
+
rmt_mem_ptr.duration1 = 0;
|
|
123
|
+
}
|
|
124
|
+
rmt_write_items(row_rmt_config.channel, &rmt_mem_ptr, 1, wait);
|
|
125
|
+
#endif
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
void IRAM_ATTR pulse_ckv_us(uint16_t high_time_us, uint16_t low_time_us, bool wait)
|
|
130
|
+
{
|
|
131
|
+
pulse_ckv_ticks(10 * high_time_us, 10 * low_time_us, wait);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/******************************************************************************/
|
|
135
|
+
/*** END OF FILE ***/
|
|
136
|
+
/******************************************************************************/
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Emit a pulse of precise length on a pin, using the RMT peripheral.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
#ifndef _RMT_PULSE_H_
|
|
6
|
+
#define _RMT_PULSE_H_
|
|
7
|
+
|
|
8
|
+
#ifdef __cplusplus
|
|
9
|
+
extern "C" {
|
|
10
|
+
#endif
|
|
11
|
+
|
|
12
|
+
/******************************************************************************/
|
|
13
|
+
/*** include files ***/
|
|
14
|
+
/******************************************************************************/
|
|
15
|
+
|
|
16
|
+
#include <stdint.h>
|
|
17
|
+
|
|
18
|
+
#include <driver/gpio.h>
|
|
19
|
+
#include <esp_attr.h>
|
|
20
|
+
|
|
21
|
+
/******************************************************************************/
|
|
22
|
+
/*** macro definitions ***/
|
|
23
|
+
/******************************************************************************/
|
|
24
|
+
|
|
25
|
+
/******************************************************************************/
|
|
26
|
+
/*** type definitions ***/
|
|
27
|
+
/******************************************************************************/
|
|
28
|
+
|
|
29
|
+
/******************************************************************************/
|
|
30
|
+
/*** exported variables ***/
|
|
31
|
+
/******************************************************************************/
|
|
32
|
+
|
|
33
|
+
/******************************************************************************/
|
|
34
|
+
/*** exported functions ***/
|
|
35
|
+
/******************************************************************************/
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @brief Initializes RMT Channel 0 with a pin for RMT pulsing.
|
|
39
|
+
*
|
|
40
|
+
* @note The pin will have to be re-initialized if subsequently used as GPIO.
|
|
41
|
+
*/
|
|
42
|
+
void rmt_pulse_init(gpio_num_t pin);
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @brief Outputs a single pulse (high -> low) on the configured pin.
|
|
46
|
+
*
|
|
47
|
+
* @note This function will always wait for a previous call to finish.
|
|
48
|
+
*
|
|
49
|
+
* @param high_time_us Pulse high time in us.
|
|
50
|
+
* @param low_time_us Pulse low time in us.
|
|
51
|
+
* @param wait Block until the pulse is finished.
|
|
52
|
+
*/
|
|
53
|
+
void IRAM_ATTR pulse_ckv_us(uint16_t high_time_us, uint16_t low_time_us, bool wait);
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @brief Indicates if the rmt is currently sending a pulse.
|
|
57
|
+
*/
|
|
58
|
+
bool IRAM_ATTR rmt_busy();
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @brief Outputs a single pulse (high -> low) on the configured pin.
|
|
62
|
+
*
|
|
63
|
+
* @note This function will always wait for a previous call to finish.
|
|
64
|
+
*
|
|
65
|
+
* @param high_time_us Pulse high time clock ticks.
|
|
66
|
+
* @param low_time_us Pulse low time in clock ticks.
|
|
67
|
+
* @param wait Block until the pulse is finished.
|
|
68
|
+
*/
|
|
69
|
+
void IRAM_ATTR pulse_ckv_ticks(uint16_t high_time_us, uint16_t low_time_us, bool wait);
|
|
70
|
+
|
|
71
|
+
#ifdef __cplusplus
|
|
72
|
+
}
|
|
73
|
+
#endif
|
|
74
|
+
|
|
75
|
+
#endif
|
|
76
|
+
/******************************************************************************/
|
|
77
|
+
/*** END OF FILE ***/
|
|
78
|
+
/******************************************************************************/
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
|
|
3
|
+
#if defined(CONFIG_IDF_TARGET_ESP32)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
#define BUTTON_1 (34)
|
|
8
|
+
#define BUTTON_2 (35)
|
|
9
|
+
#define BUTTON_3 (39)
|
|
10
|
+
|
|
11
|
+
#define BATT_PIN (36)
|
|
12
|
+
|
|
13
|
+
#define SD_MISO (12)
|
|
14
|
+
#define SD_MOSI (13)
|
|
15
|
+
#define SD_SCLK (14)
|
|
16
|
+
#define SD_CS (15)
|
|
17
|
+
|
|
18
|
+
#define BOARD_SCL (14)
|
|
19
|
+
#define BOARD_SDA (15)
|
|
20
|
+
#define TOUCH_INT (13)
|
|
21
|
+
|
|
22
|
+
#define GPIO_MISO (12)
|
|
23
|
+
#define GPIO_MOSI (13)
|
|
24
|
+
#define GPIO_SCLK (14)
|
|
25
|
+
#define GPIO_CS (15)
|
|
26
|
+
|
|
27
|
+
#elif defined(CONFIG_IDF_TARGET_ESP32S3)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
#define BUTTON_1 (21)
|
|
31
|
+
|
|
32
|
+
#define BATT_PIN (14)
|
|
33
|
+
|
|
34
|
+
#define SD_MISO (16)
|
|
35
|
+
#define SD_MOSI (15)
|
|
36
|
+
#define SD_SCLK (11)
|
|
37
|
+
#define SD_CS (42)
|
|
38
|
+
|
|
39
|
+
#define BOARD_SCL (17)
|
|
40
|
+
#define BOARD_SDA (18)
|
|
41
|
+
#define TOUCH_INT (47)
|
|
42
|
+
|
|
43
|
+
#define GPIO_MISO (45)
|
|
44
|
+
#define GPIO_MOSI (10)
|
|
45
|
+
#define GPIO_SCLK (48)
|
|
46
|
+
#define GPIO_CS (39)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
#endif
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
dependencies:
|
|
2
|
+
espressif/esp_lcd_touch:
|
|
3
|
+
component_hash: 3f85a7d95af876f1a6ecca8eb90a81614890d0f03a038390804e5a77e2caf862
|
|
4
|
+
dependencies:
|
|
5
|
+
- name: idf
|
|
6
|
+
require: private
|
|
7
|
+
version: '>=4.4.2'
|
|
8
|
+
source:
|
|
9
|
+
registry_url: https://components.espressif.com
|
|
10
|
+
type: service
|
|
11
|
+
version: 1.2.1
|
|
12
|
+
espressif/esp_lcd_touch_gt911:
|
|
13
|
+
component_hash: 6029febef66eefd0910d527d7f30292779ccbf22a8dedd2bd69466acf0068a7b
|
|
14
|
+
dependencies:
|
|
15
|
+
- name: espressif/esp_lcd_touch
|
|
16
|
+
registry_url: https://components.espressif.com
|
|
17
|
+
require: public
|
|
18
|
+
version: ^1.2.0
|
|
19
|
+
- name: idf
|
|
20
|
+
require: private
|
|
21
|
+
version: '>=5.2'
|
|
22
|
+
source:
|
|
23
|
+
registry_url: https://components.espressif.com/
|
|
24
|
+
type: service
|
|
25
|
+
version: 1.2.0~2
|
|
26
|
+
idf:
|
|
27
|
+
source:
|
|
28
|
+
type: idf
|
|
29
|
+
version: 6.0.2
|
|
30
|
+
direct_dependencies:
|
|
31
|
+
- espressif/esp_lcd_touch_gt911
|
|
32
|
+
- idf
|
|
33
|
+
manifest_hash: c96fa2c56670477a31037cc89d452c6c3e6dff6afdcc1d05fa843f9b00913bc3
|
|
34
|
+
target: esp32s3
|
|
35
|
+
version: 3.0.0
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# The Gea app pipeline is common to the ESP32 e-paper boards. Keep only the
|
|
2
|
+
# LilyGo T5 4.7" hardware/profile choices here; the included component
|
|
3
|
+
# definition (shared with the other e-paper targets) resolves sources relative
|
|
4
|
+
# to this component directory and picks up this board's own display.cpp/board.h.
|
|
5
|
+
set(GEA_EMBEDDED_TARGET_MAIN_DIR "${CMAKE_CURRENT_LIST_DIR}")
|
|
6
|
+
set(GEA_EMBEDDED_TARGET_CPP_BOARD "esp32-s3-lilygo-t5-epaper-4.7")
|
|
7
|
+
set(GEA_EMBEDDED_TARGET_DISPLAY_WIDTH 540)
|
|
8
|
+
set(GEA_EMBEDDED_TARGET_DISPLAY_HEIGHT 960)
|
|
9
|
+
set(GEA_EMBEDDED_TARGET_DISPLAY_NATIVE_WIDTH 540)
|
|
10
|
+
set(GEA_EMBEDDED_TARGET_DISPLAY_NATIVE_HEIGHT 960)
|
|
11
|
+
set(GEA_EMBEDDED_TARGET_CSS_DEVICE_PIXEL_RATIO "1.0")
|
|
12
|
+
set(GEA_EMBEDDED_TARGET_AUDIO_SOURCE "${CMAKE_CURRENT_LIST_DIR}/audio_stub.cpp")
|
|
13
|
+
set(GEA_EMBEDDED_TARGET_AUDIO_RUNTIME_SOURCE "${CMAKE_CURRENT_LIST_DIR}/../../esp32/services/audio_runtime_stub.cpp")
|
|
14
|
+
# epd_driver: our board-local vendored ED047TC1 low-level driver (components/).
|
|
15
|
+
set(GEA_EMBEDDED_TARGET_EXTRA_REQUIRES esp_adc bootloader_support spi_flash esp_psram epd_driver)
|
|
16
|
+
set(GEA_EMBEDDED_TARGET_COMPILE_DEFINITIONS
|
|
17
|
+
# No speaker/mic on this board.
|
|
18
|
+
GEA_EMBEDDED_AUDIO_DISABLED=1
|
|
19
|
+
# Note: unlike the classic-ESP32 M5Paper we do NOT set GEA_EMBEDDED_ROM_TJPGD
|
|
20
|
+
# (its "esp32/rom/tjpgd.h" is ESP32-only). The S3's 8 MB PSRAM lets stb_image
|
|
21
|
+
# decode full-page EPUB covers, matching the other S3 targets.
|
|
22
|
+
# Large images decode to 1-channel grayscale (this is a grayscale e-paper).
|
|
23
|
+
GEA_EMBEDDED_IMAGE_GRAYSCALE_DECODE=1
|
|
24
|
+
# Render straight into the panel's native 16-level, 4-bit packed format
|
|
25
|
+
# (GEA_PIXEL_GRAY4). The Canvas framebuffer IS the grayscale buffer.
|
|
26
|
+
GEA_EMBEDDED_PIXEL_FORMAT=3
|
|
27
|
+
GEA_EMBEDDED_RUNTIME_TASK_STACK_BYTES=32768
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
include("${CMAKE_CURRENT_LIST_DIR}/../../esp32-s3-epaper-1.54/main/CMakeLists.txt")
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
#include "gea_embedded_app_config.h"
|
|
2
|
+
|
|
3
|
+
#include "apps/app_manager.h"
|
|
4
|
+
#include "board.h"
|
|
5
|
+
#include "buttons.h"
|
|
6
|
+
#include "connectivity/ble_hid.h"
|
|
7
|
+
#include "display.h"
|
|
8
|
+
#include "memory_config.h"
|
|
9
|
+
#include "runtime.h"
|
|
10
|
+
#include "services/device_control.h"
|
|
11
|
+
|
|
12
|
+
#include "esp_heap_caps.h"
|
|
13
|
+
#include "esp_log.h"
|
|
14
|
+
#include "freertos/FreeRTOS.h"
|
|
15
|
+
#include "freertos/idf_additions.h"
|
|
16
|
+
#include "freertos/task.h"
|
|
17
|
+
#include "sdkconfig.h"
|
|
18
|
+
|
|
19
|
+
#include <cstdlib>
|
|
20
|
+
|
|
21
|
+
namespace gea::targets::esp32::wifi {
|
|
22
|
+
void registerDriver();
|
|
23
|
+
}
|
|
24
|
+
namespace gea::platform::storage {
|
|
25
|
+
void installSdCardFileCache();
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
namespace {
|
|
29
|
+
|
|
30
|
+
constexpr char kTag[] = "gea_lilygo_t5";
|
|
31
|
+
|
|
32
|
+
#ifndef GEA_EMBEDDED_RUNTIME_TASK_STACK_BYTES
|
|
33
|
+
#define GEA_EMBEDDED_RUNTIME_TASK_STACK_BYTES (32 * 1024)
|
|
34
|
+
#endif
|
|
35
|
+
|
|
36
|
+
constexpr int kRuntimeTaskStackBytes = GEA_EMBEDDED_RUNTIME_TASK_STACK_BYTES;
|
|
37
|
+
|
|
38
|
+
[[noreturn]] void runGeaRuntime()
|
|
39
|
+
{
|
|
40
|
+
// Unlike the M5Paper, this board has no discrete power-rail GPIOs to latch:
|
|
41
|
+
// the ED047TC1 rails come up inside the display engine (epd_poweron via the
|
|
42
|
+
// CFG shift register), so display init owns power sequencing.
|
|
43
|
+
gea::platform::lilygo_t5::buttons::init();
|
|
44
|
+
gea::platform::storage::installSdCardFileCache();
|
|
45
|
+
|
|
46
|
+
// These explicit references keep registration-only translation units alive
|
|
47
|
+
// when the component archive is linked with --gc-sections.
|
|
48
|
+
(void)gea::platform::esp32::apps::launcherPlatform();
|
|
49
|
+
#ifndef GEA_EMBEDDED_WIFI_DISABLED
|
|
50
|
+
gea::targets::esp32::wifi::registerDriver();
|
|
51
|
+
#endif
|
|
52
|
+
#ifndef GEA_EMBEDDED_BLE_DISABLED
|
|
53
|
+
gea::targets::esp32::ble::registerHidDriver();
|
|
54
|
+
#endif
|
|
55
|
+
|
|
56
|
+
gea::platform::esp32::services::startDeviceControlTask();
|
|
57
|
+
|
|
58
|
+
gea::framework::RuntimeOptions options{};
|
|
59
|
+
options.width = gea::platform::display::kWidth;
|
|
60
|
+
options.height = gea::platform::display::kHeight;
|
|
61
|
+
gea::framework::Runtime::run(options);
|
|
62
|
+
|
|
63
|
+
ESP_LOGE(kTag, "Runtime returned unexpectedly; parking runtime task");
|
|
64
|
+
for (;;) vTaskDelay(pdMS_TO_TICKS(1000));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
void runtimeTask(void *)
|
|
68
|
+
{
|
|
69
|
+
ESP_LOGI(kTag, "Gea runtime task started stack=%d hwm=%u", kRuntimeTaskStackBytes,
|
|
70
|
+
static_cast<unsigned>(uxTaskGetStackHighWaterMark(nullptr)));
|
|
71
|
+
runGeaRuntime();
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
} // namespace
|
|
75
|
+
|
|
76
|
+
extern "C" void app_main(void)
|
|
77
|
+
{
|
|
78
|
+
// Keep the ROM-startup bootstrap stack small, then allocate the real Gea
|
|
79
|
+
// runtime stack from the large contiguous internal block that ESP-IDF frees
|
|
80
|
+
// after startup. Returning deletes the bootstrap task and reclaims its stack.
|
|
81
|
+
TaskHandle_t runtime = nullptr;
|
|
82
|
+
const BaseType_t created = xTaskCreateWithCaps(
|
|
83
|
+
&runtimeTask,
|
|
84
|
+
"gea_runtime",
|
|
85
|
+
kRuntimeTaskStackBytes,
|
|
86
|
+
nullptr,
|
|
87
|
+
5,
|
|
88
|
+
&runtime,
|
|
89
|
+
MALLOC_CAP_INTERNAL | MALLOC_CAP_8BIT);
|
|
90
|
+
if (created != pdPASS) {
|
|
91
|
+
ESP_LOGE(kTag, "Failed to allocate %d-byte Gea runtime stack", kRuntimeTaskStackBytes);
|
|
92
|
+
std::abort();
|
|
93
|
+
}
|
|
94
|
+
ESP_LOGI(kTag, "Bootstrap complete; Gea runtime task=%p stack=%d", runtime, kRuntimeTaskStackBytes);
|
|
95
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#define GEA_AUDIO_DRIVER_INTERNAL 1
|
|
2
|
+
#include "audio.h"
|
|
3
|
+
#include "host/media.h"
|
|
4
|
+
|
|
5
|
+
namespace {
|
|
6
|
+
|
|
7
|
+
int outputVolume = 50;
|
|
8
|
+
|
|
9
|
+
} // namespace
|
|
10
|
+
|
|
11
|
+
bool gea::platform::audio::OutputDriver::open(int, int, int) { return false; }
|
|
12
|
+
bool gea::platform::audio::OutputDriver::write(const std::int16_t *, std::size_t, int) { return false; }
|
|
13
|
+
void gea::platform::audio::OutputDriver::close() {}
|
|
14
|
+
int gea::platform::audio::OutputDriver::volume() { return outputVolume; }
|
|
15
|
+
void gea::platform::audio::OutputDriver::setVolume(int value)
|
|
16
|
+
{
|
|
17
|
+
if (value < 0) value = 0;
|
|
18
|
+
if (value > 100) value = 100;
|
|
19
|
+
outputVolume = value;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
namespace gea::host::media {
|
|
23
|
+
|
|
24
|
+
void platform_attach_track(NativeMediaTrackHandle) {}
|
|
25
|
+
void platform_detach_track(NativeMediaTrackHandle) {}
|
|
26
|
+
|
|
27
|
+
} // namespace gea::host::media
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
#include "buttons.h"
|
|
2
|
+
|
|
3
|
+
#include "board.h"
|
|
4
|
+
|
|
5
|
+
#include "driver/gpio.h"
|
|
6
|
+
#include "esp_log.h"
|
|
7
|
+
|
|
8
|
+
namespace gea::platform::lilygo_t5::buttons {
|
|
9
|
+
|
|
10
|
+
namespace {
|
|
11
|
+
|
|
12
|
+
constexpr char kTag[] = "lilygo_t5_buttons";
|
|
13
|
+
bool initialized = false;
|
|
14
|
+
|
|
15
|
+
} // namespace
|
|
16
|
+
|
|
17
|
+
void init()
|
|
18
|
+
{
|
|
19
|
+
if (initialized) return;
|
|
20
|
+
// The single physical button (shared with the launcher/back handler in
|
|
21
|
+
// launcher_button.cpp) is an input with an internal pull-up. Paging in the
|
|
22
|
+
// reader is driven by the GT911 touch panel, so this file stays minimal.
|
|
23
|
+
gpio_config_t config = {};
|
|
24
|
+
config.pin_bit_mask = 1ULL << gea::platform::board::buttons.power;
|
|
25
|
+
config.mode = GPIO_MODE_INPUT;
|
|
26
|
+
config.pull_up_en = GPIO_PULLUP_ENABLE;
|
|
27
|
+
config.pull_down_en = GPIO_PULLDOWN_DISABLE;
|
|
28
|
+
config.intr_type = GPIO_INTR_DISABLE;
|
|
29
|
+
ESP_ERROR_CHECK_WITHOUT_ABORT(gpio_config(&config));
|
|
30
|
+
initialized = true;
|
|
31
|
+
ESP_LOGI(kTag, "button init on GPIO%d", static_cast<int>(gea::platform::board::buttons.power));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
void poll(int)
|
|
35
|
+
{
|
|
36
|
+
// launcher_button.cpp owns the button semantics on its own task; nothing to
|
|
37
|
+
// sample on the frame loop.
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
} // namespace gea::platform::lilygo_t5::buttons
|