@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,383 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Repo-local FatFs configuration override for the ESP32-P4 camera target.
|
|
3
|
+
*
|
|
4
|
+
* This is a verbatim copy of ESP-IDF v6.0.1's components/fatfs/src/ffconf.h with
|
|
5
|
+
* ONE change: FF_FS_EXFAT is set to 1 so the board can mount exFAT microSD cards
|
|
6
|
+
* (IDF exposes no Kconfig for exFAT). It is force-included into the fatfs component
|
|
7
|
+
* (see main/CMakeLists.txt: `-include .../fatfs_ffconf.h`). Because the file opens
|
|
8
|
+
* with `#ifndef _FFCONF_DEFINED`, defining that guard here makes IDF's own ffconf.h
|
|
9
|
+
* a no-op, so this config wins WITHOUT modifying the ESP-IDF tree.
|
|
10
|
+
*
|
|
11
|
+
* Everything else is still driven from sdkconfig (LFN, sector size, code page,
|
|
12
|
+
* volume label, ...). If ESP-IDF is upgraded, re-sync this file from the new
|
|
13
|
+
* components/fatfs/src/ffconf.h and re-apply the FF_FS_EXFAT=1 change.
|
|
14
|
+
*/
|
|
15
|
+
#ifndef _FFCONF_DEFINED
|
|
16
|
+
#define _FFCONF_DEFINED
|
|
17
|
+
|
|
18
|
+
#include "sdkconfig.h"
|
|
19
|
+
|
|
20
|
+
/*---------------------------------------------------------------------------/
|
|
21
|
+
/ Configurations of FatFs Module
|
|
22
|
+
/---------------------------------------------------------------------------*/
|
|
23
|
+
|
|
24
|
+
#define FFCONF_DEF 80286 /* Revision ID */
|
|
25
|
+
|
|
26
|
+
/*---------------------------------------------------------------------------/
|
|
27
|
+
/ Function Configurations
|
|
28
|
+
/---------------------------------------------------------------------------*/
|
|
29
|
+
|
|
30
|
+
#define FF_FS_READONLY 0
|
|
31
|
+
/* This option switches read-only configuration. (0:Read/Write or 1:Read-only)
|
|
32
|
+
/ Read-only configuration removes writing API functions, f_write(), f_sync(),
|
|
33
|
+
/ f_unlink(), f_mkdir(), f_chmod(), f_rename(), f_truncate(), f_getfree()
|
|
34
|
+
/ and optional writing functions as well. */
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
#define FF_FS_MINIMIZE 0
|
|
38
|
+
/* This option defines minimization level to remove some basic API functions.
|
|
39
|
+
/
|
|
40
|
+
/ 0: Basic functions are fully enabled.
|
|
41
|
+
/ 1: f_stat(), f_getfree(), f_unlink(), f_mkdir(), f_truncate() and f_rename()
|
|
42
|
+
/ are removed.
|
|
43
|
+
/ 2: f_opendir(), f_readdir() and f_closedir() are removed in addition to 1.
|
|
44
|
+
/ 3: f_lseek() function is removed in addition to 2. */
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
#define FF_USE_FIND 0
|
|
48
|
+
/* This option switches filtered directory read functions, f_findfirst() and
|
|
49
|
+
/ f_findnext(). (0:Disable, 1:Enable 2:Enable with matching altname[] too) */
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
#define FF_USE_MKFS 1
|
|
53
|
+
/* This option switches f_mkfs() function. (0:Disable or 1:Enable) */
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
#define FF_USE_FASTSEEK CONFIG_FATFS_USE_FASTSEEK
|
|
57
|
+
/* This option switches fast seek function. (0:Disable or 1:Enable) */
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
#define FF_USE_EXPAND 1
|
|
61
|
+
/* This option switches f_expand function. (0:Disable or 1:Enable) */
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
#define FF_USE_CHMOD 1
|
|
65
|
+
/* This option switches attribute manipulation functions, f_chmod() and f_utime().
|
|
66
|
+
/ (0:Disable or 1:Enable) Also FF_FS_READONLY needs to be 0 to enable this option. */
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
#define FF_USE_LABEL CONFIG_FATFS_USE_LABEL
|
|
70
|
+
/* This option switches volume label functions, f_getlabel() and f_setlabel().
|
|
71
|
+
/ (0:Disable or 1:Enable) */
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
#define FF_USE_FORWARD 0
|
|
75
|
+
/* This option switches f_forward() function. (0:Disable or 1:Enable) */
|
|
76
|
+
|
|
77
|
+
#if defined(CONFIG_FATFS_USE_STRFUNC_WITHOUT_CRLF_CONV)
|
|
78
|
+
#define FF_USE_STRFUNC 1
|
|
79
|
+
#elif defined(CONFIG_FATFS_USE_STRFUNC_WITH_CRLF_CONV)
|
|
80
|
+
#define FF_USE_STRFUNC 2
|
|
81
|
+
#else /* CONFIG_FATFS_USE_STRFUNC_NONE */
|
|
82
|
+
#define FF_USE_STRFUNC 0
|
|
83
|
+
#endif
|
|
84
|
+
|
|
85
|
+
#ifdef CONFIG_FATFS_PRINT_LLI
|
|
86
|
+
#define FF_PRINT_LLI 1
|
|
87
|
+
#else
|
|
88
|
+
#define FF_PRINT_LLI 0
|
|
89
|
+
#endif
|
|
90
|
+
|
|
91
|
+
#ifdef CONFIG_FATFS_PRINT_FLOAT
|
|
92
|
+
#define FF_PRINT_FLOAT 1
|
|
93
|
+
#else
|
|
94
|
+
#define FF_PRINT_FLOAT 0
|
|
95
|
+
#endif
|
|
96
|
+
|
|
97
|
+
#if defined(CONFIG_FATFS_STRF_ENCODE_ANSI)
|
|
98
|
+
#define FF_STRF_ENCODE 0
|
|
99
|
+
#elif defined(CONFIG_FATFS_STRF_ENCODE_UTF16LE)
|
|
100
|
+
#define FF_STRF_ENCODE 1
|
|
101
|
+
#elif defined(CONFIG_FATFS_STRF_ENCODE_UTF16BE)
|
|
102
|
+
#define FF_STRF_ENCODE 2
|
|
103
|
+
#else /* CONFIG_FATFS_STRF_ENCODE_UTF8 */
|
|
104
|
+
#define FF_STRF_ENCODE 3
|
|
105
|
+
#endif
|
|
106
|
+
|
|
107
|
+
/* FF_USE_STRFUNC switches string functions, f_gets(), f_putc(), f_puts() and
|
|
108
|
+
/ f_printf().
|
|
109
|
+
/
|
|
110
|
+
/ 0: Disable. FF_PRINT_LLI, FF_PRINT_FLOAT and FF_STRF_ENCODE have no effect.
|
|
111
|
+
/ 1: Enable without LF-CRLF conversion.
|
|
112
|
+
/ 2: Enable with LF-CRLF conversion.
|
|
113
|
+
/
|
|
114
|
+
/ FF_PRINT_LLI = 1 makes f_printf() support long long argument and FF_PRINT_FLOAT = 1/2
|
|
115
|
+
/ makes f_printf() support floating point argument. These features want C99 or later.
|
|
116
|
+
/ When FF_LFN_UNICODE >= 1 with LFN enabled, string functions convert the character
|
|
117
|
+
/ encoding in it. FF_STRF_ENCODE selects assumption of character encoding ON THE FILE
|
|
118
|
+
/ to be read/written via those functions.
|
|
119
|
+
/
|
|
120
|
+
/ 0: ANSI/OEM in current CP
|
|
121
|
+
/ 1: Unicode in UTF-16LE
|
|
122
|
+
/ 2: Unicode in UTF-16BE
|
|
123
|
+
/ 3: Unicode in UTF-8
|
|
124
|
+
*/
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
/*---------------------------------------------------------------------------/
|
|
128
|
+
/ Locale and Namespace Configurations
|
|
129
|
+
/---------------------------------------------------------------------------*/
|
|
130
|
+
|
|
131
|
+
#define FF_CODE_PAGE CONFIG_FATFS_CODEPAGE
|
|
132
|
+
/* This option specifies the OEM code page to be used on the target system.
|
|
133
|
+
/ Incorrect code page setting can cause a file open failure.
|
|
134
|
+
/
|
|
135
|
+
/ 437 - U.S.
|
|
136
|
+
/ 720 - Arabic
|
|
137
|
+
/ 737 - Greek
|
|
138
|
+
/ 771 - KBL
|
|
139
|
+
/ 775 - Baltic
|
|
140
|
+
/ 850 - Latin 1
|
|
141
|
+
/ 852 - Latin 2
|
|
142
|
+
/ 855 - Cyrillic
|
|
143
|
+
/ 857 - Turkish
|
|
144
|
+
/ 860 - Portuguese
|
|
145
|
+
/ 861 - Icelandic
|
|
146
|
+
/ 862 - Hebrew
|
|
147
|
+
/ 863 - Canadian French
|
|
148
|
+
/ 864 - Arabic
|
|
149
|
+
/ 865 - Nordic
|
|
150
|
+
/ 866 - Russian
|
|
151
|
+
/ 869 - Greek 2
|
|
152
|
+
/ 932 - Japanese (DBCS)
|
|
153
|
+
/ 936 - Simplified Chinese (DBCS)
|
|
154
|
+
/ 949 - Korean (DBCS)
|
|
155
|
+
/ 950 - Traditional Chinese (DBCS)
|
|
156
|
+
/ 0 - Include all code pages above and configured by f_setcp()
|
|
157
|
+
*/
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
#if defined(CONFIG_FATFS_LFN_STACK)
|
|
161
|
+
#define FF_USE_LFN 2
|
|
162
|
+
#elif defined(CONFIG_FATFS_LFN_HEAP)
|
|
163
|
+
#define FF_USE_LFN 3
|
|
164
|
+
#else /* CONFIG_FATFS_LFN_NONE */
|
|
165
|
+
#define FF_USE_LFN 0
|
|
166
|
+
#endif
|
|
167
|
+
|
|
168
|
+
#ifdef CONFIG_FATFS_MAX_LFN
|
|
169
|
+
#define FF_MAX_LFN CONFIG_FATFS_MAX_LFN
|
|
170
|
+
#endif
|
|
171
|
+
|
|
172
|
+
/* The FF_USE_LFN switches the support for LFN (long file name).
|
|
173
|
+
/
|
|
174
|
+
/ 0: Disable LFN. FF_MAX_LFN has no effect.
|
|
175
|
+
/ 1: Enable LFN with static working buffer on the BSS. Always NOT thread-safe.
|
|
176
|
+
/ 2: Enable LFN with dynamic working buffer on the STACK.
|
|
177
|
+
/ 3: Enable LFN with dynamic working buffer on the HEAP.
|
|
178
|
+
/
|
|
179
|
+
/ To enable the LFN, ffunicode.c needs to be added to the project. The LFN function
|
|
180
|
+
/ requiers certain internal working buffer occupies (FF_MAX_LFN + 1) * 2 bytes and
|
|
181
|
+
/ additional (FF_MAX_LFN + 44) / 15 * 32 bytes when exFAT is enabled.
|
|
182
|
+
/ The FF_MAX_LFN defines size of the working buffer in UTF-16 code unit and it can
|
|
183
|
+
/ be in range of 12 to 255. It is recommended to be set it 255 to fully support LFN
|
|
184
|
+
/ specification.
|
|
185
|
+
/ When use stack for the working buffer, take care on stack overflow. When use heap
|
|
186
|
+
/ memory for the working buffer, memory management functions, ff_memalloc() and
|
|
187
|
+
/ ff_memfree() exemplified in ffsystem.c, need to be added to the project. */
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
#ifdef CONFIG_FATFS_API_ENCODING_UTF_8
|
|
191
|
+
#define FF_LFN_UNICODE 2
|
|
192
|
+
#else /* CONFIG_FATFS_API_ENCODING_ANSI_OEM */
|
|
193
|
+
#define FF_LFN_UNICODE 0
|
|
194
|
+
#endif
|
|
195
|
+
/* This option switches the character encoding on the API when LFN is enabled.
|
|
196
|
+
/
|
|
197
|
+
/ 0: ANSI/OEM in current CP (TCHAR = char)
|
|
198
|
+
/ 1: Unicode in UTF-16 (TCHAR = WCHAR)
|
|
199
|
+
/ 2: Unicode in UTF-8 (TCHAR = char)
|
|
200
|
+
/ 3: Unicode in UTF-32 (TCHAR = DWORD)
|
|
201
|
+
/
|
|
202
|
+
/ Also behavior of string I/O functions will be affected by this option.
|
|
203
|
+
/ When LFN is not enabled, this option has no effect. */
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
#define FF_LFN_BUF 255
|
|
207
|
+
#define FF_SFN_BUF 12
|
|
208
|
+
/* This set of options defines size of file name members in the FILINFO structure
|
|
209
|
+
/ which is used to read out directory items. These values should be suffcient for
|
|
210
|
+
/ the file names to read. The maximum possible length of the read file name depends
|
|
211
|
+
/ on character encoding. When LFN is not enabled, these options have no effect. */
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
#define FF_FS_RPATH 0
|
|
215
|
+
/* This option configures support for relative path.
|
|
216
|
+
/
|
|
217
|
+
/ 0: Disable relative path and remove related functions.
|
|
218
|
+
/ 1: Enable relative path. f_chdir() and f_chdrive() are available.
|
|
219
|
+
/ 2: f_getcwd() function is available in addition to 1.
|
|
220
|
+
*/
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
/*---------------------------------------------------------------------------/
|
|
224
|
+
/ Drive/Volume Configurations
|
|
225
|
+
/---------------------------------------------------------------------------*/
|
|
226
|
+
|
|
227
|
+
#define FF_VOLUMES CONFIG_FATFS_VOLUME_COUNT
|
|
228
|
+
/* Number of volumes (logical drives) to be used. (1-10) */
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
#define FF_STR_VOLUME_ID 0
|
|
232
|
+
#define FF_VOLUME_STRS "RAM","NAND","CF","SD","SD2","USB","USB2","USB3"
|
|
233
|
+
/* FF_STR_VOLUME_ID switches support for volume ID in arbitrary strings.
|
|
234
|
+
/ When FF_STR_VOLUME_ID is set to 1 or 2, arbitrary strings can be used as drive
|
|
235
|
+
/ number in the path name. FF_VOLUME_STRS defines the volume ID strings for each
|
|
236
|
+
/ logical drives. Number of items must not be less than FF_VOLUMES. Valid
|
|
237
|
+
/ characters for the volume ID strings are A-Z, a-z and 0-9, however, they are
|
|
238
|
+
/ compared in case-insensitive. If FF_STR_VOLUME_ID >= 1 and FF_VOLUME_STRS is
|
|
239
|
+
/ not defined, a user defined volume string table is needed as:
|
|
240
|
+
/
|
|
241
|
+
/ const char* VolumeStr[FF_VOLUMES] = {"ram","flash","sd","usb",...
|
|
242
|
+
*/
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
#define FF_MULTI_PARTITION 1
|
|
246
|
+
/* This option switches support for multiple volumes on the physical drive.
|
|
247
|
+
/ By default (0), each logical drive number is bound to the same physical drive
|
|
248
|
+
/ number and only an FAT volume found on the physical drive will be mounted.
|
|
249
|
+
/ When this function is enabled (1), each logical drive number can be bound to
|
|
250
|
+
/ arbitrary physical drive and partition listed in the VolToPart[]. Also f_fdisk()
|
|
251
|
+
/ function will be available. */
|
|
252
|
+
|
|
253
|
+
/* SD card sector size */
|
|
254
|
+
#define FF_SS_SDCARD 512
|
|
255
|
+
/* wear_levelling library sector size */
|
|
256
|
+
#define FF_SS_WL CONFIG_WL_SECTOR_SIZE
|
|
257
|
+
|
|
258
|
+
#define FF_MIN_SS MIN(FF_SS_SDCARD, FF_SS_WL)
|
|
259
|
+
#define FF_MAX_SS MAX(FF_SS_SDCARD, FF_SS_WL)
|
|
260
|
+
/* This set of options configures the range of sector size to be supported. (512,
|
|
261
|
+
/ 1024, 2048 or 4096) Always set both 512 for most systems, generic memory card and
|
|
262
|
+
/ harddisk, but a larger value may be required for on-board flash memory and some
|
|
263
|
+
/ type of optical media. When FF_MAX_SS is larger than FF_MIN_SS, FatFs is configured
|
|
264
|
+
/ for variable sector size mode and disk_ioctl() function needs to implement
|
|
265
|
+
/ GET_SECTOR_SIZE command. */
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
#define FF_LBA64 0
|
|
269
|
+
/* This option switches support for 64-bit LBA. (0:Disable or 1:Enable)
|
|
270
|
+
/ To enable the 64-bit LBA, also exFAT needs to be enabled. (FF_FS_EXFAT == 1) */
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
#define FF_MIN_GPT 0x10000000
|
|
274
|
+
/* Minimum number of sectors to switch GPT as partitioning format in f_mkfs and
|
|
275
|
+
/ f_fdisk function. 0x100000000 max. This option has no effect when FF_LBA64 == 0. */
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
#define FF_USE_TRIM 1
|
|
279
|
+
/* This option switches support for ATA-TRIM. (0:Disable or 1:Enable)
|
|
280
|
+
/ To enable Trim function, also CTRL_TRIM command should be implemented to the
|
|
281
|
+
/ disk_ioctl() function. */
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
/*---------------------------------------------------------------------------/
|
|
286
|
+
/ System Configurations
|
|
287
|
+
/---------------------------------------------------------------------------*/
|
|
288
|
+
|
|
289
|
+
#define FF_FS_TINY (!CONFIG_FATFS_PER_FILE_CACHE)
|
|
290
|
+
/* This option switches tiny buffer configuration. (0:Normal or 1:Tiny)
|
|
291
|
+
/ At the tiny configuration, size of file object (FIL) is shrinked FF_MAX_SS bytes.
|
|
292
|
+
/ Instead of private sector buffer eliminated from the file object, common sector
|
|
293
|
+
/ buffer in the filesystem object (FATFS) is used for the file data transfer. */
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
#define FF_FS_EXFAT 1 /* gea: 1 (was 0 in IDF) — mount exFAT microSD cards */
|
|
297
|
+
/* This option switches support for exFAT filesystem. (0:Disable or 1:Enable)
|
|
298
|
+
/ To enable exFAT, also LFN needs to be enabled. (FF_USE_LFN >= 1)
|
|
299
|
+
/ Note that enabling exFAT discards ANSI C (C89) compatibility. */
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
#define FF_FS_NORTC 0
|
|
303
|
+
#define FF_NORTC_MON 1
|
|
304
|
+
#define FF_NORTC_MDAY 1
|
|
305
|
+
#define FF_NORTC_YEAR 2022
|
|
306
|
+
/* The option FF_FS_NORTC switches timestamp feature. If the system does not have
|
|
307
|
+
/ an RTC or valid timestamp is not needed, set FF_FS_NORTC = 1 to disable the
|
|
308
|
+
/ timestamp feature. Every object modified by FatFs will have a fixed timestamp
|
|
309
|
+
/ defined by FF_NORTC_MON, FF_NORTC_MDAY and FF_NORTC_YEAR in local time.
|
|
310
|
+
/ To enable timestamp function (FF_FS_NORTC = 0), get_fattime() function need to be
|
|
311
|
+
/ added to the project to read current time form real-time clock. FF_NORTC_MON,
|
|
312
|
+
/ FF_NORTC_MDAY and FF_NORTC_YEAR have no effect.
|
|
313
|
+
/ These options have no effect in read-only configuration (FF_FS_READONLY = 1). */
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
#define FF_FS_NOFSINFO (CONFIG_FATFS_DONT_TRUST_FREE_CLUSTER_CNT << 0 | CONFIG_FATFS_DONT_TRUST_LAST_ALLOC << 1)
|
|
317
|
+
/* If you need to know correct free space on the FAT32 volume, set bit 0 of this
|
|
318
|
+
/ option, and f_getfree() function at the first time after volume mount will force
|
|
319
|
+
/ a full FAT scan. Bit 1 controls the use of last allocated cluster number.
|
|
320
|
+
/
|
|
321
|
+
/ bit0=0: Use free cluster count in the FSINFO if available.
|
|
322
|
+
/ bit0=1: Do not trust free cluster count in the FSINFO.
|
|
323
|
+
/ bit1=0: Use last allocated cluster number in the FSINFO if available.
|
|
324
|
+
/ bit1=1: Do not trust last allocated cluster number in the FSINFO.
|
|
325
|
+
*/
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
#define FF_FS_LOCK CONFIG_FATFS_FS_LOCK
|
|
329
|
+
/* The option FF_FS_LOCK switches file lock function to control duplicated file open
|
|
330
|
+
/ and illegal operation to open objects. This option must be 0 when FF_FS_READONLY
|
|
331
|
+
/ is 1.
|
|
332
|
+
/
|
|
333
|
+
/ 0: Disable file lock function. To avoid volume corruption, application program
|
|
334
|
+
/ should avoid illegal open, remove and rename to the open objects.
|
|
335
|
+
/ >0: Enable file lock function. The value defines how many files/sub-directories
|
|
336
|
+
/ can be opened simultaneously under file lock control. Note that the file
|
|
337
|
+
/ lock control is independent of re-entrancy. */
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
#define FF_FS_REENTRANT 1
|
|
341
|
+
#define FF_FS_TIMEOUT (CONFIG_FATFS_TIMEOUT_MS / portTICK_PERIOD_MS)
|
|
342
|
+
/* The option FF_FS_REENTRANT switches the re-entrancy (thread safe) of the FatFs
|
|
343
|
+
/ module itself. Note that regardless of this option, file access to different
|
|
344
|
+
/ volume is always re-entrant and volume control functions, f_mount(), f_mkfs()
|
|
345
|
+
/ and f_fdisk() function, are always not re-entrant. Only file/directory access
|
|
346
|
+
/ to the same volume is under control of this featuer.
|
|
347
|
+
/
|
|
348
|
+
/ 0: Disable re-entrancy. FF_FS_TIMEOUT have no effect.
|
|
349
|
+
/ 1: Enable re-entrancy. Also user provided synchronization handlers,
|
|
350
|
+
/ ff_mutex_create(), ff_mutex_delete(), ff_mutex_take() and ff_mutex_give()
|
|
351
|
+
/ function, must be added to the project. Samples are available in ffsystem.c.
|
|
352
|
+
/
|
|
353
|
+
/ The FF_FS_TIMEOUT defines timeout period in unit of O/S time tick.
|
|
354
|
+
*/
|
|
355
|
+
|
|
356
|
+
#define FF_USE_DYN_BUFFER CONFIG_FATFS_USE_DYN_BUFFERS
|
|
357
|
+
/* The option FF_USE_DYN_BUFFER controls source of size used for buffers in the FS and FIL objects.
|
|
358
|
+
/
|
|
359
|
+
/ 0: Disable dynamic buffer size and use static size buffers defined by FF_MAX_SS.
|
|
360
|
+
/ 1: Enable dynamic buffer size and use ff_memmalloc() to allocate buffers.
|
|
361
|
+
*/
|
|
362
|
+
|
|
363
|
+
#include <sys/param.h>
|
|
364
|
+
#include "freertos/FreeRTOS.h"
|
|
365
|
+
#include "freertos/semphr.h"
|
|
366
|
+
|
|
367
|
+
/* Some memory allocation functions are declared here in addition to ff.h, so that
|
|
368
|
+
they can be used also by external code when LFN feature is disabled.
|
|
369
|
+
*/
|
|
370
|
+
void* ff_memalloc (unsigned msize);
|
|
371
|
+
void ff_memfree(void*);
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
/*--- End of configuration options ---*/
|
|
375
|
+
|
|
376
|
+
/* Redefine names of disk IO functions to prevent name collisions */
|
|
377
|
+
#define disk_initialize ff_disk_initialize
|
|
378
|
+
#define disk_status ff_disk_status
|
|
379
|
+
#define disk_read ff_disk_read
|
|
380
|
+
#define disk_write ff_disk_write
|
|
381
|
+
#define disk_ioctl ff_disk_ioctl
|
|
382
|
+
|
|
383
|
+
#endif /* _FFCONF_DEFINED */
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
#include "i2c.h"
|
|
2
|
+
|
|
3
|
+
#include "board.h"
|
|
4
|
+
|
|
5
|
+
#include "driver/gpio.h"
|
|
6
|
+
#include "driver/i2c_master.h"
|
|
7
|
+
#include "esp_err.h"
|
|
8
|
+
#include "esp_log.h"
|
|
9
|
+
|
|
10
|
+
namespace {
|
|
11
|
+
|
|
12
|
+
constexpr gpio_num_t kSdaPin = gea::platform::board::i2c.sda;
|
|
13
|
+
constexpr gpio_num_t kSclPin = gea::platform::board::i2c.scl;
|
|
14
|
+
constexpr const char *TAG = "i2c";
|
|
15
|
+
|
|
16
|
+
i2c_master_bus_handle_t primary_bus = nullptr;
|
|
17
|
+
|
|
18
|
+
} // namespace
|
|
19
|
+
|
|
20
|
+
gea::platform::i2c::Bus gea::platform::i2c::Bus::primary() {
|
|
21
|
+
if (primary_bus) return Bus(primary_bus);
|
|
22
|
+
|
|
23
|
+
i2c_master_bus_config_t bus_cfg = {};
|
|
24
|
+
bus_cfg.i2c_port = I2C_NUM_1;
|
|
25
|
+
bus_cfg.sda_io_num = kSdaPin;
|
|
26
|
+
bus_cfg.scl_io_num = kSclPin;
|
|
27
|
+
bus_cfg.clk_source = I2C_CLK_SRC_DEFAULT;
|
|
28
|
+
bus_cfg.flags.enable_internal_pullup = true;
|
|
29
|
+
|
|
30
|
+
const esp_err_t err = i2c_new_master_bus(&bus_cfg, &primary_bus);
|
|
31
|
+
if (err != ESP_OK) {
|
|
32
|
+
ESP_LOGE(TAG, "I2C bus init failed: %s", esp_err_to_name(err));
|
|
33
|
+
primary_bus = nullptr;
|
|
34
|
+
return Bus(nullptr);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
ESP_LOGI(TAG, "I2C bus ready (SDA=%d, SCL=%d)", static_cast<int>(kSdaPin), static_cast<int>(kSclPin));
|
|
38
|
+
return Bus(primary_bus);
|
|
39
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
dependencies:
|
|
2
|
+
esp_video:
|
|
3
|
+
version: '~2.0'
|
|
4
|
+
public: true
|
|
5
|
+
espressif/esp_codec_dev: '~1.5'
|
|
6
|
+
espressif/esp_websocket_client: '^1.4'
|
|
7
|
+
espressif/esp_peer: '^1.4'
|
|
8
|
+
# ESP32-P4 has no native WiFi MAC: WiFi runs on the onboard ESP32-C6
|
|
9
|
+
# co-processor over SDIO via esp_hosted, with esp_wifi_remote providing the
|
|
10
|
+
# standard esp_wifi API on the host. Gated to esp32p4 so other targets keep
|
|
11
|
+
# their native radio. (Canonical versions per IDF 6.0.1 wifi/station example.)
|
|
12
|
+
espressif/esp_wifi_remote:
|
|
13
|
+
version: '>=0.10,<2.0'
|
|
14
|
+
rules:
|
|
15
|
+
- if: 'target in [esp32p4]'
|
|
16
|
+
espressif/esp_hosted:
|
|
17
|
+
version: '~2'
|
|
18
|
+
rules:
|
|
19
|
+
- if: 'target in [esp32p4]'
|
|
20
|
+
idf:
|
|
21
|
+
version: '>=5.5'
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
|
|
3
|
+
#include "driver/gpio.h"
|
|
4
|
+
#include "driver/i2s_types.h"
|
|
5
|
+
|
|
6
|
+
namespace gea::platform::board {
|
|
7
|
+
|
|
8
|
+
struct I2cBusConfig {
|
|
9
|
+
gpio_num_t sda;
|
|
10
|
+
gpio_num_t scl;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
struct Tab5DisplayConfig {
|
|
14
|
+
gpio_num_t reset;
|
|
15
|
+
gpio_num_t backlight;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
struct Tab5TouchConfig {
|
|
19
|
+
gpio_num_t reset;
|
|
20
|
+
gpio_num_t interrupt;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
struct Tab5AudioConfig {
|
|
24
|
+
int i2sPort;
|
|
25
|
+
gpio_num_t mclk;
|
|
26
|
+
gpio_num_t bclk;
|
|
27
|
+
gpio_num_t ws;
|
|
28
|
+
gpio_num_t dout;
|
|
29
|
+
gpio_num_t din;
|
|
30
|
+
gpio_num_t powerAmplifier;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
struct Tab5CameraConfig {
|
|
34
|
+
gpio_num_t mclk;
|
|
35
|
+
gpio_num_t sda;
|
|
36
|
+
gpio_num_t scl;
|
|
37
|
+
gpio_num_t reset;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
struct Tab5MicroSdConfig {
|
|
41
|
+
gpio_num_t clk;
|
|
42
|
+
gpio_num_t cmd;
|
|
43
|
+
gpio_num_t dat0;
|
|
44
|
+
gpio_num_t dat1;
|
|
45
|
+
gpio_num_t dat2;
|
|
46
|
+
gpio_num_t dat3;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
struct Tab5Rs485Config {
|
|
50
|
+
gpio_num_t rx;
|
|
51
|
+
gpio_num_t tx;
|
|
52
|
+
gpio_num_t direction;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
class Esp32P4M5StackTab5 {
|
|
56
|
+
public:
|
|
57
|
+
static constexpr I2cBusConfig i2c{
|
|
58
|
+
.sda = GPIO_NUM_31,
|
|
59
|
+
.scl = GPIO_NUM_32,
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
static constexpr Tab5DisplayConfig display{
|
|
63
|
+
.reset = GPIO_NUM_NC,
|
|
64
|
+
.backlight = GPIO_NUM_22,
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
static constexpr Tab5TouchConfig touch{
|
|
68
|
+
.reset = GPIO_NUM_NC,
|
|
69
|
+
.interrupt = GPIO_NUM_23,
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
static constexpr Tab5AudioConfig audio{
|
|
73
|
+
.i2sPort = I2S_NUM_AUTO,
|
|
74
|
+
.mclk = GPIO_NUM_30,
|
|
75
|
+
.bclk = GPIO_NUM_27,
|
|
76
|
+
.ws = GPIO_NUM_29,
|
|
77
|
+
.dout = GPIO_NUM_26,
|
|
78
|
+
.din = GPIO_NUM_28,
|
|
79
|
+
.powerAmplifier = GPIO_NUM_NC,
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
static constexpr Tab5CameraConfig camera{
|
|
83
|
+
.mclk = GPIO_NUM_36,
|
|
84
|
+
.sda = GPIO_NUM_31,
|
|
85
|
+
.scl = GPIO_NUM_32,
|
|
86
|
+
.reset = GPIO_NUM_NC,
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
static constexpr Tab5MicroSdConfig microSd{
|
|
90
|
+
.clk = GPIO_NUM_43,
|
|
91
|
+
.cmd = GPIO_NUM_44,
|
|
92
|
+
.dat0 = GPIO_NUM_39,
|
|
93
|
+
.dat1 = GPIO_NUM_40,
|
|
94
|
+
.dat2 = GPIO_NUM_41,
|
|
95
|
+
.dat3 = GPIO_NUM_42,
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
static constexpr Tab5Rs485Config rs485{
|
|
99
|
+
.rx = GPIO_NUM_21,
|
|
100
|
+
.tx = GPIO_NUM_20,
|
|
101
|
+
.direction = GPIO_NUM_34,
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
static constexpr const char *mainSoc = "ESP32-P4NRW32";
|
|
105
|
+
static constexpr const char *wirelessSoc = "ESP32-C6-MINI-1U";
|
|
106
|
+
static constexpr const char *displayController = "ST7123/ST7121 or ILI9881C";
|
|
107
|
+
static constexpr const char *touchController = "ST7123/ST7121 integrated touch or GT911";
|
|
108
|
+
static constexpr const char *cameraSensor = "SC2356";
|
|
109
|
+
static constexpr const char *audioCodec = "ES8388";
|
|
110
|
+
static constexpr const char *micCodec = "ES7210";
|
|
111
|
+
static constexpr const char *speakerAmplifier = "NS4150B";
|
|
112
|
+
static constexpr const char *imu = "BMI270";
|
|
113
|
+
static constexpr const char *rtc = "RX8130CE";
|
|
114
|
+
static constexpr const char *powerMonitor = "INA226";
|
|
115
|
+
static constexpr const char *charger = "IP2326";
|
|
116
|
+
static constexpr const char *ioExpander = "PI4IOE5V6408";
|
|
117
|
+
static constexpr const char *rs485Transceiver = "SIT3088";
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
using Board = Esp32P4M5StackTab5;
|
|
121
|
+
|
|
122
|
+
inline constexpr auto i2c = Board::i2c;
|
|
123
|
+
inline constexpr auto display = Board::display;
|
|
124
|
+
inline constexpr auto touch = Board::touch;
|
|
125
|
+
inline constexpr auto audio = Board::audio;
|
|
126
|
+
inline constexpr auto camera = Board::camera;
|
|
127
|
+
inline constexpr auto microSd = Board::microSd;
|
|
128
|
+
inline constexpr auto rs485 = Board::rs485;
|
|
129
|
+
|
|
130
|
+
} // namespace gea::platform::board
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
|
|
3
|
+
#include <cstdint>
|
|
4
|
+
|
|
5
|
+
#include "esp_lcd_mipi_dsi.h"
|
|
6
|
+
#include "esp_lcd_panel_io.h"
|
|
7
|
+
#include "esp_lcd_panel_ops.h"
|
|
8
|
+
|
|
9
|
+
namespace gea::platform::tab5 {
|
|
10
|
+
|
|
11
|
+
enum class DisplayController {
|
|
12
|
+
Unknown,
|
|
13
|
+
St7123,
|
|
14
|
+
Ili9881c,
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
struct LcdPanel {
|
|
18
|
+
esp_lcd_dsi_bus_handle_t dsiBus = nullptr;
|
|
19
|
+
esp_lcd_panel_io_handle_t io = nullptr;
|
|
20
|
+
esp_lcd_panel_handle_t panel = nullptr;
|
|
21
|
+
DisplayController controller = DisplayController::Unknown;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
struct TouchSample {
|
|
25
|
+
bool touching = false;
|
|
26
|
+
std::uint8_t points = 0;
|
|
27
|
+
std::uint16_t x = 0;
|
|
28
|
+
std::uint16_t y = 0;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
struct BatteryStatus {
|
|
32
|
+
float voltageV = 0.0f;
|
|
33
|
+
float currentMa = 0.0f;
|
|
34
|
+
float powerMw = 0.0f;
|
|
35
|
+
float chargePercent = 0.0f;
|
|
36
|
+
bool isCharging = false;
|
|
37
|
+
bool isPresent = false;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
struct Vector3 {
|
|
41
|
+
double x = 0.0;
|
|
42
|
+
double y = 0.0;
|
|
43
|
+
double z = 0.0;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
const char *displayControllerName(DisplayController controller);
|
|
47
|
+
DisplayController detectDisplayController();
|
|
48
|
+
|
|
49
|
+
bool initIoExpanders();
|
|
50
|
+
bool setCameraEnabled(bool enabled);
|
|
51
|
+
bool setSpeakerEnabled(bool enabled);
|
|
52
|
+
bool setChargingEnabled(bool enabled);
|
|
53
|
+
|
|
54
|
+
bool initDisplayPanel(int framebufferCount, LcdPanel *outPanel);
|
|
55
|
+
|
|
56
|
+
bool initTouch();
|
|
57
|
+
bool waitForTouchReport(int timeoutMs);
|
|
58
|
+
bool readTouch(TouchSample *sample);
|
|
59
|
+
|
|
60
|
+
bool initPowerMonitor();
|
|
61
|
+
BatteryStatus readBatteryStatus();
|
|
62
|
+
|
|
63
|
+
bool initImu();
|
|
64
|
+
Vector3 readAccelerationG();
|
|
65
|
+
Vector3 readGyroscopeDps();
|
|
66
|
+
bool readImuMotion(Vector3 *accelerationG, Vector3 *gyroscopeDps);
|
|
67
|
+
|
|
68
|
+
} // namespace gea::platform::tab5
|