@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,468 @@
|
|
|
1
|
+
// Headless display backend: the board has no panel.
|
|
2
|
+
//
|
|
3
|
+
// gea's Display is canvas-backed on every target — the panel driver is what
|
|
4
|
+
// sits *after* the canvas, not under it. That is why the native test host runs
|
|
5
|
+
// the whole framework, apps and all, with no display hardware at all. This file
|
|
6
|
+
// is that same arrangement for an ESP32 board: a real canvas in PSRAM, every
|
|
7
|
+
// drawing call rasterized into it, and a flush that transmits nothing.
|
|
8
|
+
//
|
|
9
|
+
// So a headless board is not a degraded board. Timers, input, Wi-Fi, BLE, the
|
|
10
|
+
// reactive tree and the app all behave exactly as they do on a panel target; the
|
|
11
|
+
// pixels simply stay in RAM, where a screenshot over OTA can still read them.
|
|
12
|
+
//
|
|
13
|
+
// Selected by composing a board with no `chips.display` — the CLI then emits
|
|
14
|
+
// GEA_EMBEDDED_DISPLAY_HEADLESS=1 and compiles this instead of display.cpp plus
|
|
15
|
+
// a panel driver. GEA_EMBEDDED_DISPLAY_WIDTH/HEIGHT come from the definition's
|
|
16
|
+
// `canvas` block rather than from a panel's geometry.
|
|
17
|
+
|
|
18
|
+
#include "display.h"
|
|
19
|
+
|
|
20
|
+
#include "canvas.h"
|
|
21
|
+
|
|
22
|
+
#include <algorithm>
|
|
23
|
+
#include <cstddef>
|
|
24
|
+
#include <cstdint>
|
|
25
|
+
#include <cstring>
|
|
26
|
+
|
|
27
|
+
#include "esp_heap_caps.h"
|
|
28
|
+
#include "esp_log.h"
|
|
29
|
+
#include "esp_timer.h"
|
|
30
|
+
|
|
31
|
+
namespace {
|
|
32
|
+
|
|
33
|
+
constexpr const char *kTag = "display.headless";
|
|
34
|
+
|
|
35
|
+
using Pixel = gea::framework::graphics::pixel::native_t;
|
|
36
|
+
|
|
37
|
+
gea::framework::graphics::Canvas gCanvas;
|
|
38
|
+
Pixel *gPixels = nullptr;
|
|
39
|
+
Pixel *gPresented = nullptr;
|
|
40
|
+
std::uint8_t gAlpha = 255;
|
|
41
|
+
int gBrightness = 100;
|
|
42
|
+
bool gVSync = false;
|
|
43
|
+
|
|
44
|
+
std::int64_t gFlushTotalUs = 0;
|
|
45
|
+
int gFlushCalls = 0;
|
|
46
|
+
int gFlushPixels = 0;
|
|
47
|
+
std::uint32_t gOdometerCalls = 0;
|
|
48
|
+
std::uint64_t gOdometerPixels = 0;
|
|
49
|
+
|
|
50
|
+
constexpr int kWidth = gea::platform::display::kWidth;
|
|
51
|
+
constexpr int kHeight = gea::platform::display::kHeight;
|
|
52
|
+
constexpr std::size_t kPixelCount = static_cast<std::size_t>(kWidth) * static_cast<std::size_t>(kHeight);
|
|
53
|
+
|
|
54
|
+
// The offscreen surface is the only allocation a headless board makes for
|
|
55
|
+
// display, and it is deliberately PSRAM: internal DRAM on an S3 is the scarce
|
|
56
|
+
// pool that Wi-Fi, BLE and DMA compete for, and nothing here is ever DMA'd.
|
|
57
|
+
Pixel *allocateSurface()
|
|
58
|
+
{
|
|
59
|
+
void *buffer = heap_caps_calloc(kPixelCount, sizeof(Pixel), MALLOC_CAP_SPIRAM | MALLOC_CAP_8BIT);
|
|
60
|
+
if (!buffer) buffer = heap_caps_calloc(kPixelCount, sizeof(Pixel), MALLOC_CAP_8BIT);
|
|
61
|
+
return static_cast<Pixel *>(buffer);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// Mirror the drawn region into the "presented" copy. A panel target would be
|
|
65
|
+
// transmitting these rows over QSPI; here the copy is what makes
|
|
66
|
+
// copySnapshotRgb565(presented=true) answer with the frame the app finished,
|
|
67
|
+
// rather than one caught mid-draw.
|
|
68
|
+
void promote(int x0, int y0, int x1, int y1)
|
|
69
|
+
{
|
|
70
|
+
if (!gPixels || !gPresented) return;
|
|
71
|
+
x0 = std::max(x0, 0);
|
|
72
|
+
y0 = std::max(y0, 0);
|
|
73
|
+
x1 = std::min(x1, kWidth - 1);
|
|
74
|
+
y1 = std::min(y1, kHeight - 1);
|
|
75
|
+
if (x0 > x1 || y0 > y1) return;
|
|
76
|
+
const std::size_t run = static_cast<std::size_t>(x1 - x0 + 1);
|
|
77
|
+
for (int y = y0; y <= y1; ++y) {
|
|
78
|
+
const std::size_t offset = static_cast<std::size_t>(y) * static_cast<std::size_t>(kWidth) + static_cast<std::size_t>(x0);
|
|
79
|
+
std::memcpy(gPresented + offset, gPixels + offset, run * sizeof(Pixel));
|
|
80
|
+
}
|
|
81
|
+
gFlushPixels += static_cast<int>(run) * (y1 - y0 + 1);
|
|
82
|
+
gOdometerPixels += static_cast<std::uint64_t>(run) * static_cast<std::uint64_t>(y1 - y0 + 1);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
} // namespace
|
|
86
|
+
|
|
87
|
+
namespace gea::platform::display {
|
|
88
|
+
|
|
89
|
+
bool Display::init()
|
|
90
|
+
{
|
|
91
|
+
if (gPixels) return true;
|
|
92
|
+
gPixels = allocateSurface();
|
|
93
|
+
gPresented = allocateSurface();
|
|
94
|
+
if (!gPixels || !gPresented) {
|
|
95
|
+
ESP_LOGE(kTag, "offscreen surface allocation failed (%dx%d)", kWidth, kHeight);
|
|
96
|
+
return false;
|
|
97
|
+
}
|
|
98
|
+
gCanvas.bindPixels(gPixels, kWidth, kHeight);
|
|
99
|
+
gCanvas.resetClip();
|
|
100
|
+
gCanvas.setGlobalAlpha(255);
|
|
101
|
+
ESP_LOGI(kTag, "headless display: %dx%d offscreen canvas, no panel attached", kWidth, kHeight);
|
|
102
|
+
return true;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
bool Display::start() { return gPixels != nullptr; }
|
|
106
|
+
|
|
107
|
+
gea::framework::graphics::Canvas *Display::canvas() { return &gCanvas; }
|
|
108
|
+
|
|
109
|
+
// No panel means no scanout buffer and no rotation to one: every query about
|
|
110
|
+
// panel-direct rendering is simply false here, and the UI composes offscreen.
|
|
111
|
+
bool Display::framebufferIsPanelDirect() { return false; }
|
|
112
|
+
bool Display::panelScanoutSurface(uint16_t **, int *, int *) { return false; }
|
|
113
|
+
bool Display::panelDirectTarget(int, int, int, int, uint16_t **, int *, int *, int *, int *, int *, int *, int *, int *) { return false; }
|
|
114
|
+
void Display::flipPanelToBack() {}
|
|
115
|
+
void Display::flipPanelToBack(uint16_t *) {}
|
|
116
|
+
|
|
117
|
+
bool Display::copySnapshotRgb565(uint16_t *dst, int pixel_capacity, int *width, int *height, bool presented)
|
|
118
|
+
{
|
|
119
|
+
if (!dst || !gPixels) return false;
|
|
120
|
+
if (pixel_capacity < static_cast<int>(kPixelCount)) return false;
|
|
121
|
+
const Pixel *source = presented ? gPresented : gPixels;
|
|
122
|
+
// native_t on this target is RGB565 stored BYTE-SWAPPED, because that is the
|
|
123
|
+
// order the panel wants on the wire — canvas.h's own helpers call
|
|
124
|
+
// fromRgb565() "undo any panel byte-swap". The snapshot contract is plain
|
|
125
|
+
// RGB565, so the swap has to be undone here exactly as the panel backend
|
|
126
|
+
// does it. A raw memcpy compiles, runs, and returns an image with every hue
|
|
127
|
+
// wrong: red and blue swapped and green shifted.
|
|
128
|
+
for (std::size_t i = 0; i < kPixelCount; ++i) {
|
|
129
|
+
dst[i] = gea::framework::graphics::pixel::toRgb565(source[i]);
|
|
130
|
+
}
|
|
131
|
+
if (width) *width = kWidth;
|
|
132
|
+
if (height) *height = kHeight;
|
|
133
|
+
return true;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
bool Display::copySnapshotPacked(uint8_t *, int, int *, int *, bool) { return false; }
|
|
137
|
+
|
|
138
|
+
int Display::countNonBlackPixels(bool presented)
|
|
139
|
+
{
|
|
140
|
+
const Pixel *source = presented ? gPresented : gPixels;
|
|
141
|
+
if (!source) return 0;
|
|
142
|
+
int count = 0;
|
|
143
|
+
for (std::size_t i = 0; i < kPixelCount; ++i) {
|
|
144
|
+
if (source[i] != 0) count++;
|
|
145
|
+
}
|
|
146
|
+
return count;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
void Display::clear()
|
|
150
|
+
{
|
|
151
|
+
gCanvas.clear(0);
|
|
152
|
+
flush();
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
void Display::clearNoFlush() { gCanvas.clear(0); }
|
|
156
|
+
|
|
157
|
+
// There is no console to print to: a headless board's diagnostics go out the
|
|
158
|
+
// serial/OTA log, which the caller already has.
|
|
159
|
+
void Display::print(const char *) {}
|
|
160
|
+
|
|
161
|
+
void Display::flush()
|
|
162
|
+
{
|
|
163
|
+
const std::int64_t started = esp_timer_get_time();
|
|
164
|
+
gFlushCalls++;
|
|
165
|
+
gOdometerCalls++;
|
|
166
|
+
int x0 = 0;
|
|
167
|
+
int y0 = 0;
|
|
168
|
+
int x1 = -1;
|
|
169
|
+
int y1 = -1;
|
|
170
|
+
if (gCanvas.dirty(&x0, &y0, &x1, &y1) && x0 <= x1 && y0 <= y1) {
|
|
171
|
+
promote(x0, y0, x1, y1);
|
|
172
|
+
gCanvas.resetDirty();
|
|
173
|
+
}
|
|
174
|
+
gFlushTotalUs += esp_timer_get_time() - started;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
void Display::flushRects(const DisplayFlushRect *rects, int count, bool)
|
|
178
|
+
{
|
|
179
|
+
if (!rects || count <= 0) return;
|
|
180
|
+
const std::int64_t started = esp_timer_get_time();
|
|
181
|
+
gFlushCalls++;
|
|
182
|
+
gOdometerCalls++;
|
|
183
|
+
for (int i = 0; i < count; ++i) promote(rects[i].x0, rects[i].y0, rects[i].x1, rects[i].y1);
|
|
184
|
+
gCanvas.resetDirty();
|
|
185
|
+
gFlushTotalUs += esp_timer_get_time() - started;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
// The fused path exists to overlap rasterization with DMA. With no DMA to
|
|
189
|
+
// overlap, rasterize straight into the surface and promote it — same pixels,
|
|
190
|
+
// none of the chunking.
|
|
191
|
+
void Display::flushRectsRasterized(const DisplayFlushRect *rects, int count, DisplayStreamRasterFn raster, void *user, bool)
|
|
192
|
+
{
|
|
193
|
+
if (!rects || count <= 0 || !raster) return;
|
|
194
|
+
for (int i = 0; i < count; ++i) {
|
|
195
|
+
streamRect(rects[i].x0, rects[i].y0, rects[i].x1 - rects[i].x0 + 1, rects[i].y1 - rects[i].y0 + 1, raster, user);
|
|
196
|
+
}
|
|
197
|
+
rebindCanvasToFramebuffer();
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
void Display::rebindCanvasToFramebuffer()
|
|
201
|
+
{
|
|
202
|
+
if (!gPixels) return;
|
|
203
|
+
gCanvas.bindPixels(gPixels, kWidth, kHeight);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
bool Display::streamRect(int x, int y, int w, int h, DisplayStreamRasterFn raster, void *user)
|
|
207
|
+
{
|
|
208
|
+
if (!raster || w <= 0 || h <= 0 || !gPixels) return false;
|
|
209
|
+
int x0 = std::max(x, 0);
|
|
210
|
+
int y0 = std::max(y, 0);
|
|
211
|
+
int x1 = std::min(x + w - 1, kWidth - 1);
|
|
212
|
+
int y1 = std::min(y + h - 1, kHeight - 1);
|
|
213
|
+
if (x0 > x1 || y0 > y1) return true;
|
|
214
|
+
|
|
215
|
+
const int width = x1 - x0 + 1;
|
|
216
|
+
const int height = y1 - y0 + 1;
|
|
217
|
+
// Raster straight into the surface rows: the destination is already a
|
|
218
|
+
// contiguous, correctly sized region, so no staging buffer is needed.
|
|
219
|
+
gea::framework::graphics::Canvas region;
|
|
220
|
+
region.bindPixels(gPixels + static_cast<std::size_t>(y0) * static_cast<std::size_t>(kWidth) + static_cast<std::size_t>(x0),
|
|
221
|
+
width, height, kWidth);
|
|
222
|
+
raster(region.pixels(), width, height, x0, y0, user);
|
|
223
|
+
promote(x0, y0, x1, y1);
|
|
224
|
+
gFlushCalls++;
|
|
225
|
+
gOdometerCalls++;
|
|
226
|
+
gCanvas.resetDirty();
|
|
227
|
+
return true;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
bool Display::present(const DisplayPresentCommand *commands, int command_count)
|
|
231
|
+
{
|
|
232
|
+
if (!commands || command_count <= 0) return false;
|
|
233
|
+
for (int i = 0; i < command_count; ++i) {
|
|
234
|
+
const auto &command = commands[i];
|
|
235
|
+
switch (command.type) {
|
|
236
|
+
case DisplayPresentCommandType::Clear:
|
|
237
|
+
gCanvas.clear(command.clear.color);
|
|
238
|
+
break;
|
|
239
|
+
case DisplayPresentCommandType::FillRectRgb565:
|
|
240
|
+
gCanvas.setGlobalAlpha(command.fillRectRgb565.alpha);
|
|
241
|
+
gCanvas.fillRect(command.fillRectRgb565.x, command.fillRectRgb565.y,
|
|
242
|
+
command.fillRectRgb565.w, command.fillRectRgb565.h,
|
|
243
|
+
command.fillRectRgb565.color);
|
|
244
|
+
break;
|
|
245
|
+
case DisplayPresentCommandType::StrokeRectRgb565:
|
|
246
|
+
gCanvas.setGlobalAlpha(command.strokeRectRgb565.alpha);
|
|
247
|
+
gCanvas.strokeRect(command.strokeRectRgb565.x, command.strokeRectRgb565.y,
|
|
248
|
+
command.strokeRectRgb565.w, command.strokeRectRgb565.h,
|
|
249
|
+
command.strokeRectRgb565.color);
|
|
250
|
+
break;
|
|
251
|
+
case DisplayPresentCommandType::FillTriangleRgb565:
|
|
252
|
+
gCanvas.setGlobalAlpha(command.fillTriangleRgb565.alpha);
|
|
253
|
+
gCanvas.fillTriangle(command.fillTriangleRgb565.x0, command.fillTriangleRgb565.y0,
|
|
254
|
+
command.fillTriangleRgb565.x1, command.fillTriangleRgb565.y1,
|
|
255
|
+
command.fillTriangleRgb565.x2, command.fillTriangleRgb565.y2,
|
|
256
|
+
command.fillTriangleRgb565.color);
|
|
257
|
+
break;
|
|
258
|
+
case DisplayPresentCommandType::FillTrianglesRgb565:
|
|
259
|
+
gCanvas.setGlobalAlpha(command.fillTrianglesRgb565.alpha);
|
|
260
|
+
gCanvas.fillTrianglesOpaqueOccluded(command.fillTrianglesRgb565.entries,
|
|
261
|
+
command.fillTrianglesRgb565.count, 0, 0);
|
|
262
|
+
break;
|
|
263
|
+
case DisplayPresentCommandType::FillCircleRgb565:
|
|
264
|
+
gCanvas.setGlobalAlpha(command.fillCircleRgb565.alpha);
|
|
265
|
+
gCanvas.fillCircle(command.fillCircleRgb565.x, command.fillCircleRgb565.y,
|
|
266
|
+
command.fillCircleRgb565.radius, command.fillCircleRgb565.color);
|
|
267
|
+
break;
|
|
268
|
+
case DisplayPresentCommandType::StrokeCircleRgb565:
|
|
269
|
+
gCanvas.setGlobalAlpha(command.strokeCircleRgb565.alpha);
|
|
270
|
+
gCanvas.strokeCircle(command.strokeCircleRgb565.x, command.strokeCircleRgb565.y,
|
|
271
|
+
command.strokeCircleRgb565.radius, command.strokeCircleRgb565.color);
|
|
272
|
+
break;
|
|
273
|
+
case DisplayPresentCommandType::FillCirclesRgb565:
|
|
274
|
+
gCanvas.setGlobalAlpha(command.fillCirclesRgb565.alpha);
|
|
275
|
+
gCanvas.fillCirclesRgb565(command.fillCirclesRgb565.xs, command.fillCirclesRgb565.ys,
|
|
276
|
+
command.fillCirclesRgb565.count, command.fillCirclesRgb565.radius,
|
|
277
|
+
command.fillCirclesRgb565.colors);
|
|
278
|
+
break;
|
|
279
|
+
case DisplayPresentCommandType::DrawImage:
|
|
280
|
+
gCanvas.setGlobalAlpha(command.drawImage.alpha);
|
|
281
|
+
gCanvas.drawImage(command.drawImage.pixels, command.drawImage.alphaPixels,
|
|
282
|
+
command.drawImage.srcWidth, command.drawImage.srcHeight,
|
|
283
|
+
command.drawImage.x, command.drawImage.y);
|
|
284
|
+
break;
|
|
285
|
+
case DisplayPresentCommandType::DrawImageScaled:
|
|
286
|
+
gCanvas.setGlobalAlpha(command.drawImageScaled.alpha);
|
|
287
|
+
gCanvas.drawImage(command.drawImageScaled.pixels, command.drawImageScaled.alphaPixels,
|
|
288
|
+
command.drawImageScaled.srcWidth, command.drawImageScaled.srcHeight,
|
|
289
|
+
command.drawImageScaled.x, command.drawImageScaled.y,
|
|
290
|
+
command.drawImageScaled.w, command.drawImageScaled.h);
|
|
291
|
+
break;
|
|
292
|
+
case DisplayPresentCommandType::DrawImageRotated90CW:
|
|
293
|
+
gCanvas.setGlobalAlpha(command.drawImageRotated90CW.alpha);
|
|
294
|
+
gCanvas.drawImageRotated90CW(command.drawImageRotated90CW.pixels, command.drawImageRotated90CW.alphaPixels,
|
|
295
|
+
command.drawImageRotated90CW.srcWidth, command.drawImageRotated90CW.srcHeight,
|
|
296
|
+
command.drawImageRotated90CW.x, command.drawImageRotated90CW.y,
|
|
297
|
+
command.drawImageRotated90CW.w, command.drawImageRotated90CW.h);
|
|
298
|
+
break;
|
|
299
|
+
case DisplayPresentCommandType::DrawImageTiledX:
|
|
300
|
+
gCanvas.setGlobalAlpha(command.drawImageTiledX.alpha);
|
|
301
|
+
gCanvas.drawImageTiledX(command.drawImageTiledX.pixels, command.drawImageTiledX.alphaPixels,
|
|
302
|
+
command.drawImageTiledX.srcWidth, command.drawImageTiledX.srcHeight,
|
|
303
|
+
command.drawImageTiledX.x, command.drawImageTiledX.y,
|
|
304
|
+
command.drawImageTiledX.w);
|
|
305
|
+
break;
|
|
306
|
+
case DisplayPresentCommandType::FillText:
|
|
307
|
+
gCanvas.setGlobalAlpha(command.fillText.alpha);
|
|
308
|
+
gCanvas.drawText(command.fillText.text, command.fillText.x, command.fillText.y,
|
|
309
|
+
command.fillText.color, command.fillText.scale);
|
|
310
|
+
break;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
gCanvas.setGlobalAlpha(255);
|
|
314
|
+
flush();
|
|
315
|
+
return true;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
// Flush tuning describes a DMA pipeline this board does not have. The getters
|
|
319
|
+
// still answer, because callers use them to size their own buffers.
|
|
320
|
+
void Display::setFlushConfig(int, int) {}
|
|
321
|
+
int Display::flushChunkRows() { return kHeight; }
|
|
322
|
+
int Display::flushQueueDepth() { return 1; }
|
|
323
|
+
int Display::flushBufferBytes() { return 0; }
|
|
324
|
+
void Display::setPresentScale(int) {}
|
|
325
|
+
void Display::reserveInternal(std::size_t) {}
|
|
326
|
+
void Display::applyPendingInternalReserve() {}
|
|
327
|
+
|
|
328
|
+
void Display::pushClip(int x, int y, int w, int h) { gCanvas.pushClip(x, y, w, h); }
|
|
329
|
+
void Display::popClip() { gCanvas.popClip(); }
|
|
330
|
+
void Display::resetClip() { gCanvas.resetClip(); }
|
|
331
|
+
void Display::clip(int *x0, int *y0, int *x1, int *y1) { gCanvas.currentClip(x0, y0, x1, y1); }
|
|
332
|
+
|
|
333
|
+
void Display::setAlpha(uint8_t alpha)
|
|
334
|
+
{
|
|
335
|
+
gAlpha = alpha;
|
|
336
|
+
gCanvas.setGlobalAlpha(alpha);
|
|
337
|
+
}
|
|
338
|
+
uint8_t Display::alpha() { return gAlpha; }
|
|
339
|
+
// setAA/aa are NOT defined here: canvas.cpp already owns them for every target,
|
|
340
|
+
// since antialiasing is a canvas setting and not a panel one.
|
|
341
|
+
|
|
342
|
+
// No backlight and no panel controller: brightness is remembered so an app that
|
|
343
|
+
// round-trips the value sees what it set, and changes nothing.
|
|
344
|
+
int Display::brightness() { return gBrightness; }
|
|
345
|
+
void Display::setBrightness(int brightness_percent) { gBrightness = brightness_percent; }
|
|
346
|
+
bool Display::setHighBrightnessMode(bool) { return false; }
|
|
347
|
+
bool Display::highBrightnessMode() { return false; }
|
|
348
|
+
|
|
349
|
+
// No TE line to sync to, so vsync is accepted and ignored rather than blocking
|
|
350
|
+
// the frame scheduler on a signal that will never arrive.
|
|
351
|
+
void Display::setVSync(bool on) { gVSync = on; }
|
|
352
|
+
bool Display::vsyncEnabled() { return gVSync; }
|
|
353
|
+
void Display::vsyncWaitForFrame() {}
|
|
354
|
+
void Display::invalidate() {}
|
|
355
|
+
|
|
356
|
+
void Display::fillRect(int x, int y, int w, int h, Pixel color) { gCanvas.fillRect(x, y, w, h, color); }
|
|
357
|
+
void Display::scrollRect(int x, int y, int w, int h, int dx, int dy) { gCanvas.scrollRect(x, y, w, h, dx, dy); }
|
|
358
|
+
void Display::resetScrollRegion() { gCanvas.setScrollRegion(0, 0, 0); }
|
|
359
|
+
void Display::strokeRect(int x, int y, int w, int h, Pixel color) { gCanvas.strokeRect(x, y, w, h, color); }
|
|
360
|
+
void Display::fillCircle(int cx, int cy, int r, Pixel color) { gCanvas.fillCircle(cx, cy, r, color); }
|
|
361
|
+
void Display::strokeCircle(int cx, int cy, int r, Pixel color) { gCanvas.strokeCircle(cx, cy, r, color); }
|
|
362
|
+
void Display::drawLine(int x0, int y0, int x1, int y1, Pixel color) { gCanvas.drawLine(x0, y0, x1, y1, color); }
|
|
363
|
+
void Display::drawArc(int cx, int cy, int r, int start_deg, int end_deg, Pixel color) { gCanvas.drawArc(cx, cy, r, start_deg, end_deg, color); }
|
|
364
|
+
void Display::fillTriangle(int x0, int y0, int x1, int y1, int x2, int y2, Pixel color) { gCanvas.fillTriangle(x0, y0, x1, y1, x2, y2, color); }
|
|
365
|
+
void Display::drawText(const char *text, int x, int y, Pixel color, float scale) { gCanvas.drawText(text, x, y, color, scale); }
|
|
366
|
+
void Display::drawTextFont(const char *text, int x, int y, Pixel color, int font_id) { gCanvas.drawTextFont(text, x, y, color, font_id); }
|
|
367
|
+
void Display::drawTextFontFamily(const char *text, int x, int y, Pixel color, int family_id, int size_px)
|
|
368
|
+
{
|
|
369
|
+
gCanvas.drawTextFontFamily(text, x, y, color, family_id, size_px);
|
|
370
|
+
}
|
|
371
|
+
void Display::setPixel(int x, int y, Pixel color) { gCanvas.fillRect(x, y, 1, 1, color); }
|
|
372
|
+
void Display::fillRoundedRect(int x, int y, int w, int h, int tl, int tr, int br, int bl, Pixel color)
|
|
373
|
+
{
|
|
374
|
+
gCanvas.fillRoundedRect(x, y, w, h, tl, tr, br, bl, color);
|
|
375
|
+
}
|
|
376
|
+
void Display::fillRoundedRectBoxesRgb565(const int16_t *xs, const int16_t *ys, int count,
|
|
377
|
+
int w, int h, int tl, int tr, int br, int bl,
|
|
378
|
+
const Pixel *colors)
|
|
379
|
+
{
|
|
380
|
+
gCanvas.fillRoundedRectBoxesRgb565(xs, ys, count, w, h, tl, tr, br, bl, colors);
|
|
381
|
+
}
|
|
382
|
+
void Display::strokeRoundedRect(int x, int y, int w, int h, int tl, int tr, int br, int bl, int lw, Pixel color)
|
|
383
|
+
{
|
|
384
|
+
gCanvas.strokeRoundedRect(x, y, w, h, tl, tr, br, bl, lw, color);
|
|
385
|
+
}
|
|
386
|
+
void Display::blitImage(const Pixel *src, const uint8_t *alpha, int src_w, int src_h, int dx, int dy)
|
|
387
|
+
{
|
|
388
|
+
gCanvas.drawImage(src, alpha, src_w, src_h, dx, dy);
|
|
389
|
+
}
|
|
390
|
+
void Display::blitImageScaled(const Pixel *src, const uint8_t *alpha, int src_w, int src_h, int dx, int dy, int dst_w, int dst_h)
|
|
391
|
+
{
|
|
392
|
+
gCanvas.drawImage(src, alpha, src_w, src_h, dx, dy, dst_w, dst_h);
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
// The world overlay is a panel-scroll trick (a wide bitmap scrolled under the
|
|
396
|
+
// UI by reprogramming the scanout window). Without a panel there is nothing to
|
|
397
|
+
// reprogram.
|
|
398
|
+
void Display::setWorldOverlay(const uint16_t *, int, int, int, int) {}
|
|
399
|
+
void Display::setWorldScroll(int) {}
|
|
400
|
+
|
|
401
|
+
void Display::flushStatsRead(int64_t *total_us, int *call_count, int *pixel_count)
|
|
402
|
+
{
|
|
403
|
+
if (total_us) *total_us = gFlushTotalUs;
|
|
404
|
+
if (call_count) *call_count = gFlushCalls;
|
|
405
|
+
if (pixel_count) *pixel_count = gFlushPixels;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
DisplayFlushPerfStats Display::flushPerfStatsRead()
|
|
409
|
+
{
|
|
410
|
+
DisplayFlushPerfStats stats;
|
|
411
|
+
stats.totalUs = gFlushTotalUs;
|
|
412
|
+
stats.copyUs = gFlushTotalUs;
|
|
413
|
+
stats.callCount = gFlushCalls;
|
|
414
|
+
stats.pixelCount = gFlushPixels;
|
|
415
|
+
return stats;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
void Display::flushOdometerRead(uint32_t &calls, uint64_t &pixels)
|
|
419
|
+
{
|
|
420
|
+
calls = gOdometerCalls;
|
|
421
|
+
pixels = gOdometerPixels;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
void Display::flushStatsReset()
|
|
425
|
+
{
|
|
426
|
+
gFlushTotalUs = 0;
|
|
427
|
+
gFlushCalls = 0;
|
|
428
|
+
gFlushPixels = 0;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
// Diagnostics for paths this backend does not have. Zeroing the outputs is the
|
|
432
|
+
// honest answer: GEADEV reads them as counters, and a stale or invented number
|
|
433
|
+
// would read as a panel doing work that never happened.
|
|
434
|
+
void Display::presentPathDebug(int *calls, int *direct, int *general, int *rejected,
|
|
435
|
+
int *tileShapeFailKind, int *tileShapeFailType, int *tileShapeFailCount)
|
|
436
|
+
{
|
|
437
|
+
if (calls) *calls = 0;
|
|
438
|
+
if (direct) *direct = 0;
|
|
439
|
+
if (general) *general = 0;
|
|
440
|
+
if (rejected) *rejected = 0;
|
|
441
|
+
if (tileShapeFailKind) *tileShapeFailKind = 0;
|
|
442
|
+
if (tileShapeFailType) *tileShapeFailType = 0;
|
|
443
|
+
if (tileShapeFailCount) *tileShapeFailCount = 0;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
void Display::landFrameDebug(int *total, int *align, int *raster, int *text, int *flip)
|
|
447
|
+
{
|
|
448
|
+
if (total) *total = 0;
|
|
449
|
+
if (align) *align = 0;
|
|
450
|
+
if (raster) *raster = 0;
|
|
451
|
+
if (text) *text = 0;
|
|
452
|
+
if (flip) *flip = 0;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
void Display::landPanDebug(int *detect, int *kick, int *strips, int *wait, int *interior)
|
|
456
|
+
{
|
|
457
|
+
if (detect) *detect = 0;
|
|
458
|
+
if (kick) *kick = 0;
|
|
459
|
+
if (strips) *strips = 0;
|
|
460
|
+
if (wait) *wait = 0;
|
|
461
|
+
if (interior) *interior = 0;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
const char *Display::flushStageName() { return "idle"; }
|
|
465
|
+
int Display::flushStageChunk() { return 0; }
|
|
466
|
+
DisplayFlushStageDetail Display::flushStageDetail() { return DisplayFlushStageDetail{}; }
|
|
467
|
+
|
|
468
|
+
} // namespace gea::platform::display
|