@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.
Files changed (348) hide show
  1. package/LICENSE +674 -0
  2. package/README.md +83 -0
  3. package/package.json +50 -0
  4. package/targets/cmake/geatsc-generated-archive-build.mjs +614 -0
  5. package/targets/cmake/geatsc_generated_archive.cmake +116 -0
  6. package/targets/cmake/geatsc_generated_archive_build.cmake +50 -0
  7. package/targets/esp32/app_project.cmake +33 -0
  8. package/targets/esp32/apps/app_manager.cpp +188 -0
  9. package/targets/esp32/apps/app_manager.h +10 -0
  10. package/targets/esp32/chip_bindings/README.md +58 -0
  11. package/targets/esp32/chip_bindings/audio/es8311.cpp +556 -0
  12. package/targets/esp32/chip_bindings/displays/co5300.cpp +510 -0
  13. package/targets/esp32/chip_bindings/displays/co5300.h +47 -0
  14. package/targets/esp32/chip_bindings/displays/co5300_async_stream.inc +79 -0
  15. package/targets/esp32/chip_bindings/displays/qspi_panel.h +65 -0
  16. package/targets/esp32/chip_bindings/displays/sh8601.cpp +583 -0
  17. package/targets/esp32/chip_bindings/displays/sh8601.h +36 -0
  18. package/targets/esp32/chip_bindings/gps/lc76g.cpp +296 -0
  19. package/targets/esp32/chip_bindings/gps/lc76g.h +7 -0
  20. package/targets/esp32/chip_bindings/imu/bmi270.cpp +299 -0
  21. package/targets/esp32/chip_bindings/imu/bmi270_config.inl +439 -0
  22. package/targets/esp32/chip_bindings/imu/qmi8658.cpp +213 -0
  23. package/targets/esp32/chip_bindings/power/axp2101.cpp +185 -0
  24. package/targets/esp32/chip_bindings/touch/cst9217.cpp +229 -0
  25. package/targets/esp32/chip_bindings/touch/cst9217_controller.h +78 -0
  26. package/targets/esp32/chip_bindings/touch/ft3168.cpp +340 -0
  27. package/targets/esp32/chip_bindings/touch/ft3168_controller.h +103 -0
  28. package/targets/esp32/chip_bindings/touch/ft6336.cpp +310 -0
  29. package/targets/esp32/chip_bindings/touch/ft6336_controller.h +90 -0
  30. package/targets/esp32/components/gea_framework/CMakeLists.txt +62 -0
  31. package/targets/esp32/connectivity/ble_hid.cpp +2916 -0
  32. package/targets/esp32/connectivity/ble_hid.h +8 -0
  33. package/targets/esp32/connectivity/diagnostics_transport.cpp +523 -0
  34. package/targets/esp32/connectivity/diagnostics_transport_offline.cpp +108 -0
  35. package/targets/esp32/connectivity/wifi.cpp +615 -0
  36. package/targets/esp32/connectivity/wifi_debug_offline.cpp +37 -0
  37. package/targets/esp32/connectivity/wifi_task_stack.h +119 -0
  38. package/targets/esp32/display.cpp +6010 -0
  39. package/targets/esp32/display_headless.cpp +468 -0
  40. package/targets/esp32/gea/platform_random.h +11 -0
  41. package/targets/esp32/gea_framework.cmake +382 -0
  42. package/targets/esp32/gpio.cpp +229 -0
  43. package/targets/esp32/host_sources.cmake +35 -0
  44. package/targets/esp32/imu_absent.cpp +36 -0
  45. package/targets/esp32/ldfragments/gea_ui_state_external.lf +35 -0
  46. package/targets/esp32/memory_config.h +64 -0
  47. package/targets/esp32/power_absent.cpp +22 -0
  48. package/targets/esp32/sdk-patches/0001-esp_ptr_dma_capable-accept-PSRAM.patch +70 -0
  49. package/targets/esp32/sdk-patches/0002-gdma-access_ext_mem-spi_master.patch +59 -0
  50. package/targets/esp32/sdk-patches/README.md +127 -0
  51. package/targets/esp32/services/app_runner.cpp +248 -0
  52. package/targets/esp32/services/app_state.cpp +56 -0
  53. package/targets/esp32/services/audio_runtime_stub.cpp +86 -0
  54. package/targets/esp32/services/battery_service.cpp +31 -0
  55. package/targets/esp32/services/device_control.cpp +1896 -0
  56. package/targets/esp32/services/device_control.h +31 -0
  57. package/targets/esp32/services/frame_scheduler.cpp +1571 -0
  58. package/targets/esp32/services/heap.cpp +129 -0
  59. package/targets/esp32/services/memory.cpp +103 -0
  60. package/targets/esp32/services/ota.cpp +840 -0
  61. package/targets/esp32/services/ota_image.cpp +162 -0
  62. package/targets/esp32/services/ota_image.h +16 -0
  63. package/targets/esp32/services/storage_service.cpp +159 -0
  64. package/targets/esp32/touch_absent.cpp +44 -0
  65. package/targets/esp32-m5stack-m5paper/CMakeLists.txt +10 -0
  66. package/targets/esp32-m5stack-m5paper/README.md +55 -0
  67. package/targets/esp32-m5stack-m5paper/dependencies.lock +76 -0
  68. package/targets/esp32-m5stack-m5paper/main/CMakeLists.txt +46 -0
  69. package/targets/esp32-m5stack-m5paper/main/Kconfig.projbuild +10 -0
  70. package/targets/esp32-m5stack-m5paper/main/app_main.cpp +114 -0
  71. package/targets/esp32-m5stack-m5paper/main/audio_stub.cpp +27 -0
  72. package/targets/esp32-m5stack-m5paper/main/buttons.cpp +111 -0
  73. package/targets/esp32-m5stack-m5paper/main/display.cpp +1074 -0
  74. package/targets/esp32-m5stack-m5paper/main/i2c.cpp +36 -0
  75. package/targets/esp32-m5stack-m5paper/main/idf_component.yml +7 -0
  76. package/targets/esp32-m5stack-m5paper/main/imu_stub.cpp +20 -0
  77. package/targets/esp32-m5stack-m5paper/main/include/board.h +100 -0
  78. package/targets/esp32-m5stack-m5paper/main/include/buttons.h +8 -0
  79. package/targets/esp32-m5stack-m5paper/main/launcher_button.cpp +82 -0
  80. package/targets/esp32-m5stack-m5paper/main/m5paper_psram.lf +20 -0
  81. package/targets/esp32-m5stack-m5paper/main/power.cpp +73 -0
  82. package/targets/esp32-m5stack-m5paper/main/sdcard_mount.cpp +82 -0
  83. package/targets/esp32-m5stack-m5paper/main/touch.cpp +279 -0
  84. package/targets/esp32-m5stack-m5paper/partitions.csv +9 -0
  85. package/targets/esp32-m5stack-m5paper/sdkconfig.defaults +84 -0
  86. package/targets/esp32-p4-m5stack-tab5/CMakeLists.txt +10 -0
  87. package/targets/esp32-p4-m5stack-tab5/dependencies.lock +276 -0
  88. package/targets/esp32-p4-m5stack-tab5/main/CMakeLists.txt +586 -0
  89. package/targets/esp32-p4-m5stack-tab5/main/Kconfig.projbuild +12 -0
  90. package/targets/esp32-p4-m5stack-tab5/main/app_main.cpp +177 -0
  91. package/targets/esp32-p4-m5stack-tab5/main/camera.cpp +2025 -0
  92. package/targets/esp32-p4-m5stack-tab5/main/display.cpp +4033 -0
  93. package/targets/esp32-p4-m5stack-tab5/main/fatfs_ffconf.h +383 -0
  94. package/targets/esp32-p4-m5stack-tab5/main/i2c.cpp +39 -0
  95. package/targets/esp32-p4-m5stack-tab5/main/idf_component.yml +21 -0
  96. package/targets/esp32-p4-m5stack-tab5/main/include/board.h +130 -0
  97. package/targets/esp32-p4-m5stack-tab5/main/include/tab5_drivers.h +68 -0
  98. package/targets/esp32-p4-m5stack-tab5/main/include/wifi_config.h.example +5 -0
  99. package/targets/esp32-p4-m5stack-tab5/main/launcher_button.cpp +188 -0
  100. package/targets/esp32-p4-m5stack-tab5/main/power.cpp +22 -0
  101. package/targets/esp32-p4-m5stack-tab5/main/sdcard_mount.cpp +125 -0
  102. package/targets/esp32-p4-m5stack-tab5/main/tab5_audio.cpp +345 -0
  103. package/targets/esp32-p4-m5stack-tab5/main/tab5_drivers.cpp +871 -0
  104. package/targets/esp32-p4-m5stack-tab5/main/tab5_imu.cpp +246 -0
  105. package/targets/esp32-p4-m5stack-tab5/main/touch.cpp +206 -0
  106. package/targets/esp32-p4-m5stack-tab5/partitions.csv +12 -0
  107. package/targets/esp32-p4-m5stack-tab5/sdkconfig.defaults +128 -0
  108. package/targets/esp32-p4-waveshare-touch-lcd-3.5/CMakeLists.txt +19 -0
  109. package/targets/esp32-p4-waveshare-touch-lcd-3.5/component-patches/0001-esp_video-csi-raw-passthrough-p4-rev-lt-v3.patch +28 -0
  110. package/targets/esp32-p4-waveshare-touch-lcd-3.5/component-patches/README.md +45 -0
  111. package/targets/esp32-p4-waveshare-touch-lcd-3.5/component-patches/apply.sh +37 -0
  112. package/targets/esp32-p4-waveshare-touch-lcd-3.5/dependencies.lock +196 -0
  113. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/CMakeLists.txt +562 -0
  114. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/Kconfig.projbuild +12 -0
  115. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/app_main.cpp +166 -0
  116. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/camera.cpp +2105 -0
  117. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/display.cpp +1730 -0
  118. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/fatfs_ffconf.h +383 -0
  119. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/i2c.cpp +39 -0
  120. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/idf_component.yml +11 -0
  121. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/include/board.h +87 -0
  122. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/include/panel_native.h +59 -0
  123. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/include/wifi_config.h.example +5 -0
  124. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/launcher_button.cpp +191 -0
  125. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/power.cpp +15 -0
  126. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/touch.cpp +306 -0
  127. package/targets/esp32-p4-waveshare-touch-lcd-3.5/partitions.csv +13 -0
  128. package/targets/esp32-p4-waveshare-touch-lcd-3.5/patches/README.md +22 -0
  129. package/targets/esp32-p4-waveshare-touch-lcd-3.5/patches/espressif__esp_video-csi-bypass.patch +28 -0
  130. package/targets/esp32-p4-waveshare-touch-lcd-3.5/sdkconfig.defaults +109 -0
  131. package/targets/esp32-p4-waveshare-touch-lcd-3.5/tools/README-camera-capture.md +84 -0
  132. package/targets/esp32-p4-waveshare-touch-lcd-3.5/tools/capture-camera.py +369 -0
  133. package/targets/esp32-p4-waveshare-touch-lcd-7/CMakeLists.txt +10 -0
  134. package/targets/esp32-p4-waveshare-touch-lcd-7/dependencies.lock +258 -0
  135. package/targets/esp32-p4-waveshare-touch-lcd-7/main/CMakeLists.txt +577 -0
  136. package/targets/esp32-p4-waveshare-touch-lcd-7/main/Kconfig.projbuild +12 -0
  137. package/targets/esp32-p4-waveshare-touch-lcd-7/main/app_main.cpp +177 -0
  138. package/targets/esp32-p4-waveshare-touch-lcd-7/main/camera.cpp +1935 -0
  139. package/targets/esp32-p4-waveshare-touch-lcd-7/main/display.cpp +2832 -0
  140. package/targets/esp32-p4-waveshare-touch-lcd-7/main/fatfs_ffconf.h +383 -0
  141. package/targets/esp32-p4-waveshare-touch-lcd-7/main/i2c.cpp +39 -0
  142. package/targets/esp32-p4-waveshare-touch-lcd-7/main/idf_component.yml +23 -0
  143. package/targets/esp32-p4-waveshare-touch-lcd-7/main/include/board.h +68 -0
  144. package/targets/esp32-p4-waveshare-touch-lcd-7/main/include/wifi_config.h.example +5 -0
  145. package/targets/esp32-p4-waveshare-touch-lcd-7/main/launcher_button.cpp +191 -0
  146. package/targets/esp32-p4-waveshare-touch-lcd-7/main/power.cpp +15 -0
  147. package/targets/esp32-p4-waveshare-touch-lcd-7/main/sdcard_mount.cpp +125 -0
  148. package/targets/esp32-p4-waveshare-touch-lcd-7/main/touch.cpp +332 -0
  149. package/targets/esp32-p4-waveshare-touch-lcd-7/partitions.csv +12 -0
  150. package/targets/esp32-p4-waveshare-touch-lcd-7/sdkconfig.defaults +122 -0
  151. package/targets/esp32-p4-waveshare-touch-lcd-7/tools/README-camera-capture.md +84 -0
  152. package/targets/esp32-p4-waveshare-touch-lcd-7/tools/capture-camera.py +369 -0
  153. package/targets/esp32-s3-devkit-n16r8.json +31 -0
  154. package/targets/esp32-s3-elecrow-rotary-2.1/CMakeLists.txt +10 -0
  155. package/targets/esp32-s3-elecrow-rotary-2.1/dependencies.lock +40 -0
  156. package/targets/esp32-s3-elecrow-rotary-2.1/main/CMakeLists.txt +549 -0
  157. package/targets/esp32-s3-elecrow-rotary-2.1/main/Kconfig.projbuild +12 -0
  158. package/targets/esp32-s3-elecrow-rotary-2.1/main/app_main.cpp +187 -0
  159. package/targets/esp32-s3-elecrow-rotary-2.1/main/display_rgb.cpp +1338 -0
  160. package/targets/esp32-s3-elecrow-rotary-2.1/main/i2c.cpp +39 -0
  161. package/targets/esp32-s3-elecrow-rotary-2.1/main/idf_component.yml +5 -0
  162. package/targets/esp32-s3-elecrow-rotary-2.1/main/include/board.h +142 -0
  163. package/targets/esp32-s3-elecrow-rotary-2.1/main/include/pcf8574.h +16 -0
  164. package/targets/esp32-s3-elecrow-rotary-2.1/main/include/rotary_encoder.h +7 -0
  165. package/targets/esp32-s3-elecrow-rotary-2.1/main/launcher_button.cpp +191 -0
  166. package/targets/esp32-s3-elecrow-rotary-2.1/main/pcf8574.cpp +86 -0
  167. package/targets/esp32-s3-elecrow-rotary-2.1/main/platform_stubs.cpp +47 -0
  168. package/targets/esp32-s3-elecrow-rotary-2.1/main/rotary_encoder.cpp +135 -0
  169. package/targets/esp32-s3-elecrow-rotary-2.1/main/touch.cpp +250 -0
  170. package/targets/esp32-s3-elecrow-rotary-2.1/partitions.csv +8 -0
  171. package/targets/esp32-s3-elecrow-rotary-2.1/sdkconfig.defaults +116 -0
  172. package/targets/esp32-s3-epaper-1.54/CMakeLists.txt +10 -0
  173. package/targets/esp32-s3-epaper-1.54/dependencies.lock +76 -0
  174. package/targets/esp32-s3-epaper-1.54/main/CMakeLists.txt +691 -0
  175. package/targets/esp32-s3-epaper-1.54/main/Kconfig.projbuild +12 -0
  176. package/targets/esp32-s3-epaper-1.54/main/app_main.cpp +181 -0
  177. package/targets/esp32-s3-epaper-1.54/main/buttons.cpp +144 -0
  178. package/targets/esp32-s3-epaper-1.54/main/display.cpp +1281 -0
  179. package/targets/esp32-s3-epaper-1.54/main/fatfs_ffconf.h +377 -0
  180. package/targets/esp32-s3-epaper-1.54/main/i2c.cpp +39 -0
  181. package/targets/esp32-s3-epaper-1.54/main/idf_component.yml +7 -0
  182. package/targets/esp32-s3-epaper-1.54/main/imu_stub.cpp +21 -0
  183. package/targets/esp32-s3-epaper-1.54/main/include/board.h +119 -0
  184. package/targets/esp32-s3-epaper-1.54/main/include/buttons.h +9 -0
  185. package/targets/esp32-s3-epaper-1.54/main/include/wifi_config.h.example +5 -0
  186. package/targets/esp32-s3-epaper-1.54/main/launcher_button.cpp +191 -0
  187. package/targets/esp32-s3-epaper-1.54/main/power.cpp +15 -0
  188. package/targets/esp32-s3-epaper-1.54/main/sdcard_mount.cpp +89 -0
  189. package/targets/esp32-s3-epaper-1.54/main/touch.cpp +299 -0
  190. package/targets/esp32-s3-epaper-1.54/partitions.csv +8 -0
  191. package/targets/esp32-s3-epaper-1.54/sdkconfig.defaults +217 -0
  192. package/targets/esp32-s3-lilygo-t-display-s3-long/CMakeLists.txt +10 -0
  193. package/targets/esp32-s3-lilygo-t-display-s3-long/README.md +29 -0
  194. package/targets/esp32-s3-lilygo-t-display-s3-long/dependencies.lock +116 -0
  195. package/targets/esp32-s3-lilygo-t-display-s3-long/main/CMakeLists.txt +90 -0
  196. package/targets/esp32-s3-lilygo-t-display-s3-long/main/idf_component.yml +7 -0
  197. package/targets/esp32-s3-lilygo-t-display-s3-long/main/include/board.h +61 -0
  198. package/targets/esp32-s3-lilygo-t-display-s3-long/main/touch.cpp +299 -0
  199. package/targets/esp32-s3-lilygo-t-display-s3-long/partitions.csv +7 -0
  200. package/targets/esp32-s3-lilygo-t-display-s3-long/sdkconfig.defaults +50 -0
  201. package/targets/esp32-s3-lilygo-t5-epaper-4.7/CMakeLists.txt +12 -0
  202. package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/CMakeLists.txt +17 -0
  203. package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/ed047tc1.c +269 -0
  204. package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/ed047tc1.h +142 -0
  205. package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/epd_driver.c +1114 -0
  206. package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/epd_driver.h +410 -0
  207. package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/gea_epd.c +989 -0
  208. package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/i2s_data_bus.c +489 -0
  209. package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/i2s_data_bus.h +104 -0
  210. package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/rmt_pulse.c +136 -0
  211. package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/rmt_pulse.h +78 -0
  212. package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/utilities.h +49 -0
  213. package/targets/esp32-s3-lilygo-t5-epaper-4.7/dependencies.lock +35 -0
  214. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/CMakeLists.txt +30 -0
  215. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/Kconfig.projbuild +10 -0
  216. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/app_main.cpp +95 -0
  217. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/audio_stub.cpp +27 -0
  218. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/buttons.cpp +40 -0
  219. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/display.cpp +627 -0
  220. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/i2c.cpp +36 -0
  221. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/idf_component.yml +4 -0
  222. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/imu_stub.cpp +20 -0
  223. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/include/board.h +85 -0
  224. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/include/buttons.h +8 -0
  225. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/launcher_button.cpp +82 -0
  226. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/power.cpp +36 -0
  227. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/sdcard_mount.cpp +90 -0
  228. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/touch.cpp +293 -0
  229. package/targets/esp32-s3-lilygo-t5-epaper-4.7/partitions.csv +9 -0
  230. package/targets/esp32-s3-lilygo-t5-epaper-4.7/sdkconfig.defaults +217 -0
  231. package/targets/esp32-s3-m5stack-papers3/CMakeLists.txt +13 -0
  232. package/targets/esp32-s3-m5stack-papers3/components/papers3_epd/CMakeLists.txt +5 -0
  233. package/targets/esp32-s3-m5stack-papers3/components/papers3_epd/include/papers3_epd.h +74 -0
  234. package/targets/esp32-s3-m5stack-papers3/components/papers3_epd/papers3_epd.c +671 -0
  235. package/targets/esp32-s3-m5stack-papers3/dependencies.lock +76 -0
  236. package/targets/esp32-s3-m5stack-papers3/main/CMakeLists.txt +64 -0
  237. package/targets/esp32-s3-m5stack-papers3/main/Kconfig.projbuild +10 -0
  238. package/targets/esp32-s3-m5stack-papers3/main/app_main.cpp +96 -0
  239. package/targets/esp32-s3-m5stack-papers3/main/audio_stub.cpp +27 -0
  240. package/targets/esp32-s3-m5stack-papers3/main/buttons.cpp +49 -0
  241. package/targets/esp32-s3-m5stack-papers3/main/display.cpp +706 -0
  242. package/targets/esp32-s3-m5stack-papers3/main/i2c.cpp +36 -0
  243. package/targets/esp32-s3-m5stack-papers3/main/idf_component.yml +14 -0
  244. package/targets/esp32-s3-m5stack-papers3/main/imu.cpp +351 -0
  245. package/targets/esp32-s3-m5stack-papers3/main/include/board.h +101 -0
  246. package/targets/esp32-s3-m5stack-papers3/main/include/buttons.h +8 -0
  247. package/targets/esp32-s3-m5stack-papers3/main/launcher_button.cpp +96 -0
  248. package/targets/esp32-s3-m5stack-papers3/main/power.cpp +102 -0
  249. package/targets/esp32-s3-m5stack-papers3/main/sdcard_mount.cpp +88 -0
  250. package/targets/esp32-s3-m5stack-papers3/main/touch.cpp +287 -0
  251. package/targets/esp32-s3-m5stack-papers3/partitions.csv +9 -0
  252. package/targets/esp32-s3-m5stack-papers3/sdkconfig.defaults +232 -0
  253. package/targets/esp32-s3-m5stack-sticks3/CMakeLists.txt +10 -0
  254. package/targets/esp32-s3-m5stack-sticks3/dependencies.lock +51 -0
  255. package/targets/esp32-s3-m5stack-sticks3/main/CMakeLists.txt +51 -0
  256. package/targets/esp32-s3-m5stack-sticks3/main/Kconfig.projbuild +12 -0
  257. package/targets/esp32-s3-m5stack-sticks3/main/app_main.cpp +130 -0
  258. package/targets/esp32-s3-m5stack-sticks3/main/buttons.cpp +101 -0
  259. package/targets/esp32-s3-m5stack-sticks3/main/display.cpp +1391 -0
  260. package/targets/esp32-s3-m5stack-sticks3/main/i2c.cpp +39 -0
  261. package/targets/esp32-s3-m5stack-sticks3/main/idf_component.yml +8 -0
  262. package/targets/esp32-s3-m5stack-sticks3/main/imu_stub.cpp +9 -0
  263. package/targets/esp32-s3-m5stack-sticks3/main/include/board.h +89 -0
  264. package/targets/esp32-s3-m5stack-sticks3/main/include/buttons.h +9 -0
  265. package/targets/esp32-s3-m5stack-sticks3/main/launcher_button.cpp +191 -0
  266. package/targets/esp32-s3-m5stack-sticks3/main/power.cpp +15 -0
  267. package/targets/esp32-s3-m5stack-sticks3/main/sdcard_mount.cpp +8 -0
  268. package/targets/esp32-s3-m5stack-sticks3/main/touch.cpp +65 -0
  269. package/targets/esp32-s3-m5stack-sticks3/partitions.csv +8 -0
  270. package/targets/esp32-s3-m5stack-sticks3/sdkconfig.defaults +130 -0
  271. package/targets/esp32-s3-touch-amoled-1.75/CMakeLists.txt +10 -0
  272. package/targets/esp32-s3-touch-amoled-1.75/dependencies.lock +130 -0
  273. package/targets/esp32-s3-touch-amoled-1.75/main/CMakeLists.txt +589 -0
  274. package/targets/esp32-s3-touch-amoled-1.75/main/Kconfig.projbuild +12 -0
  275. package/targets/esp32-s3-touch-amoled-1.75/main/app_main.cpp +153 -0
  276. package/targets/esp32-s3-touch-amoled-1.75/main/i2c.cpp +39 -0
  277. package/targets/esp32-s3-touch-amoled-1.75/main/idf_component.yml +9 -0
  278. package/targets/esp32-s3-touch-amoled-1.75/main/include/board.h +110 -0
  279. package/targets/esp32-s3-touch-amoled-1.75/main/include/wifi_config.h.example +5 -0
  280. package/targets/esp32-s3-touch-amoled-1.75/main/launcher_button.cpp +191 -0
  281. package/targets/esp32-s3-touch-amoled-1.75/main/touch.cpp +45 -0
  282. package/targets/esp32-s3-touch-amoled-1.75/partitions.csv +8 -0
  283. package/targets/esp32-s3-touch-amoled-1.75/sdkconfig.defaults +179 -0
  284. package/targets/esp32-s3-touch-amoled-1.8/CMakeLists.txt +10 -0
  285. package/targets/esp32-s3-touch-amoled-1.8/dependencies.lock +105 -0
  286. package/targets/esp32-s3-touch-amoled-1.8/main/CMakeLists.txt +768 -0
  287. package/targets/esp32-s3-touch-amoled-1.8/main/Kconfig.projbuild +12 -0
  288. package/targets/esp32-s3-touch-amoled-1.8/main/app_main.cpp +172 -0
  289. package/targets/esp32-s3-touch-amoled-1.8/main/i2c.cpp +39 -0
  290. package/targets/esp32-s3-touch-amoled-1.8/main/idf_component.yml +8 -0
  291. package/targets/esp32-s3-touch-amoled-1.8/main/include/board.h +83 -0
  292. package/targets/esp32-s3-touch-amoled-1.8/main/include/wifi_config.h.example +5 -0
  293. package/targets/esp32-s3-touch-amoled-1.8/main/launcher_button.cpp +191 -0
  294. package/targets/esp32-s3-touch-amoled-1.8/main/touch.cpp +41 -0
  295. package/targets/esp32-s3-touch-amoled-1.8/partitions.csv +8 -0
  296. package/targets/esp32-s3-touch-amoled-1.8/sdkconfig.defaults +179 -0
  297. package/targets/esp32-s3-touch-amoled-2.06/CMakeLists.txt +10 -0
  298. package/targets/esp32-s3-touch-amoled-2.06/dependencies.lock +64 -0
  299. package/targets/esp32-s3-touch-amoled-2.06/main/CMakeLists.txt +1121 -0
  300. package/targets/esp32-s3-touch-amoled-2.06/main/Kconfig.projbuild +12 -0
  301. package/targets/esp32-s3-touch-amoled-2.06/main/app_main.cpp +333 -0
  302. package/targets/esp32-s3-touch-amoled-2.06/main/i2c.cpp +39 -0
  303. package/targets/esp32-s3-touch-amoled-2.06/main/idf_component.yml +27 -0
  304. package/targets/esp32-s3-touch-amoled-2.06/main/include/board.h +114 -0
  305. package/targets/esp32-s3-touch-amoled-2.06/main/include/wifi_config.h.example +5 -0
  306. package/targets/esp32-s3-touch-amoled-2.06/main/launcher_button.cpp +199 -0
  307. package/targets/esp32-s3-touch-amoled-2.06/main/sdcard_mount.cpp +105 -0
  308. package/targets/esp32-s3-touch-amoled-2.06/main/touch.cpp +49 -0
  309. package/targets/esp32-s3-touch-amoled-2.06/partitions.csv +14 -0
  310. package/targets/esp32-s3-touch-amoled-2.06/sdkconfig.defaults +273 -0
  311. package/targets/esp32-s3-touch-amoled-2.41/CMakeLists.txt +10 -0
  312. package/targets/esp32-s3-touch-amoled-2.41/main/CMakeLists.txt +71 -0
  313. package/targets/esp32-s3-touch-amoled-2.41/main/Kconfig.projbuild +12 -0
  314. package/targets/esp32-s3-touch-amoled-2.41/main/idf_component.yml +27 -0
  315. package/targets/esp32-s3-touch-amoled-2.41/main/include/board.h +108 -0
  316. package/targets/esp32-s3-touch-amoled-2.41/main/include/wifi_config.h.example +5 -0
  317. package/targets/esp32-s3-touch-amoled-2.41/main/panel_reset.cpp +82 -0
  318. package/targets/esp32-s3-touch-amoled-2.41/main/touch.cpp +49 -0
  319. package/targets/esp32-s3-touch-amoled-2.41/partitions.csv +8 -0
  320. package/targets/esp32-s3-touch-amoled-2.41/sdkconfig.defaults +273 -0
  321. package/targets/rp2350-tufty-2350/CMakeLists.txt +348 -0
  322. package/targets/rp2350-tufty-2350/README.md +53 -0
  323. package/targets/rp2350-tufty-2350/boards/pimoroni_tufty2350.h +87 -0
  324. package/targets/rp2350-tufty-2350/main/bringup.cpp +187 -0
  325. package/targets/rp2350-tufty-2350/main/include/board.h +124 -0
  326. package/targets/rp2350-tufty-2350/main/rp2350_panel.cpp +428 -0
  327. package/targets/rp2350-tufty-2350/main/rp2350_panel.h +46 -0
  328. package/targets/rp2350-tufty-2350/main/st7789_parallel.pio +7 -0
  329. package/targets/rp2350-waveshare-touch-amoled-2.41/CMakeLists.txt +345 -0
  330. package/targets/rp2350-waveshare-touch-amoled-2.41/README.md +153 -0
  331. package/targets/rp2350-waveshare-touch-amoled-2.41/boards/waveshare_rp2350_touch_amoled_2_41.h +59 -0
  332. package/targets/rp2350-waveshare-touch-amoled-2.41/main/app.cpp +984 -0
  333. package/targets/rp2350-waveshare-touch-amoled-2.41/main/bringup.cpp +222 -0
  334. package/targets/rp2350-waveshare-touch-amoled-2.41/main/include/board.h +138 -0
  335. package/targets/rp2350-waveshare-touch-amoled-2.41/main/rp2350_gea_platform.cpp +2553 -0
  336. package/targets/rp2350-waveshare-touch-amoled-2.41/main/rp2350_gea_platform.h +18 -0
  337. package/targets/rp2350-waveshare-touch-amoled-2.41/main/rp2350_host_fetch_stub.cpp +64 -0
  338. package/targets/rp2350-waveshare-touch-amoled-2.41/main/rp2350_panel.cpp +677 -0
  339. package/targets/rp2350-waveshare-touch-amoled-2.41/main/rp2350_panel.h +48 -0
  340. package/targets/rp2350-waveshare-touch-amoled-2.41/main/vendor/waveshare_psram/rp_pico_alloc.c +354 -0
  341. package/targets/rp2350-waveshare-touch-amoled-2.41/main/vendor/waveshare_psram/rp_pico_alloc.h +56 -0
  342. package/targets/rp2350-waveshare-touch-amoled-2.41/main/vendor/waveshare_psram/tlsf/tlsf.c +1284 -0
  343. package/targets/rp2350-waveshare-touch-amoled-2.41/main/vendor/waveshare_psram/tlsf/tlsf.h +95 -0
  344. package/targets/rp2350-waveshare-touch-amoled-2.41/main/vendor/waveshare_psram/tlsf/tlsf_block_functions.h +123 -0
  345. package/targets/rp2350-waveshare-touch-amoled-2.41/main/vendor/waveshare_psram/tlsf/tlsf_common.h +127 -0
  346. package/targets/rp2350-waveshare-touch-amoled-2.41/tools/rp2350-scroll-bench.py +162 -0
  347. package/targets/rp2350-waveshare-touch-amoled-2.41/tools/rp2350-scroll-parity.py +198 -0
  348. package/targets.json +154 -0
@@ -0,0 +1,116 @@
1
+ function(gea_geatsc_add_generated_archive)
2
+ get_filename_component(
3
+ _GEA_GEATSC_ARCHIVE_BUILDER
4
+ "${CMAKE_CURRENT_FUNCTION_LIST_DIR}/geatsc-generated-archive-build.mjs"
5
+ ABSOLUTE
6
+ )
7
+ set(_options)
8
+ set(_one_value_args
9
+ TARGET
10
+ NAME
11
+ SOURCE_LIST
12
+ OUTPUT
13
+ OBJECT_DIR
14
+ DEPFILE
15
+ CXX_STANDARD
16
+ )
17
+ set(_multi_value_args
18
+ DEPENDS
19
+ COMPILE_DEFINITIONS
20
+ COMPILE_OPTIONS
21
+ )
22
+ cmake_parse_arguments(GEA_GEATSC "${_options}" "${_one_value_args}" "${_multi_value_args}" ${ARGN})
23
+
24
+ if(NOT GEA_GEATSC_TARGET)
25
+ message(FATAL_ERROR "gea_geatsc_add_generated_archive requires TARGET")
26
+ endif()
27
+ if(NOT GEA_GEATSC_SOURCE_LIST)
28
+ message(FATAL_ERROR "gea_geatsc_add_generated_archive requires SOURCE_LIST")
29
+ endif()
30
+ if(NOT GEA_GEATSC_OUTPUT)
31
+ message(FATAL_ERROR "gea_geatsc_add_generated_archive requires OUTPUT")
32
+ endif()
33
+
34
+ if(NOT GEA_GEATSC_NAME)
35
+ set(GEA_GEATSC_NAME "${GEA_GEATSC_TARGET}_geatsc")
36
+ endif()
37
+ if(NOT GEA_GEATSC_OBJECT_DIR)
38
+ set(GEA_GEATSC_OBJECT_DIR "${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/${GEA_GEATSC_NAME}.dir")
39
+ endif()
40
+ if(NOT GEA_GEATSC_DEPFILE)
41
+ set(GEA_GEATSC_DEPFILE "${GEA_GEATSC_OBJECT_DIR}/${GEA_GEATSC_NAME}.d")
42
+ endif()
43
+ if(NOT GEA_GEATSC_CXX_STANDARD)
44
+ if(CMAKE_CXX_STANDARD)
45
+ set(GEA_GEATSC_CXX_STANDARD "${CMAKE_CXX_STANDARD}")
46
+ else()
47
+ set(GEA_GEATSC_CXX_STANDARD 20)
48
+ endif()
49
+ endif()
50
+
51
+ # The target's COMPILE_DEFINITIONS carry duplicates (ESP-IDF propagates
52
+ # mbedtls's `__STDC_WANT_LIB_EXT1__=0` through more than one component
53
+ # interface), and xtensa gcc 15 treats a repeated `-D__STDC_...` as a
54
+ # redefinition even when both spellings agree -- an error under -Werror. The
55
+ # normal compile rules never see this because CMake de-duplicates
56
+ # definitions when it builds a target's own command line; this response
57
+ # file is assembled by hand, so it de-duplicates here.
58
+ # The generated content embeds the target's COMPILE_OPTIONS, which may carry
59
+ # per-language genexes (e.g. $<$<COMPILE_LANGUAGE:C>:...>). That forces
60
+ # file(GENERATE) into per-language evaluation, so the OUTPUT path must vary by
61
+ # $<COMPILE_LANGUAGE> or CMake aborts with "written multiple times with
62
+ # different content". Emit one .rsp per language and consume the CXX variant,
63
+ # since the geatsc-generated archive is compiled as C++.
64
+ set(_flags_file_template "${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/${GEA_GEATSC_NAME}.$<COMPILE_LANGUAGE>.rsp")
65
+ set(_flags_file "${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/${GEA_GEATSC_NAME}.CXX.rsp")
66
+ set(_extra_flags "")
67
+ foreach(_definition IN LISTS GEA_GEATSC_COMPILE_DEFINITIONS)
68
+ list(APPEND _extra_flags "-D${_definition}")
69
+ endforeach()
70
+ foreach(_option IN LISTS GEA_GEATSC_COMPILE_OPTIONS)
71
+ list(APPEND _extra_flags "${_option}")
72
+ endforeach()
73
+ string(REPLACE ";" "\n" _extra_flags_content "${_extra_flags}")
74
+
75
+ set(_config_flags "")
76
+ if(CMAKE_BUILD_TYPE)
77
+ string(TOUPPER "${CMAKE_BUILD_TYPE}" _build_type_upper)
78
+ set(_config_flags "${CMAKE_CXX_FLAGS_${_build_type_upper}}")
79
+ endif()
80
+
81
+ file(GENERATE
82
+ OUTPUT "${_flags_file_template}"
83
+ CONTENT "${CMAKE_CXX_FLAGS}\n${_config_flags}\n-std=gnu++${GEA_GEATSC_CXX_STANDARD}\n$<$<BOOL:$<TARGET_PROPERTY:${GEA_GEATSC_TARGET},INCLUDE_DIRECTORIES>>:-I$<JOIN:$<TARGET_PROPERTY:${GEA_GEATSC_TARGET},INCLUDE_DIRECTORIES>,\n-I>>\n$<$<BOOL:$<TARGET_PROPERTY:${GEA_GEATSC_TARGET},COMPILE_DEFINITIONS>>:-D$<JOIN:$<REMOVE_DUPLICATES:$<TARGET_PROPERTY:${GEA_GEATSC_TARGET},COMPILE_DEFINITIONS>>,\n-D>>\n$<JOIN:$<TARGET_PROPERTY:${GEA_GEATSC_TARGET},COMPILE_OPTIONS>,\n>\n${_extra_flags_content}\n"
84
+ )
85
+
86
+ # ESP-IDF exposes ccache through RULE_LAUNCH_COMPILE rather than changing
87
+ # CMAKE_CXX_COMPILER. This custom archive bypasses normal compile rules, so
88
+ # forward the launcher explicitly to retain clean-build cache hits.
89
+ get_property(_compiler_launcher GLOBAL PROPERTY RULE_LAUNCH_COMPILE)
90
+
91
+ add_custom_command(
92
+ OUTPUT "${GEA_GEATSC_OUTPUT}"
93
+ COMMAND "${CMAKE_COMMAND}"
94
+ "-DGEA_GEATSC_SOURCE_LIST=${GEA_GEATSC_SOURCE_LIST}"
95
+ "-DGEA_GEATSC_ARCHIVE=${GEA_GEATSC_OUTPUT}"
96
+ "-DGEA_GEATSC_OBJECT_DIR=${GEA_GEATSC_OBJECT_DIR}"
97
+ "-DGEA_GEATSC_DEPFILE=${GEA_GEATSC_DEPFILE}"
98
+ "-DGEA_GEATSC_FLAGS_FILE=${_flags_file}"
99
+ "-DGEA_GEATSC_CXX_COMPILER=${CMAKE_CXX_COMPILER}"
100
+ "-DGEA_GEATSC_COMPILER_LAUNCHER=${_compiler_launcher}"
101
+ "-DGEA_GEATSC_AR=${CMAKE_AR}"
102
+ "-DGEA_GEATSC_RANLIB=${CMAKE_RANLIB}"
103
+ -P "${CMAKE_CURRENT_FUNCTION_LIST_DIR}/geatsc_generated_archive_build.cmake"
104
+ DEPENDS
105
+ ${GEA_GEATSC_DEPENDS}
106
+ "${_flags_file}"
107
+ "${CMAKE_CURRENT_FUNCTION_LIST_DIR}/geatsc_generated_archive_build.cmake"
108
+ "${_GEA_GEATSC_ARCHIVE_BUILDER}"
109
+ DEPFILE "${GEA_GEATSC_DEPFILE}"
110
+ COMMENT "Archiving geatsc generated sources for ${GEA_GEATSC_TARGET}"
111
+ VERBATIM
112
+ )
113
+ add_custom_target(${GEA_GEATSC_NAME} DEPENDS "${GEA_GEATSC_OUTPUT}")
114
+ add_dependencies(${GEA_GEATSC_TARGET} ${GEA_GEATSC_NAME})
115
+ target_link_libraries(${GEA_GEATSC_TARGET} PRIVATE "${GEA_GEATSC_OUTPUT}")
116
+ endfunction()
@@ -0,0 +1,50 @@
1
+ foreach(_required
2
+ GEA_GEATSC_SOURCE_LIST
3
+ GEA_GEATSC_ARCHIVE
4
+ GEA_GEATSC_OBJECT_DIR
5
+ GEA_GEATSC_DEPFILE
6
+ GEA_GEATSC_FLAGS_FILE
7
+ GEA_GEATSC_CXX_COMPILER
8
+ GEA_GEATSC_AR)
9
+ if(NOT DEFINED ${_required} OR "${${_required}}" STREQUAL "")
10
+ message(FATAL_ERROR "${_required} is required")
11
+ endif()
12
+ endforeach()
13
+
14
+ get_filename_component(
15
+ _GEA_GEATSC_ARCHIVE_BUILDER
16
+ "${CMAKE_CURRENT_LIST_DIR}/geatsc-generated-archive-build.mjs"
17
+ ABSOLUTE
18
+ )
19
+ if(NOT EXISTS "${_GEA_GEATSC_ARCHIVE_BUILDER}")
20
+ message(FATAL_ERROR "geatsc archive builder not found: ${_GEA_GEATSC_ARCHIVE_BUILDER}")
21
+ endif()
22
+ find_program(_GEA_GEATSC_NODE_EXECUTABLE NAMES node REQUIRED)
23
+
24
+ set(_GEA_GEATSC_COMPILER_LAUNCHER_ARGS "")
25
+ if(DEFINED GEA_GEATSC_COMPILER_LAUNCHER AND NOT "${GEA_GEATSC_COMPILER_LAUNCHER}" STREQUAL "")
26
+ list(APPEND _GEA_GEATSC_COMPILER_LAUNCHER_ARGS
27
+ --compiler-launcher "${GEA_GEATSC_COMPILER_LAUNCHER}")
28
+ endif()
29
+
30
+ # Keep this CMake entry point stable for every ESP32/RP2350 caller, but let the
31
+ # Node runner own per-object depfile checks and the bounded worker pool. The
32
+ # compiler inputs, flags, object names, archive order, and link interface remain
33
+ # unchanged.
34
+ execute_process(
35
+ COMMAND "${_GEA_GEATSC_NODE_EXECUTABLE}"
36
+ "${_GEA_GEATSC_ARCHIVE_BUILDER}"
37
+ --source-list "${GEA_GEATSC_SOURCE_LIST}"
38
+ --archive "${GEA_GEATSC_ARCHIVE}"
39
+ --object-dir "${GEA_GEATSC_OBJECT_DIR}"
40
+ --depfile "${GEA_GEATSC_DEPFILE}"
41
+ --flags-file "${GEA_GEATSC_FLAGS_FILE}"
42
+ --compiler "${GEA_GEATSC_CXX_COMPILER}"
43
+ ${_GEA_GEATSC_COMPILER_LAUNCHER_ARGS}
44
+ --ar "${GEA_GEATSC_AR}"
45
+ --ranlib "${GEA_GEATSC_RANLIB}"
46
+ RESULT_VARIABLE _build_result
47
+ )
48
+ if(NOT _build_result EQUAL 0)
49
+ message(FATAL_ERROR "Failed to build geatsc generated archive: ${GEA_GEATSC_ARCHIVE}")
50
+ endif()
@@ -0,0 +1,33 @@
1
+ # Included by every esp32 board's top-level CMakeLists BEFORE project(), which
2
+ # is the only phase where EXTRA_COMPONENT_DIRS still has an effect. An app
3
+ # declares its own IDF components -- a vendored driver, a DSP library with its
4
+ # own flags -- through gea.targets.esp32.componentDirs; they cannot be folded
5
+ # into nativeSources because a component carries its own compile options,
6
+ # REQUIRES and conditions, not just a list of files.
7
+ if(DEFINED ENV{GEA_EMBEDDED_APP_COMPONENT_DIRS} AND NOT "$ENV{GEA_EMBEDDED_APP_COMPONENT_DIRS}" STREQUAL "")
8
+ set(GEA_EMBEDDED_APP_COMPONENT_DIRS "$ENV{GEA_EMBEDDED_APP_COMPONENT_DIRS}"
9
+ CACHE STRING "Gea app IDF component directories" FORCE)
10
+ endif()
11
+ foreach(_GEA_APP_COMPONENT_DIR IN LISTS GEA_EMBEDDED_APP_COMPONENT_DIRS)
12
+ if(NOT _GEA_APP_COMPONENT_DIR)
13
+ continue()
14
+ endif()
15
+ if(NOT IS_DIRECTORY "${_GEA_APP_COMPONENT_DIR}")
16
+ message(FATAL_ERROR "gea.targets.esp32.componentDirs is not a directory: ${_GEA_APP_COMPONENT_DIR}")
17
+ endif()
18
+ list(APPEND EXTRA_COMPONENT_DIRS "${_GEA_APP_COMPONENT_DIR}")
19
+ endforeach()
20
+
21
+ # The managed-dependency manifests (main/idf_component.yml) gate the registry
22
+ # components that belong to one capability -- the codec, the WebSocket client,
23
+ # the WebRTC peer -- on these variables, and the component manager treats an
24
+ # unset environment variable in an `if:` rule as a hard error rather than a
25
+ # false. The gea CLI always exports all three; a direct `idf.py` build has no
26
+ # app analysis to go on, so it defaults to keeping everything, which is what it
27
+ # built before the rules existed.
28
+ foreach(_GEA_CAPABILITY NETWORK BLE AUDIO)
29
+ if(NOT DEFINED ENV{GEA_EMBEDDED_CAPABILITY_${_GEA_CAPABILITY}}
30
+ OR "$ENV{GEA_EMBEDDED_CAPABILITY_${_GEA_CAPABILITY}}" STREQUAL "")
31
+ set(ENV{GEA_EMBEDDED_CAPABILITY_${_GEA_CAPABILITY}} "1")
32
+ endif()
33
+ endforeach()
@@ -0,0 +1,188 @@
1
+ #include "apps/app_manager.h"
2
+
3
+ #include <cstdio>
4
+ #include <cstring>
5
+
6
+ #include "apps.h"
7
+
8
+ #include "esp_app_desc.h"
9
+ #include "esp_err.h"
10
+ #include "esp_log.h"
11
+ #ifndef GEA_EMBEDDED_OTA_DISABLED
12
+ #include "esp_ota_ops.h"
13
+ #endif
14
+ #include "esp_partition.h"
15
+ #include "esp_system.h"
16
+ #include "freertos/FreeRTOS.h"
17
+ #include "freertos/task.h"
18
+
19
+ namespace gea::platform::esp32::apps {
20
+
21
+ namespace {
22
+
23
+ constexpr const char *kTag = "esp32_apps";
24
+
25
+ class Esp32AppLauncherPlatform final : public gea::framework::apps::AppLauncherPlatform {
26
+ public:
27
+ const char *currentInstalledAppId() override
28
+ {
29
+ #ifdef GEA_EMBEDDED_OTA_DISABLED
30
+ return nullptr;
31
+ #else
32
+ if (cachedId_[0] != '\0') return cachedId_;
33
+
34
+ const esp_partition_t *running = esp_ota_get_running_partition();
35
+ if (!running) return nullptr;
36
+
37
+ esp_app_desc_t desc;
38
+ if (esp_ota_get_partition_description(running, &desc) != ESP_OK) return nullptr;
39
+
40
+ std::snprintf(cachedId_, sizeof(cachedId_), "%s", desc.version);
41
+ return cachedId_[0] ? cachedId_ : nullptr;
42
+ #endif
43
+ }
44
+
45
+ bool runningAppIsLauncher(const char *launcherAppId) override
46
+ {
47
+ #ifdef GEA_EMBEDDED_OTA_DISABLED
48
+ (void)launcherAppId;
49
+ return false;
50
+ #else
51
+ const esp_partition_t *running = esp_ota_get_running_partition();
52
+ return running && partitionVersionMatches(running, launcherAppId);
53
+ #endif
54
+ }
55
+
56
+ bool launchInstalledApp(const char *appId) override
57
+ {
58
+ #ifdef GEA_EMBEDDED_OTA_DISABLED
59
+ (void)appId;
60
+ return false;
61
+ #else
62
+ if (!appId || appId[0] == '\0') return false;
63
+
64
+ const esp_partition_t *running = esp_ota_get_running_partition();
65
+ const esp_partition_t *partition = findAppPartition(appId, running);
66
+ if (!partition) {
67
+ ESP_LOGW(kTag, "No installed app image found for '%s'", appId);
68
+ return false;
69
+ }
70
+
71
+ const esp_err_t err = esp_ota_set_boot_partition(partition);
72
+ if (err != ESP_OK) {
73
+ ESP_LOGE(kTag, "Failed to select app '%s': %s", appId, esp_err_to_name(err));
74
+ return false;
75
+ }
76
+
77
+ ESP_LOGI(kTag, "Launching app '%s' from partition %s", appId, partition->label);
78
+ vTaskDelay(pdMS_TO_TICKS(250));
79
+ esp_restart();
80
+ return true;
81
+ #endif
82
+ }
83
+
84
+ void startLauncherButtonTask() override
85
+ {
86
+ gea::platform::esp32::apps::startLauncherButtonTask();
87
+ }
88
+
89
+ private:
90
+ #ifndef GEA_EMBEDDED_OTA_DISABLED
91
+ bool partitionVersionMatches(const esp_partition_t *partition, const char *appId) const
92
+ {
93
+ if (!partition || !appId) return false;
94
+ esp_app_desc_t desc;
95
+ if (esp_ota_get_partition_description(partition, &desc) != ESP_OK) return false;
96
+ return std::strcmp(desc.version, appId) == 0;
97
+ }
98
+
99
+ const esp_partition_t *findAppPartitionByVersion(const char *appId, const esp_partition_t *skip) const
100
+ {
101
+ esp_partition_iterator_t it = esp_partition_find(ESP_PARTITION_TYPE_APP, ESP_PARTITION_SUBTYPE_ANY, nullptr);
102
+ const esp_partition_t *found = nullptr;
103
+
104
+ while (it) {
105
+ const esp_partition_t *partition = esp_partition_get(it);
106
+ if (partition && (!skip || partition->address != skip->address) && partitionVersionMatches(partition, appId)) {
107
+ found = partition;
108
+ break;
109
+ }
110
+ it = esp_partition_next(it);
111
+ }
112
+
113
+ if (it) esp_partition_iterator_release(it);
114
+ return found;
115
+ }
116
+
117
+ const esp_partition_t *findPlannedAppPartition(const char *appId, const esp_partition_t *skip) const
118
+ {
119
+ for (int i = 0; i < gea::framework::apps::InstalledApps::planCount(); i++) {
120
+ const gea::framework::apps::InstalledAppPlanEntry *entry = gea::framework::apps::InstalledApps::planAt(i);
121
+ if (!entry || !entry->appId || std::strcmp(entry->appId, appId) != 0) continue;
122
+
123
+ const esp_partition_t *partition =
124
+ esp_partition_find_first(ESP_PARTITION_TYPE_APP, ESP_PARTITION_SUBTYPE_ANY, entry->slotLabel);
125
+ if (!partition) {
126
+ ESP_LOGW(kTag, "Install plan maps '%s' to missing partition %s", appId, entry->slotLabel);
127
+ continue;
128
+ }
129
+ if (skip && partition->address == skip->address) continue;
130
+
131
+ esp_app_desc_t desc;
132
+ const esp_err_t err = esp_ota_get_partition_description(partition, &desc);
133
+ if (err == ESP_OK) {
134
+ if (std::strcmp(desc.version, appId) != 0) {
135
+ ESP_LOGW(kTag, "Install plan maps '%s' to %s, but slot contains '%s'", appId, partition->label, desc.version);
136
+ continue;
137
+ }
138
+ } else {
139
+ ESP_LOGW(kTag, "Install plan maps '%s' to %s, but descriptor read failed: %s", appId, partition->label,
140
+ esp_err_to_name(err));
141
+ continue;
142
+ }
143
+
144
+ return partition;
145
+ }
146
+
147
+ return nullptr;
148
+ }
149
+
150
+ const esp_partition_t *findAppPartition(const char *appId, const esp_partition_t *skip) const
151
+ {
152
+ const esp_partition_t *partition = findAppPartitionByVersion(appId, skip);
153
+ if (partition) return partition;
154
+
155
+ partition = findPlannedAppPartition(appId, skip);
156
+ if (partition) {
157
+ ESP_LOGW(kTag, "Using installed app plan fallback for '%s' in %s", appId, partition->label);
158
+ }
159
+ return partition;
160
+ }
161
+ #endif
162
+
163
+ char cachedId_[64]{};
164
+ };
165
+
166
+ Esp32AppLauncherPlatform &platformInstance()
167
+ {
168
+ static Esp32AppLauncherPlatform platform;
169
+ return platform;
170
+ }
171
+
172
+ struct PlatformRegistration {
173
+ PlatformRegistration()
174
+ {
175
+ gea::framework::apps::AppManager::setPlatform(&platformInstance());
176
+ }
177
+ };
178
+
179
+ PlatformRegistration registration;
180
+
181
+ } // namespace
182
+
183
+ gea::framework::apps::AppLauncherPlatform &launcherPlatform()
184
+ {
185
+ return platformInstance();
186
+ }
187
+
188
+ } // namespace gea::platform::esp32::apps
@@ -0,0 +1,10 @@
1
+ #pragma once
2
+
3
+ #include "apps.h"
4
+
5
+ namespace gea::platform::esp32::apps {
6
+
7
+ gea::framework::apps::AppLauncherPlatform &launcherPlatform();
8
+ void startLauncherButtonTask();
9
+
10
+ } // namespace gea::platform::esp32::apps
@@ -0,0 +1,58 @@
1
+ # ESP32 Chip Bindings
2
+
3
+ This folder contains ESP-IDF bindings for standalone chips.
4
+
5
+ The chips themselves are not board-specific and not owned by ESP32. Generic
6
+ chip declarations and shared, target-independent logic belong under
7
+ `chips/<category>/<chip>`.
8
+
9
+ Files here are the ESP32 handoff for those chips:
10
+
11
+ - They may include ESP-IDF headers.
12
+ - They may use ESP32 services such as I2C, I2S, GPIO, tasks, or interrupts.
13
+ - They read board composition from the active board target's `board.h`.
14
+ - They implement framework platform surfaces such as display, power, touch,
15
+ audio, and sensors by wiring the selected chip to ESP-IDF.
16
+
17
+ Another ESP32 board that uses the same chip should reuse these bindings and
18
+ provide a different board composition. A non-ESP target should keep the same
19
+ generic chip declarations under `chips/` and add its own target binding under
20
+ its target folder.
21
+
22
+ The long-term shape is:
23
+
24
+ ```text
25
+ chips/audio/es8311/
26
+ es8311.h / es8311.cpp target-independent codec protocol or formats
27
+
28
+ targets/esp32/chip_bindings/audio/es8311.cpp
29
+ ESP-IDF I2C/I2S/GPIO adapter using the generic ES8311 driver
30
+
31
+ targets/<other-platform>/chip_bindings/audio/es8311.cpp
32
+ that platform's I2C/I2S/GPIO adapter using the same generic ES8311 driver
33
+ ```
34
+
35
+ So a non-ESP board does not reuse the ESP-IDF binding. It reuses the generic
36
+ chip driver and supplies a platform binding for its bus/runtime APIs.
37
+
38
+ Any register maps, chip initialization sequences, sample conversion, packet
39
+ formatting, and chip-level state machines that are not inherently ESP-IDF
40
+ specific should be pulled down into `chips/`. Code in this folder should become
41
+ thin transport glue.
42
+
43
+ Concrete examples in the current tree:
44
+
45
+ - `displays/qspi_panel.h` is the shared interface `display.cpp` depends on.
46
+ Each QSPI LCD binding (`co5300.cpp`, `sh8601.cpp`, …) implements `QspiPanel`
47
+ and exports `displays::qspiPanel()` / `qspiPanelDriverName()`. Board targets
48
+ pick the driver by linking one binding source file — no `#if` chains in
49
+ `display.cpp`.
50
+ - `power/axp2101.cpp` adapts ESP-IDF I2C to `gea::chips::axp2101::RegisterBus`.
51
+ - `imu/qmi8658.cpp` adapts ESP-IDF I2C and FreeRTOS delay to
52
+ `gea::chips::qmi8658::Driver`.
53
+ - `touch/ft3168.cpp` adapts ESP-IDF I2C, GPIO, interrupts, and task delivery to
54
+ `gea::chips::ft3168::ControllerCore`.
55
+
56
+ If a future non-ESP board uses one of those chips, it should implement the same
57
+ small bus/runtime interfaces in its own target folder and reuse the code under
58
+ `chips/`.