@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,191 @@
|
|
|
1
|
+
#include "apps.h"
|
|
2
|
+
#include "apps/app_manager.h"
|
|
3
|
+
#include "input.h"
|
|
4
|
+
#include "memory_config.h"
|
|
5
|
+
|
|
6
|
+
#include <cstdint>
|
|
7
|
+
|
|
8
|
+
#include "driver/gpio.h"
|
|
9
|
+
#include "esp_err.h"
|
|
10
|
+
#if GEA_EMBEDDED_HEAP_DIAGNOSTICS_LOG
|
|
11
|
+
#include "esp_heap_caps.h"
|
|
12
|
+
#endif
|
|
13
|
+
#include "esp_log.h"
|
|
14
|
+
#include "freertos/FreeRTOS.h"
|
|
15
|
+
#include "freertos/task.h"
|
|
16
|
+
|
|
17
|
+
namespace gea::platform::esp32::apps {
|
|
18
|
+
|
|
19
|
+
namespace {
|
|
20
|
+
|
|
21
|
+
constexpr const char *kTag = "launcher_button";
|
|
22
|
+
constexpr gpio_num_t kGpio = GPIO_NUM_0;
|
|
23
|
+
constexpr int kActiveLevel = 0;
|
|
24
|
+
constexpr int kDebounceMs = 50;
|
|
25
|
+
constexpr int kPollMs = 25;
|
|
26
|
+
constexpr int kLongPressMs = 800;
|
|
27
|
+
// ESP-IDF task stack sizes are bytes. The BOOT-button task only polls GPIO and
|
|
28
|
+
// posts launcher events; keep its internal-RAM footprint small and verify with
|
|
29
|
+
// the high-water probes below.
|
|
30
|
+
constexpr std::uint32_t kTaskStackBytes = 4096;
|
|
31
|
+
constexpr UBaseType_t kTaskPriority = 10;
|
|
32
|
+
|
|
33
|
+
#if GEA_EMBEDDED_HEAP_DIAGNOSTICS_LOG
|
|
34
|
+
void logInternalHeap(const char *stage)
|
|
35
|
+
{
|
|
36
|
+
multi_heap_info_t info{};
|
|
37
|
+
heap_caps_get_info(&info, MALLOC_CAP_INTERNAL | MALLOC_CAP_8BIT);
|
|
38
|
+
ESP_LOGI(kTag,
|
|
39
|
+
"heap probe [%s] internal_free=%u internal_largest=%u internal_min=%u free_blocks=%u alloc_blocks=%u",
|
|
40
|
+
stage ? stage : "?",
|
|
41
|
+
static_cast<unsigned>(info.total_free_bytes),
|
|
42
|
+
static_cast<unsigned>(info.largest_free_block),
|
|
43
|
+
static_cast<unsigned>(info.minimum_free_bytes),
|
|
44
|
+
static_cast<unsigned>(info.free_blocks),
|
|
45
|
+
static_cast<unsigned>(info.allocated_blocks));
|
|
46
|
+
}
|
|
47
|
+
#endif
|
|
48
|
+
|
|
49
|
+
class LauncherButton {
|
|
50
|
+
public:
|
|
51
|
+
static LauncherButton &instance()
|
|
52
|
+
{
|
|
53
|
+
static LauncherButton button;
|
|
54
|
+
return button;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
void start()
|
|
58
|
+
{
|
|
59
|
+
if (task_) return;
|
|
60
|
+
if (!gea::framework::apps::AppManager::shouldEnableLauncherButton()) {
|
|
61
|
+
ESP_LOGW(kTag, "BOOT launcher button disabled by AppManager policy");
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// GPIO0 on ESP32-S3 is a strapping pin and may be left muxed to a
|
|
66
|
+
// non-GPIO function (USB-serial JTAG, RTC GPIO, etc.) by the bootloader
|
|
67
|
+
// or a prior reset cause. gpio_config alone does not detach those
|
|
68
|
+
// alternates, so the pin can read as floating even with pull_up_en set.
|
|
69
|
+
// Resetting first forces the pad back to a clean GPIO matrix entry.
|
|
70
|
+
gpio_reset_pin(kGpio);
|
|
71
|
+
|
|
72
|
+
gpio_config_t config = {
|
|
73
|
+
.pin_bit_mask = 1ULL << kGpio,
|
|
74
|
+
.mode = GPIO_MODE_INPUT,
|
|
75
|
+
.pull_up_en = GPIO_PULLUP_ENABLE,
|
|
76
|
+
.pull_down_en = GPIO_PULLDOWN_DISABLE,
|
|
77
|
+
.intr_type = GPIO_INTR_DISABLE,
|
|
78
|
+
};
|
|
79
|
+
const esp_err_t err = gpio_config(&config);
|
|
80
|
+
if (err != ESP_OK) {
|
|
81
|
+
ESP_LOGE(kTag, "Failed to configure BOOT launcher button on GPIO0: %s", esp_err_to_name(err));
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
const BaseType_t ok = xTaskCreate(
|
|
86
|
+
&LauncherButton::taskMain,
|
|
87
|
+
"launcher_button",
|
|
88
|
+
kTaskStackBytes,
|
|
89
|
+
this,
|
|
90
|
+
kTaskPriority,
|
|
91
|
+
&task_);
|
|
92
|
+
if (ok != pdPASS) {
|
|
93
|
+
task_ = nullptr;
|
|
94
|
+
#if GEA_EMBEDDED_HEAP_DIAGNOSTICS_LOG
|
|
95
|
+
logInternalHeap("launcher_button:create_failed");
|
|
96
|
+
#endif
|
|
97
|
+
ESP_LOGE(kTag,
|
|
98
|
+
"Failed to start BOOT launcher button task (stack_bytes=%u)",
|
|
99
|
+
static_cast<unsigned>(kTaskStackBytes));
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
ESP_LOGI(kTag,
|
|
103
|
+
"BOOT launcher button task started on GPIO%d (priority=%u, stack_bytes=%u, hwm=%u, level=%d)",
|
|
104
|
+
static_cast<int>(kGpio),
|
|
105
|
+
static_cast<unsigned>(kTaskPriority),
|
|
106
|
+
static_cast<unsigned>(kTaskStackBytes),
|
|
107
|
+
static_cast<unsigned>(uxTaskGetStackHighWaterMark(task_)),
|
|
108
|
+
gpio_get_level(kGpio));
|
|
109
|
+
#if GEA_EMBEDDED_HEAP_DIAGNOSTICS_LOG
|
|
110
|
+
logInternalHeap("launcher_button:after_start");
|
|
111
|
+
#endif
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
private:
|
|
115
|
+
LauncherButton() = default;
|
|
116
|
+
|
|
117
|
+
#if GEA_EMBEDDED_FRAME_SCHEDULER_PERF_LOG
|
|
118
|
+
void logStackProbe(const char *stage) const
|
|
119
|
+
{
|
|
120
|
+
ESP_LOGI(kTag,
|
|
121
|
+
"stack probe [%s] task=launcher_button stack_bytes=%u hwm=%u",
|
|
122
|
+
stage ? stage : "?",
|
|
123
|
+
static_cast<unsigned>(kTaskStackBytes),
|
|
124
|
+
static_cast<unsigned>(uxTaskGetStackHighWaterMark(nullptr)));
|
|
125
|
+
}
|
|
126
|
+
#endif
|
|
127
|
+
|
|
128
|
+
void run()
|
|
129
|
+
{
|
|
130
|
+
#if GEA_EMBEDDED_FRAME_SCHEDULER_PERF_LOG
|
|
131
|
+
logStackProbe("launcher_button:task_start");
|
|
132
|
+
#endif
|
|
133
|
+
while (true) {
|
|
134
|
+
if (gpio_get_level(kGpio) == kActiveLevel) {
|
|
135
|
+
vTaskDelay(pdMS_TO_TICKS(kDebounceMs));
|
|
136
|
+
if (gpio_get_level(kGpio) == kActiveLevel) {
|
|
137
|
+
ESP_LOGI(kTag, "BOOT pressed");
|
|
138
|
+
TickType_t pressedAt = xTaskGetTickCount();
|
|
139
|
+
bool longPressHandled = false;
|
|
140
|
+
while (gpio_get_level(kGpio) == kActiveLevel) {
|
|
141
|
+
if (!longPressHandled && xTaskGetTickCount() - pressedAt >= pdMS_TO_TICKS(kLongPressMs)) {
|
|
142
|
+
const bool returned = gea::framework::apps::AppManager::returnRunningAppToLauncher("BOOT button long press");
|
|
143
|
+
ESP_LOGI(kTag, "BOOT long press: returnRunningAppToLauncher=%d", returned ? 1 : 0);
|
|
144
|
+
if (!returned) {
|
|
145
|
+
const bool toggled = gea::framework::apps::AppManager::queueSettingsToggle();
|
|
146
|
+
ESP_LOGI(kTag, "BOOT long press: queueSettingsToggle=%d", toggled ? 1 : 0);
|
|
147
|
+
}
|
|
148
|
+
#if GEA_EMBEDDED_FRAME_SCHEDULER_PERF_LOG
|
|
149
|
+
logStackProbe("launcher_button:after_long_press");
|
|
150
|
+
#endif
|
|
151
|
+
longPressHandled = true;
|
|
152
|
+
}
|
|
153
|
+
vTaskDelay(pdMS_TO_TICKS(kPollMs));
|
|
154
|
+
}
|
|
155
|
+
if (!longPressHandled) {
|
|
156
|
+
const bool returned = gea::framework::apps::AppManager::returnRunningAppToLauncher("BOOT button press");
|
|
157
|
+
ESP_LOGI(kTag, "BOOT short press: returnRunningAppToLauncher=%d", returned ? 1 : 0);
|
|
158
|
+
if (!returned) {
|
|
159
|
+
// At the launcher (no sub-app to return to). Set the back-button
|
|
160
|
+
// flag so the launcher's rAF loop dismisses Settings if it's
|
|
161
|
+
// open. Polled via `Input.consumeBackButton()`.
|
|
162
|
+
gea::framework::input::pressBackButton();
|
|
163
|
+
ESP_LOGI(kTag, "BOOT short press: back-button flag set");
|
|
164
|
+
}
|
|
165
|
+
#if GEA_EMBEDDED_FRAME_SCHEDULER_PERF_LOG
|
|
166
|
+
logStackProbe("launcher_button:after_short_press");
|
|
167
|
+
#endif
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
vTaskDelay(pdMS_TO_TICKS(kPollMs));
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
static void taskMain(void *arg)
|
|
177
|
+
{
|
|
178
|
+
static_cast<LauncherButton *>(arg)->run();
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
TaskHandle_t task_ = nullptr;
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
} // namespace
|
|
185
|
+
|
|
186
|
+
void startLauncherButtonTask()
|
|
187
|
+
{
|
|
188
|
+
LauncherButton::instance().start();
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
} // namespace gea::platform::esp32::apps
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
#include "touch.h"
|
|
2
|
+
|
|
3
|
+
#include "board.h"
|
|
4
|
+
#include "display.h"
|
|
5
|
+
#include "events.h"
|
|
6
|
+
#include "i2c.h"
|
|
7
|
+
|
|
8
|
+
#include <atomic>
|
|
9
|
+
#include <cstdint>
|
|
10
|
+
|
|
11
|
+
#include "esp_err.h"
|
|
12
|
+
#include "esp_lcd_panel_io.h"
|
|
13
|
+
#include "esp_lcd_touch.h"
|
|
14
|
+
#include "esp_lcd_touch_ft5x06.h"
|
|
15
|
+
#include "esp_log.h"
|
|
16
|
+
#include "driver/i2c_master.h"
|
|
17
|
+
#include "freertos/FreeRTOS.h"
|
|
18
|
+
#include "freertos/task.h"
|
|
19
|
+
|
|
20
|
+
namespace {
|
|
21
|
+
|
|
22
|
+
constexpr char kTag[] = "ft5x06";
|
|
23
|
+
constexpr int kPollIntervalMs = 10;
|
|
24
|
+
constexpr int kTaskPriority = 10;
|
|
25
|
+
constexpr int kPanelWidth = gea::platform::display::kNativeWidth;
|
|
26
|
+
constexpr int kPanelHeight = gea::platform::display::kNativeHeight;
|
|
27
|
+
|
|
28
|
+
struct TouchSample {
|
|
29
|
+
bool touching = false;
|
|
30
|
+
int x = 0;
|
|
31
|
+
int y = 0;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
class Ft5x06TouchController {
|
|
35
|
+
public:
|
|
36
|
+
static Ft5x06TouchController &instance()
|
|
37
|
+
{
|
|
38
|
+
static Ft5x06TouchController controller;
|
|
39
|
+
return controller;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
void setObserver(gea::platform::touch::Touchscreen::Observer observer)
|
|
43
|
+
{
|
|
44
|
+
observer_ = observer;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
bool begin()
|
|
48
|
+
{
|
|
49
|
+
if (initialized_) return true;
|
|
50
|
+
auto bus = gea::platform::i2c::Bus::primary();
|
|
51
|
+
if (!bus.available()) {
|
|
52
|
+
ESP_LOGE(kTag, "I2C bus not ready");
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
i2cBus_ = static_cast<i2c_master_bus_handle_t>(bus.nativeHandle());
|
|
56
|
+
|
|
57
|
+
esp_err_t err = attachTouch();
|
|
58
|
+
if (err != ESP_OK) {
|
|
59
|
+
ESP_LOGE(kTag, "FT5x06 not found");
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
task_ = xTaskCreateStatic(taskEntry,
|
|
64
|
+
"gt911-touch",
|
|
65
|
+
static_cast<std::uint32_t>(sizeof(taskStack_) / sizeof(taskStack_[0])),
|
|
66
|
+
this,
|
|
67
|
+
kTaskPriority,
|
|
68
|
+
taskStack_,
|
|
69
|
+
&taskControlBlock_);
|
|
70
|
+
if (!task_) {
|
|
71
|
+
ESP_LOGE(kTag, "failed to start touch task");
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
74
|
+
initialized_ = true;
|
|
75
|
+
ESP_LOGI(kTag, "touch ready");
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
int read(int *x, int *y)
|
|
80
|
+
{
|
|
81
|
+
TouchSample sample = readHardware();
|
|
82
|
+
current_ = sample;
|
|
83
|
+
if (x) *x = sample.x;
|
|
84
|
+
if (y) *y = sample.y;
|
|
85
|
+
return sample.touching ? 1 : 0;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
int readCached(int *x, int *y) const
|
|
89
|
+
{
|
|
90
|
+
const TouchSample sample = current_;
|
|
91
|
+
if (x) *x = sample.x;
|
|
92
|
+
if (y) *y = sample.y;
|
|
93
|
+
return sample.touching ? 1 : 0;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
void consumeLatestMove(int *x, int *y)
|
|
97
|
+
{
|
|
98
|
+
latestMoveQueued_.store(false, std::memory_order_release);
|
|
99
|
+
if (x) *x = latestMove_.x;
|
|
100
|
+
if (y) *y = latestMove_.y;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
void injectEvent(gea::platform::touch::Phase phase, bool touching, int x, int y)
|
|
104
|
+
{
|
|
105
|
+
TouchSample sample{touching, x, y};
|
|
106
|
+
current_ = sample;
|
|
107
|
+
latestMove_ = sample;
|
|
108
|
+
latestMoveQueued_.store(phase == gea::platform::touch::Phase::Move, std::memory_order_release);
|
|
109
|
+
notify(phase, sample);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
private:
|
|
113
|
+
esp_err_t attachTouch()
|
|
114
|
+
{
|
|
115
|
+
// Build the FT5x06 panel-IO config by hand: the vendor
|
|
116
|
+
// ESP_LCD_TOUCH_IO_I2C_FT5x06_CONFIG() macro uses out-of-declaration-order
|
|
117
|
+
// designated initializers, which is a hard error in C++.
|
|
118
|
+
esp_lcd_panel_io_i2c_config_t ioConfig = {};
|
|
119
|
+
ioConfig.dev_addr = ESP_LCD_TOUCH_IO_I2C_FT5x06_ADDRESS;
|
|
120
|
+
ioConfig.scl_speed_hz = 400000;
|
|
121
|
+
ioConfig.control_phase_bytes = 1;
|
|
122
|
+
ioConfig.dc_bit_offset = 0;
|
|
123
|
+
ioConfig.lcd_cmd_bits = 8;
|
|
124
|
+
ioConfig.flags.disable_control_phase = 1;
|
|
125
|
+
|
|
126
|
+
esp_lcd_panel_io_handle_t io = nullptr;
|
|
127
|
+
esp_err_t err = esp_lcd_new_panel_io_i2c(i2cBus_, &ioConfig, &io);
|
|
128
|
+
if (err != ESP_OK) return err;
|
|
129
|
+
|
|
130
|
+
esp_lcd_touch_config_t touchConfig = {};
|
|
131
|
+
touchConfig.x_max = kPanelWidth;
|
|
132
|
+
touchConfig.y_max = kPanelHeight;
|
|
133
|
+
touchConfig.rst_gpio_num = gea::platform::board::touch.reset;
|
|
134
|
+
touchConfig.int_gpio_num = gea::platform::board::touch.interrupt;
|
|
135
|
+
touchConfig.levels.reset = 0;
|
|
136
|
+
touchConfig.levels.interrupt = 0;
|
|
137
|
+
touchConfig.flags.swap_xy = false;
|
|
138
|
+
touchConfig.flags.mirror_x = false;
|
|
139
|
+
touchConfig.flags.mirror_y = false;
|
|
140
|
+
|
|
141
|
+
err = esp_lcd_touch_new_i2c_ft5x06(io, &touchConfig, &touch_);
|
|
142
|
+
if (err != ESP_OK) {
|
|
143
|
+
esp_lcd_panel_io_del(io);
|
|
144
|
+
return err;
|
|
145
|
+
}
|
|
146
|
+
touchIo_ = io;
|
|
147
|
+
ESP_LOGI(kTag, "FT5x06 touch ready");
|
|
148
|
+
return ESP_OK;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
TouchSample readHardware()
|
|
152
|
+
{
|
|
153
|
+
TouchSample sample = current_;
|
|
154
|
+
if (!touch_) return sample;
|
|
155
|
+
esp_lcd_touch_read_data(touch_);
|
|
156
|
+
std::uint16_t x = 0;
|
|
157
|
+
std::uint16_t y = 0;
|
|
158
|
+
std::uint16_t strength = 0;
|
|
159
|
+
std::uint8_t count = 0;
|
|
160
|
+
const bool pressed = esp_lcd_touch_get_coordinates(touch_, &x, &y, &strength, &count, 1);
|
|
161
|
+
if (!pressed || count == 0) {
|
|
162
|
+
sample.touching = false;
|
|
163
|
+
return sample;
|
|
164
|
+
}
|
|
165
|
+
// Report PANEL-NATIVE coordinates. TouchRuntime owns the panel->logical
|
|
166
|
+
// rotation (queueTouchEvent + the dispatcher's consumeLatestMove path);
|
|
167
|
+
// rotating here as well double-rotates in landscape, throwing most taps
|
|
168
|
+
// off the 480x320 viewport (camera buttons stopped registering).
|
|
169
|
+
sample.touching = true;
|
|
170
|
+
sample.x = static_cast<int>(x);
|
|
171
|
+
sample.y = static_cast<int>(y);
|
|
172
|
+
return sample;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
void pollLoop()
|
|
176
|
+
{
|
|
177
|
+
TouchSample last;
|
|
178
|
+
bool downPending = false;
|
|
179
|
+
while (true) {
|
|
180
|
+
vTaskDelay(pdMS_TO_TICKS(kPollIntervalMs));
|
|
181
|
+
TouchSample next = readHardware();
|
|
182
|
+
if (!next.touching) {
|
|
183
|
+
next.x = last.x;
|
|
184
|
+
next.y = last.y;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
// FT5x06 quirk: the first report of a NEW touch can still carry the
|
|
188
|
+
// PREVIOUS touch's coordinates (TD_STATUS flips one scan before the
|
|
189
|
+
// P1 registers update). Dispatching Down on that report routed taps
|
|
190
|
+
// to whatever widget the user touched LAST (user-visible: tapping
|
|
191
|
+
// the camera preview "pressed" the AE or capture button). Hold the
|
|
192
|
+
// Down for one poll (10 ms) and dispatch with the refreshed
|
|
193
|
+
// coordinates; a release within that window dispatches Down+Up from
|
|
194
|
+
// the freshest read we have.
|
|
195
|
+
if (next.touching && !last.touching && !downPending) {
|
|
196
|
+
downPending = true;
|
|
197
|
+
pendingDown_ = next;
|
|
198
|
+
current_ = next;
|
|
199
|
+
continue;
|
|
200
|
+
}
|
|
201
|
+
if (downPending) {
|
|
202
|
+
downPending = false;
|
|
203
|
+
if (next.touching) {
|
|
204
|
+
notify(gea::platform::touch::Phase::Down, next);
|
|
205
|
+
current_ = next;
|
|
206
|
+
last = next;
|
|
207
|
+
continue;
|
|
208
|
+
}
|
|
209
|
+
// Ultra-short tap: only the first (possibly stale) read exists —
|
|
210
|
+
// dispatch the full tap from it; better than dropping the input.
|
|
211
|
+
notify(gea::platform::touch::Phase::Down, pendingDown_);
|
|
212
|
+
TouchSample up = pendingDown_;
|
|
213
|
+
up.touching = false;
|
|
214
|
+
notify(gea::platform::touch::Phase::Up, up);
|
|
215
|
+
current_ = up;
|
|
216
|
+
last.touching = false;
|
|
217
|
+
continue;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
if (next.touching && !last.touching) {
|
|
221
|
+
notify(gea::platform::touch::Phase::Down, next);
|
|
222
|
+
} else if (!next.touching && last.touching) {
|
|
223
|
+
notify(gea::platform::touch::Phase::Up, next);
|
|
224
|
+
} else if (next.touching && (next.x != last.x || next.y != last.y)) {
|
|
225
|
+
latestMove_ = next;
|
|
226
|
+
if (!latestMoveQueued_.exchange(true, std::memory_order_acq_rel)) {
|
|
227
|
+
notify(gea::platform::touch::Phase::Move, next);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
current_ = next;
|
|
232
|
+
if (next.touching) last = next;
|
|
233
|
+
else last.touching = false;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
void notify(gea::platform::touch::Phase phase, const TouchSample &sample)
|
|
238
|
+
{
|
|
239
|
+
// Down audit trail for transform debugging: panel-native coordinates as
|
|
240
|
+
// reported, alongside the logical coordinates TouchRuntime will hit-test.
|
|
241
|
+
if (phase == gea::platform::touch::Phase::Down) {
|
|
242
|
+
int lx = sample.x;
|
|
243
|
+
int ly = sample.y;
|
|
244
|
+
gea::framework::events::TouchRuntime::transformTouchToLogical(&lx, &ly);
|
|
245
|
+
ESP_LOGI(kTag, "touch down panel=(%d,%d) logical=(%d,%d)", sample.x, sample.y, lx, ly);
|
|
246
|
+
}
|
|
247
|
+
if (observer_) observer_(phase, sample.touching, sample.x, sample.y);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
static void taskEntry(void *arg)
|
|
251
|
+
{
|
|
252
|
+
static_cast<Ft5x06TouchController *>(arg)->pollLoop();
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
gea::platform::touch::Touchscreen::Observer observer_ = nullptr;
|
|
256
|
+
i2c_master_bus_handle_t i2cBus_ = nullptr;
|
|
257
|
+
esp_lcd_touch_handle_t touch_ = nullptr;
|
|
258
|
+
esp_lcd_panel_io_handle_t touchIo_ = nullptr;
|
|
259
|
+
TaskHandle_t task_ = nullptr;
|
|
260
|
+
StaticTask_t taskControlBlock_{};
|
|
261
|
+
StackType_t taskStack_[4096]{};
|
|
262
|
+
TouchSample current_{};
|
|
263
|
+
TouchSample latestMove_{};
|
|
264
|
+
// First read of a new touch, held one poll for coordinate confirmation
|
|
265
|
+
// (see pollLoop's FT5x06 stale-first-report note).
|
|
266
|
+
TouchSample pendingDown_{};
|
|
267
|
+
std::atomic<bool> latestMoveQueued_{false};
|
|
268
|
+
bool initialized_ = false;
|
|
269
|
+
};
|
|
270
|
+
|
|
271
|
+
Ft5x06TouchController &touchController()
|
|
272
|
+
{
|
|
273
|
+
return Ft5x06TouchController::instance();
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
} // namespace
|
|
277
|
+
|
|
278
|
+
void gea::platform::touch::Touchscreen::setObserver(Observer observer)
|
|
279
|
+
{
|
|
280
|
+
touchController().setObserver(observer);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
bool gea::platform::touch::Touchscreen::init()
|
|
284
|
+
{
|
|
285
|
+
return touchController().begin();
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
int gea::platform::touch::Touchscreen::read(int *x, int *y)
|
|
289
|
+
{
|
|
290
|
+
return touchController().read(x, y);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
int gea::platform::touch::Touchscreen::readCached(int *x, int *y)
|
|
294
|
+
{
|
|
295
|
+
return touchController().readCached(x, y);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
void gea::platform::touch::Touchscreen::consumeLatestMove(int *x, int *y)
|
|
299
|
+
{
|
|
300
|
+
touchController().consumeLatestMove(x, y);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
void gea::platform::touch::Touchscreen::injectEvent(Phase phase, bool touching, int x, int y)
|
|
304
|
+
{
|
|
305
|
+
touchController().injectEvent(phase, touching, x, y);
|
|
306
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Generated by npm run install-app. Safe to regenerate.
|
|
2
|
+
# Installed app plan: app-launcher
|
|
3
|
+
# Installed application plan: image-jsx
|
|
4
|
+
# Firmware OTA layout: app-launcher plus one regular OTA update slot
|
|
5
|
+
# 16 MB flash (Waveshare ESP32-P4-WIFI6-Touch-LCD-3.5): two ~7.9 MB OTA app slots.
|
|
6
|
+
# Name, Type, SubType, Offset, Size
|
|
7
|
+
# ota_0: app-launcher
|
|
8
|
+
# ota_1: app-launcher
|
|
9
|
+
nvs, data, nvs, 0x9000, 0x6000
|
|
10
|
+
otadata, data, ota, 0xf000, 0x2000
|
|
11
|
+
phy_init, data, phy, 0x11000, 0x1000
|
|
12
|
+
ota_0, app, ota_0, 0x20000, 0x7f0000
|
|
13
|
+
ota_1, app, ota_1, 0x810000, 0x7f0000
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Patches for managed components
|
|
2
|
+
|
|
3
|
+
`managed_components/` is regenerated by the IDF component manager and is not
|
|
4
|
+
version-controlled, so any fix to a managed component lives here as a patch and
|
|
5
|
+
must be reapplied after the component manager refreshes (e.g. after deleting
|
|
6
|
+
`managed_components/` or bumping `idf_component.yml`).
|
|
7
|
+
|
|
8
|
+
## espressif__esp_video-csi-bypass.patch
|
|
9
|
+
|
|
10
|
+
ESP32-P4 rev < v3.0 (the rev v1.3 silicon on these Waveshare boards) cannot do
|
|
11
|
+
RAW→RGB565 color conversion in the MIPI-CSI bridge. The patch forces the CSI
|
|
12
|
+
controller into 16-bpp pass-through (the inline ISP demosaics instead), sizes
|
|
13
|
+
the frame at the unpacked RAW width so the full frame is converted (not 62.5%
|
|
14
|
+
of the height), and restores the standard MIPI data-type filter range
|
|
15
|
+
[0x12, 0x2f] that the custom-depth path leaves at [0, 0] (which would drop all
|
|
16
|
+
RAW10 packets and yield a blank preview).
|
|
17
|
+
|
|
18
|
+
Apply from this target directory:
|
|
19
|
+
|
|
20
|
+
```sh
|
|
21
|
+
patch -p1 < patches/espressif__esp_video-csi-bypass.patch
|
|
22
|
+
```
|
package/targets/esp32-p4-waveshare-touch-lcd-3.5/patches/espressif__esp_video-csi-bypass.patch
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
--- a/managed_components/espressif__esp_video/src/device/esp_video_csi_device.c
|
|
2
|
+
+++ b/managed_components/espressif__esp_video/src/device/esp_video_csi_device.c
|
|
3
|
+
@@ -340,6 +340,25 @@
|
|
4
|
+
.data_lane_num = csi_video->state.lane_num,
|
|
5
|
+
.input_data_color_type = csi_video->state.in_color,
|
|
6
|
+
.output_data_color_type = csi_video->state.out_color,
|
|
7
|
+
+ // ESP32-P4 rev < v3.0 (v1.3 Waveshare boards): the MIPI-CSI bridge can't do
|
|
8
|
+
+ // RAW->RGB565 color conversion (HW-gated). Forcing custom_data_depth = 16 bpp
|
|
9
|
+
+ // (a) puts the bridge in pass-through — no color conversion, so the rev gate is
|
|
10
|
+
+ // never hit — and the inline ISP demosaics RAW->RGB565 instead; and (b) sizes
|
|
11
|
+
+ // the CSI frame at the sensor's UNPACKED 16-bit RAW width so the ISP demosaics
|
|
12
|
+
+ // the FULL frame. Without it the frame is sized at the packed RAW10 width
|
|
13
|
+
+ // (10 bpp) and the ISP output stops at 10/16 = 62.5% of the height (the stale
|
|
14
|
+
+ // lower band).
|
|
15
|
+
+ //
|
|
16
|
+
+ // Custom data depth also takes over the bridge's MIPI data-type *pixel filter*:
|
|
17
|
+
+ // esp_cam_new_csi_ctlr() only auto-fills the filter range [0x12, 0x2f] on the
|
|
18
|
+
+ // bits_per_pixel == 0 path; on the custom path it copies data_type_min/max
|
|
19
|
+
+ // verbatim. Leaving them 0 sets the filter to [0,0] so the bridge accepts ONLY
|
|
20
|
+
+ // MIPI DT 0x00 and drops every RAW10 packet (DT 0x2b) — the camera streams but
|
|
21
|
+
+ // delivers zero frames (blank preview). Set the same standard range so RAW10
|
|
22
|
+
+ // (and YUV/RGB/embedded) packets pass.
|
|
23
|
+
+ .data_type.bits_per_pixel = CSI_DEFAULT_OUT_BPP,
|
|
24
|
+
+ .data_type.data_type_min = 0x12,
|
|
25
|
+
+ .data_type.data_type_max = 0x2f,
|
|
26
|
+
.lane_bit_rate_mbps = csi_video->state.lane_bitrate_mbps,
|
|
27
|
+
#if CONFIG_ESP_VIDEO_DISABLE_MIPI_CSI_DRIVER_BACKUP_BUFFER
|
|
28
|
+
.bk_buffer_dis = true,
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# Target: ESP32-P4
|
|
2
|
+
CONFIG_IDF_TARGET="esp32p4"
|
|
3
|
+
CONFIG_IDF_TARGET_ESP32P4=y
|
|
4
|
+
|
|
5
|
+
# Flash: 16 MB (Waveshare ESP32-P4-WIFI6-Touch-LCD-3.5)
|
|
6
|
+
CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y
|
|
7
|
+
CONFIG_ESPTOOLPY_FLASHFREQ_40M=y
|
|
8
|
+
|
|
9
|
+
# The first Waveshare ESP32-P4-WIFI6-Touch-LCD-7 unit reports ESP32-P4 rev
|
|
10
|
+
# v1.3. ESP-IDF defaults to rev v3.1+, whose bootloader rejects this board.
|
|
11
|
+
CONFIG_ESP32P4_SELECTS_REV_LESS_V3=y
|
|
12
|
+
CONFIG_ESP32P4_REV_MIN_100=y
|
|
13
|
+
CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_360=y
|
|
14
|
+
|
|
15
|
+
# Keep the console on UART0 (USB-JTAG stays secondary); the ESP32-P4 USB Serial/JTAG
|
|
16
|
+
# bootloader console init path hangs on the Waveshare rev v1.3 board during early
|
|
17
|
+
# bring-up, so UART must remain primary. Use CUSTOM (default pins via GPIO=-1) so the
|
|
18
|
+
# baud is settable: stdout is mirrored to UART0 + USB-JTAG and the write blocks on the
|
|
19
|
+
# slower UART, so the camera-capture base64 stream (multi-MB) is gated by this baud.
|
|
20
|
+
# 921600 makes it ~8x faster; the host reads the baud-agnostic USB-JTAG side.
|
|
21
|
+
CONFIG_ESP_CONSOLE_UART_CUSTOM=y
|
|
22
|
+
CONFIG_ESP_CONSOLE_UART_TX_GPIO=-1
|
|
23
|
+
CONFIG_ESP_CONSOLE_UART_RX_GPIO=-1
|
|
24
|
+
CONFIG_ESP_CONSOLE_SECONDARY_USB_SERIAL_JTAG=y
|
|
25
|
+
CONFIG_ESP_CONSOLE_UART_BAUDRATE=921600
|
|
26
|
+
|
|
27
|
+
# Custom partition table with two OTA slots and installable app storage.
|
|
28
|
+
CONFIG_PARTITION_TABLE_CUSTOM=y
|
|
29
|
+
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
|
|
30
|
+
|
|
31
|
+
# Runtime timing and task budgets. The P4 creates its two IPC tasks before the
|
|
32
|
+
# IDF main task; keeping IPC at the older S3 16 KiB value fragments internal
|
|
33
|
+
# SRAM enough that the 32 KiB main stack cannot be allocated at startup.
|
|
34
|
+
CONFIG_FREERTOS_HZ=1000
|
|
35
|
+
CONFIG_ESP_MAIN_TASK_STACK_SIZE=32768
|
|
36
|
+
CONFIG_ESP_IPC_TASK_STACK_SIZE=4096
|
|
37
|
+
|
|
38
|
+
# External PSRAM is required for the 720x1280 RGB565 framebuffer and staging
|
|
39
|
+
# buffers. Keep internal memory globally allocatable; code asks for DMA/internal
|
|
40
|
+
# caps explicitly when needed.
|
|
41
|
+
CONFIG_SPIRAM=y
|
|
42
|
+
CONFIG_SPIRAM_SPEED_200M=y
|
|
43
|
+
CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY=y
|
|
44
|
+
CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=0
|
|
45
|
+
CONFIG_SPIRAM_MALLOC_RESERVE_INTERNAL=0
|
|
46
|
+
|
|
47
|
+
# Camera: Waveshare's ESP32-P4-WIFI6-Touch-LCD-X examples use the onboard
|
|
48
|
+
# OV5647 over MIPI-CSI through the esp_video ISP pipeline.
|
|
49
|
+
CONFIG_IDF_EXPERIMENTAL_FEATURES=y
|
|
50
|
+
CONFIG_CAMERA_OV5647=y
|
|
51
|
+
# Preview/streaming mode: the 1280x960 2x2-binning mode (index 4) is the mode the
|
|
52
|
+
# stock Waveshare/ESP-Brookesia camera app uses on this exact rev-v1.3 board, and
|
|
53
|
+
# it streams RGB565 cleanly through the ISP. The 1920x1080 RAW10 mode (index 3)
|
|
54
|
+
# trips the IDF 6.0 CSI bridge color-conversion gate (HW-gated to chip rev >=v3.0)
|
|
55
|
+
# on this v1.3 silicon, so STREAMON fails. Use the binning mode for the live view.
|
|
56
|
+
CONFIG_CAMERA_OV5647_MIPI_RAW10_1280x960_BINNING_45FPS=y
|
|
57
|
+
CONFIG_CAMERA_OV5647_MIPI_IF_FORMAT_INDEX_DAFAULT=4
|
|
58
|
+
CONFIG_ESP_VIDEO_ENABLE_ISP_PIPELINE_CONTROLLER=y
|
|
59
|
+
# Hardware H.264 encoder exposed as a V4L2 M2M device (/dev/video11) for the
|
|
60
|
+
# full-resolution 1080p video recording path (Camera.recordH264Clip).
|
|
61
|
+
CONFIG_ESP_VIDEO_ENABLE_H264_VIDEO_DEVICE=y
|
|
62
|
+
CONFIG_ESP_VIDEO_ENABLE_HW_H264_VIDEO_DEVICE=y
|
|
63
|
+
# esp_video registers several /dev/video* VFS entries; with the console + the
|
|
64
|
+
# /sdcard FAT mount the default cap of 8 is exhausted (mount fails with NO_MEM).
|
|
65
|
+
CONFIG_VFS_MAX_COUNT=16
|
|
66
|
+
# microSD cards use 512-byte logical sectors; IDF's FATFS defaults to 4096 (for the
|
|
67
|
+
# on-flash wear-levelled FAT), which fails to mount an SD card (FR_NO_FILESYSTEM).
|
|
68
|
+
CONFIG_FATFS_SECTOR_512=y
|
|
69
|
+
# exFAT support is enabled in ffconf.h (FF_FS_EXFAT=1) so the board can read exFAT
|
|
70
|
+
# microSD cards; the exFAT code path references FF_USE_LABEL as a C value, so the
|
|
71
|
+
# volume-label option must be defined (it's "not set" => undefined => won't compile).
|
|
72
|
+
CONFIG_FATFS_USE_LABEL=y
|
|
73
|
+
# CONFIG_ESP_H264_DECODER_IRAM is not set
|
|
74
|
+
|
|
75
|
+
# WebRTC: mbedTLS DTLS + DTLS-SRTP for esp_peer.
|
|
76
|
+
CONFIG_MBEDTLS_SSL_PROTO_DTLS=y
|
|
77
|
+
CONFIG_MBEDTLS_SSL_DTLS_SRTP=y
|
|
78
|
+
CONFIG_MBEDTLS_SSL_DTLS_CONNECTION_ID=y
|
|
79
|
+
CONFIG_MBEDTLS_X509_CREATE_C=y
|
|
80
|
+
CONFIG_MBEDTLS_X509_CRT_WRITE_C=y
|
|
81
|
+
CONFIG_MBEDTLS_X509_CSR_WRITE_C=y
|
|
82
|
+
|
|
83
|
+
# Release optimization level for the large display workload.
|
|
84
|
+
CONFIG_COMPILER_OPTIMIZATION_PERF=y
|
|
85
|
+
CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_ENABLE=y
|
|
86
|
+
CONFIG_COMPILER_OPTIMIZATION_ASSERTION_LEVEL=2
|
|
87
|
+
|
|
88
|
+
# Development logging / diagnostics defaults.
|
|
89
|
+
# CONFIG_GEA_EMBEDDED_PRODUCTION_LOCKDOWN is not set
|
|
90
|
+
# CONFIG_LOG_DEFAULT_LEVEL_NONE is not set
|
|
91
|
+
CONFIG_LOG_DEFAULT_LEVEL_INFO=y
|
|
92
|
+
CONFIG_LOG_DEFAULT_LEVEL=3
|
|
93
|
+
CONFIG_LOG_MAXIMUM_EQUALS_DEFAULT=y
|
|
94
|
+
CONFIG_LOG_MAXIMUM_LEVEL=3
|
|
95
|
+
# CONFIG_BOOTLOADER_LOG_LEVEL_NONE is not set
|
|
96
|
+
CONFIG_BOOTLOADER_LOG_LEVEL_INFO=y
|
|
97
|
+
CONFIG_BOOTLOADER_LOG_LEVEL=3
|
|
98
|
+
|
|
99
|
+
# Keep standalone heap tracing available for framebuffer/app-init diagnosis.
|
|
100
|
+
# Heap tracing costs about a kilobyte of IRAM and puts a hook on the allocator's
|
|
101
|
+
# hot path. The framework's only users, the display and AXP2101 init traces, are
|
|
102
|
+
# already gated on GEA_EMBEDDED_HEAP_DIAGNOSTICS_LOG, which defaults to 0, so
|
|
103
|
+
# nothing traced by default and every app paid for it. Turn this and that macro
|
|
104
|
+
# on together when you actually want a trace.
|
|
105
|
+
CONFIG_HEAP_TRACING_OFF=y
|
|
106
|
+
# CONFIG_HEAP_TRACING_STANDALONE is not set
|
|
107
|
+
# CONFIG_HEAP_TRACING_TOHOST is not set
|
|
108
|
+
# CONFIG_HEAP_TRACING is not set
|
|
109
|
+
# CONFIG_HEAP_TRACE_HASH_MAP is not set
|