@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,71 @@
1
+ set(GEA_BOARD_COMPONENT_DIR "${CMAKE_CURRENT_LIST_DIR}")
2
+ set(GEA_BOARD_TARGET_DIR "${CMAKE_CURRENT_LIST_DIR}/..")
3
+ set(GEA_EMBEDDED_CPP_BOARD "esp32-s3-touch-amoled-2.41")
4
+
5
+ # The shared base resolves the npm packages (and with them GEA_CHIPS) only
6
+ # after this file has run, so resolve them here too: the source list below
7
+ # names chip drivers by that path and would otherwise expand to `/displays/...`.
8
+ set(GEA_EMBEDDED_ROOT "${CMAKE_CURRENT_LIST_DIR}/../../..")
9
+ cmake_path(ABSOLUTE_PATH GEA_EMBEDDED_ROOT NORMALIZE)
10
+ include("${GEA_EMBEDDED_ROOT}/targets/esp32/gea_framework.cmake")
11
+
12
+ # 450x600 portrait AMOLED. The vendor's own V2 example spells it the same way
13
+ # (LCD_WIDTH 450 / LCD_HEIGHT 600) even though the product page quotes the
14
+ # panel as 600x450; the driver is fed the portrait orientation it scans out.
15
+ # 80 MHz, the base default. During bring-up nothing reached the glass at this
16
+ # rate and the clock was dropped to 40 MHz to get a first picture; the cause
17
+ # was the panel reset, not the clock, and once prepareDisplayPanel pulsed
18
+ # EXIO0 the panel latched at 80 MHz as well. Worth 22ms -> 15ms of flush on a
19
+ # frame that dirties ~100k pixels.
20
+ set(GEA_BOARD_QSPI_PCLK_HZ 80000000)
21
+
22
+ # The base pads partial flush windows 8 px sideways. This panel repaints at
23
+ # the padded origin without compensating for it, so a tap moved the buttons
24
+ # and left a stale sliver. No padding, no displacement.
25
+ # Every band re-issues its own window instead of continuing the previous write.
26
+ # The RAMWRC continue path trusts the panel column counter, which wraps at this
27
+ # panel gapped width rather than the logical 450: after the first repaint the
28
+ # content walked sideways and left a stale sliver at the edge.
29
+ set(GEA_BOARD_FRAMEBUFFER_STREAM_FLUSH 0)
30
+
31
+ set(GEA_BOARD_PARTIAL_PAD_X 0)
32
+ set(GEA_BOARD_PARTIAL_PAD_Y 0)
33
+
34
+ set(GEA_BOARD_DISPLAY_WIDTH 450)
35
+ set(GEA_BOARD_DISPLAY_HEIGHT 600)
36
+
37
+ # The RM69080 speaks the SH8601 command set, so the shared SH8601 QSPI binding
38
+ # drives it -- which is what the vendor's ESP-IDF example does as well.
39
+ #
40
+ # Touch is an FT6336, on its own ESP32 binding.
41
+ # The shared base defaults this to esp_codec_dev; this board has no audio
42
+ # codec, and requiring one fails the build outright.
43
+ set(GEA_BOARD_EXTRA_REQUIRES espressif__esp_io_expander espressif__esp_io_expander_tca9554)
44
+
45
+ # panel_reset.cpp supplies board::prepareDisplayPanel(); display init only
46
+ # calls it for a board that says it has one.
47
+ # No GEA_EMBEDDED_FLUSH_UNITE_ALL here. The shift and the stale sliver that
48
+ # uniting every rect was added to hide came from the RAMWRC continue-write
49
+ # above, and GEA_BOARD_FRAMEBUFFER_STREAM_FLUSH 0 is what actually fixed them;
50
+ # present::clampAndAlign already snaps x0 down to even and x1 up to odd, which
51
+ # is exactly the two-pixel column rule this panel wants. Uniting on top of that
52
+ # only cost pixels: every frame flushed 98% of the panel, 35ms of a 60ms frame,
53
+ # and the bouncing-balls example ran at 16fps instead of 25.
54
+ set(GEA_BOARD_EXTRA_COMPILE_DEFINITIONS GEA_BOARD_PREPARE_DISPLAY_PANEL=1 GEA_EMBEDDED_RM690B0_PANEL=1)
55
+
56
+ set(GEA_BOARD_PLATFORM_SOURCES
57
+ "${CMAKE_CURRENT_LIST_DIR}/../../esp32-s3-touch-amoled-1.8/main/app_main.cpp"
58
+ "${CMAKE_CURRENT_LIST_DIR}/../../esp32-s3-touch-amoled-1.8/main/i2c.cpp"
59
+ "${CMAKE_CURRENT_LIST_DIR}/../../esp32-s3-touch-amoled-1.8/main/launcher_button.cpp"
60
+ "${CMAKE_CURRENT_LIST_DIR}/touch.cpp"
61
+ "${CMAKE_CURRENT_LIST_DIR}/panel_reset.cpp"
62
+ "${CMAKE_CURRENT_LIST_DIR}/../../esp32-s3-elecrow-rotary-2.1/main/platform_stubs.cpp"
63
+ "${GEA_CHIPS}/displays/sh8601/sh8601.cpp"
64
+ "${GEA_CHIPS}/displays/rm690b0/rm690b0.cpp"
65
+ "${GEA_CHIPS}/touch/ft6336/ft6336.cpp"
66
+ "${CMAKE_CURRENT_LIST_DIR}/../../esp32/display.cpp"
67
+ "${CMAKE_CURRENT_LIST_DIR}/../../esp32/chip_bindings/displays/sh8601.cpp"
68
+ "${CMAKE_CURRENT_LIST_DIR}/../../esp32/chip_bindings/touch/ft6336.cpp"
69
+ )
70
+
71
+ include("${CMAKE_CURRENT_LIST_DIR}/../../esp32-s3-touch-amoled-1.8/main/CMakeLists.txt")
@@ -0,0 +1,12 @@
1
+ menu "Gea Embedded"
2
+
3
+ config GEA_EMBEDDED_PRODUCTION_LOCKDOWN
4
+ bool "Production lockdown"
5
+ default n
6
+ help
7
+ Compile out Gea frame/perf logs, heap diagnostics, and the
8
+ diagnostics server for production firmware. Local development builds
9
+ should leave this disabled so serial monitor and VS Code launch
10
+ tasks show fps and diagnostic logs.
11
+
12
+ endmenu
@@ -0,0 +1,27 @@
1
+ # A managed dependency is a requirement of `main` the moment it is listed here,
2
+ # so gating only the REQUIRES leaves the component downloaded, configured and
3
+ # built. The `if:` rules keep each registry component tied to the capability
4
+ # whose source actually uses it. GEA_EMBEDDED_CAPABILITY_* comes from the gea
5
+ # CLI's app analysis; app_project.cmake defaults each to 1 before project() so a
6
+ # direct `idf.py` build keeps everything (and so the component manager never
7
+ # sees an unset variable, which it treats as an error).
8
+ #
9
+ # No esp_codec_dev: this board carries no audio codec.
10
+ dependencies:
11
+ espressif/esp_lcd_sh8601: '^2.0.1'
12
+ # panel_reset.cpp -- OLED_RESET/TP_RESET sit on a TCA9554
13
+ espressif/esp_io_expander: '^1'
14
+ espressif/esp_io_expander_tca9554: '^2'
15
+ esp_lcd_panel_io_additions: '^1'
16
+ # host/websocket.cpp
17
+ espressif/esp_websocket_client:
18
+ version: '^1.4'
19
+ rules:
20
+ - if: '$GEA_EMBEDDED_CAPABILITY_NETWORK == 1'
21
+ # host/rtc_esp.cpp -- the WebRTC peer, and libsrtp behind it
22
+ espressif/esp_peer:
23
+ version: '^1.4'
24
+ rules:
25
+ - if: '$GEA_EMBEDDED_CAPABILITY_NETWORK == 1'
26
+ idf:
27
+ version: '>=5.3'
@@ -0,0 +1,108 @@
1
+ #pragma once
2
+
3
+ #include "driver/gpio.h"
4
+ #include "driver/spi_master.h"
5
+
6
+ // Waveshare ESP32-S3-Touch-AMOLED-2.41, hardware V1.
7
+ //
8
+ // V1 and V2 are not interchangeable: they differ in which signals are native
9
+ // GPIOs and which sit behind the board's TCA9554 I2C expander. On V1 the panel
10
+ // reset is GPIO21 and the touch interrupt is on the expander; V2 swaps both.
11
+ // These are V1's values. Getting this wrong is silent: with GPIO21 configured
12
+ // as the tearing-effect input the panel never leaves reset, every QSPI write
13
+ // still reports success, and the screen simply stays dark.
14
+ //
15
+ // The panel IC is an RM69080 driven through the SH8601 command set -- the
16
+ // vendor's example calls esp_lcd_new_panel_sh8601() for it, because the two
17
+ // QSPI init sequences are compatible.
18
+
19
+ namespace gea::platform::board {
20
+
21
+ struct I2cBusConfig {
22
+ gpio_num_t sda;
23
+ gpio_num_t scl;
24
+ };
25
+
26
+ struct Sh8601DisplayConfig {
27
+ spi_host_device_t spiHost;
28
+ gpio_num_t cs;
29
+ gpio_num_t pclk;
30
+ gpio_num_t data0;
31
+ gpio_num_t data1;
32
+ gpio_num_t data2;
33
+ gpio_num_t data3;
34
+ // Panel reset is wired to expander pin EXIO0 rather than to a native GPIO,
35
+ // so the panel driver gets GPIO_NUM_NC and relies on power-on reset. The
36
+ // vendor's own example passes GPIO_NUM_NC here too and pulses the expander
37
+ // line separately before panel init.
38
+ gpio_num_t reset;
39
+ // Tearing-Effect line from the panel. The runtime waits for its VBlank edge
40
+ // before flushing so a QSPI write into GRAM never overlaps scanout.
41
+ gpio_num_t te;
42
+ };
43
+
44
+ struct Ft6336TouchConfig {
45
+ // Touch reset is on expander pin EXIO1, likewise unreachable as a GPIO.
46
+ gpio_num_t reset;
47
+ gpio_num_t interrupt;
48
+ };
49
+
50
+ struct SdMmcConfig {
51
+ gpio_num_t clk;
52
+ gpio_num_t cmd;
53
+ gpio_num_t data0;
54
+ };
55
+
56
+ struct LauncherButtonConfig {
57
+ gpio_num_t pin;
58
+ int activeLevel;
59
+ };
60
+
61
+ class Esp32S3TouchAmoled241 {
62
+ public:
63
+ // One bus carries the touch controller, the PCF85063 RTC, the QMI8658 IMU
64
+ // and the TCA9554 expander.
65
+ static constexpr I2cBusConfig i2c{
66
+ .sda = GPIO_NUM_47,
67
+ .scl = GPIO_NUM_48,
68
+ };
69
+
70
+ static constexpr Sh8601DisplayConfig display{
71
+ .spiHost = SPI2_HOST,
72
+ .cs = GPIO_NUM_9,
73
+ .pclk = GPIO_NUM_10,
74
+ .data0 = GPIO_NUM_11,
75
+ .data1 = GPIO_NUM_12,
76
+ .data2 = GPIO_NUM_13,
77
+ .data3 = GPIO_NUM_14,
78
+ .reset = GPIO_NUM_21,
79
+ .te = GPIO_NUM_NC,
80
+ };
81
+
82
+ // V1 wires TP_RESET to GPIO3 and leaves TP_INT on expander pin EXIO2, which
83
+ // is not reachable as a GPIO -- so the controller is polled rather than
84
+ // interrupt-driven.
85
+ static constexpr Ft6336TouchConfig touch{
86
+ .reset = GPIO_NUM_3,
87
+ .interrupt = GPIO_NUM_NC,
88
+ };
89
+ };
90
+
91
+ using Board = Esp32S3TouchAmoled241;
92
+
93
+ inline constexpr auto i2c = Board::i2c;
94
+ inline constexpr auto display = Board::display;
95
+ inline constexpr auto touch = Board::touch;
96
+ // The TF slot is wired for SDMMC 1-bit as well as SPI; the runtime uses the
97
+ // SDMMC pins.
98
+ inline constexpr SdMmcConfig storage{
99
+ .clk = GPIO_NUM_4,
100
+ .cmd = GPIO_NUM_5,
101
+ .data0 = GPIO_NUM_6,
102
+ };
103
+ inline constexpr LauncherButtonConfig launcherButton{
104
+ .pin = GPIO_NUM_0,
105
+ .activeLevel = 0,
106
+ };
107
+
108
+ } // namespace gea::platform::board
@@ -0,0 +1,5 @@
1
+ // Copy this file to wifi_config.h and fill in your credentials.
2
+ // wifi_config.h is gitignored — never commit real credentials.
3
+
4
+ #define GEA_EMBEDDED_WIFI_SSID "YOUR_SSID_HERE"
5
+ #define GEA_EMBEDDED_WIFI_PASSWORD "YOUR_PASSWORD_HERE"
@@ -0,0 +1,82 @@
1
+ // Pulse the panel's reset line before the display driver talks to it.
2
+ //
3
+ // On this board (hardware V2) OLED_RESET is expander pin EXIO0 of a TCA9554 on
4
+ // the shared I2C bus, not a GPIO, so board::display.reset is GPIO_NUM_NC and
5
+ // the panel driver has nothing to toggle. The RM69080 keeps whatever state it
6
+ // was left in across a warm reset of the ESP32, and a QSPI write reports
7
+ // success whether or not the panel is listening -- so without this the display
8
+ // reports a clean init and stays dark. The vendor's own V2 example pulses the
9
+ // same line at the same point.
10
+ //
11
+ // Display init runs before the board's shared I2C bus is brought up, so this
12
+ // opens its own short-lived master bus and closes it again; the later
13
+ // bus creation in i2c.cpp then proceeds normally.
14
+ #include "board.h"
15
+
16
+ #include "driver/i2c_master.h"
17
+ #include "esp_err.h"
18
+ #include "esp_io_expander_tca9554.h"
19
+ #include "esp_log.h"
20
+ #include "freertos/FreeRTOS.h"
21
+ #include "freertos/task.h"
22
+
23
+ namespace
24
+ {
25
+ constexpr char kTag[] = "panel_reset";
26
+ constexpr uint32_t kPanelResetPin = IO_EXPANDER_PIN_NUM_0;
27
+ constexpr uint32_t kTouchResetPin = IO_EXPANDER_PIN_NUM_1;
28
+
29
+ void pulseReset(esp_io_expander_handle_t expander, uint32_t pin)
30
+ {
31
+ esp_io_expander_set_dir(expander, pin, IO_EXPANDER_OUTPUT);
32
+ esp_io_expander_set_level(expander, pin, 1);
33
+ vTaskDelay(pdMS_TO_TICKS(10));
34
+ esp_io_expander_set_level(expander, pin, 0);
35
+ vTaskDelay(pdMS_TO_TICKS(10));
36
+ esp_io_expander_set_level(expander, pin, 1);
37
+ vTaskDelay(pdMS_TO_TICKS(50));
38
+ }
39
+ } // namespace
40
+
41
+ namespace gea::platform::board
42
+ {
43
+ void prepareDisplayPanel()
44
+ {
45
+ i2c_master_bus_config_t busConfig = {};
46
+ busConfig.i2c_port = I2C_NUM_0;
47
+ busConfig.sda_io_num = i2c.sda;
48
+ busConfig.scl_io_num = i2c.scl;
49
+ busConfig.clk_source = I2C_CLK_SRC_DEFAULT;
50
+ busConfig.glitch_ignore_cnt = 7;
51
+ busConfig.flags.enable_internal_pullup = true;
52
+
53
+ i2c_master_bus_handle_t bus = nullptr;
54
+ esp_err_t err = i2c_new_master_bus(&busConfig, &bus);
55
+ if (err != ESP_OK)
56
+ {
57
+ ESP_LOGE(kTag, "I2C bus for the panel reset failed: %s", esp_err_to_name(err));
58
+ return;
59
+ }
60
+
61
+ esp_io_expander_handle_t expander = nullptr;
62
+ err = esp_io_expander_new_i2c_tca9554(bus, ESP_IO_EXPANDER_I2C_TCA9554_ADDRESS_000, &expander);
63
+ if (err != ESP_OK)
64
+ {
65
+ ESP_LOGE(kTag, "TCA9554 not found: %s", esp_err_to_name(err));
66
+ i2c_del_master_bus(bus);
67
+ return;
68
+ }
69
+
70
+ // Both resets are driven: the touch controller's reset is the neighbouring
71
+ // expander pin and is equally unreachable as a GPIO.
72
+ pulseReset(expander, kPanelResetPin);
73
+ pulseReset(expander, kTouchResetPin);
74
+
75
+ ESP_LOGI(kTag, "panel and touch reset through TCA9554 (EXIO0, EXIO1)");
76
+
77
+ // The shared bus is created later by i2c.cpp; release this one so that
78
+ // creation does not fail on an already-installed port.
79
+ esp_io_expander_del(expander);
80
+ i2c_del_master_bus(bus);
81
+ }
82
+ } // namespace gea::platform::board
@@ -0,0 +1,49 @@
1
+ #include "touch.h"
2
+ #include "chip_bindings/touch/ft6336_controller.h"
3
+
4
+ namespace {
5
+
6
+ gea::platform::esp32::chip_bindings::ft6336::TouchController &touchController() {
7
+ return gea::platform::esp32::chip_bindings::ft6336::TouchController::instance();
8
+ }
9
+
10
+ } // namespace
11
+
12
+ void gea::platform::touch::Touchscreen::setObserver(Observer observer) {
13
+ touchController().setObserver(observer);
14
+ }
15
+
16
+ // Strong override of the runtime's weak no-op default: routes the multi-finger
17
+ // observer to the FT6336 controller so a second contact (pointerId 1) reaches
18
+ // the app (maps pinch-zoom). Without this the runtime keeps the single-pointer
19
+ // path and pinch never sees the second finger.
20
+ void gea::platform::touch::Touchscreen::setPointerObserver(PointerObserver observer) {
21
+ touchController().setPointerObserver(observer);
22
+ }
23
+
24
+ bool gea::platform::touch::Touchscreen::init() {
25
+ return touchController().begin() == ESP_OK;
26
+ }
27
+
28
+ int gea::platform::touch::Touchscreen::read(int *x, int *y) {
29
+ gea::chips::ft6336::TouchSample sample;
30
+ const bool touching = touchController().read(sample);
31
+ if (x) *x = sample.x;
32
+ if (y) *y = sample.y;
33
+ return touching ? 1 : 0;
34
+ }
35
+
36
+ int gea::platform::touch::Touchscreen::readCached(int *x, int *y) {
37
+ const auto sample = touchController().cached();
38
+ if (x) *x = sample.x;
39
+ if (y) *y = sample.y;
40
+ return sample.touching ? 1 : 0;
41
+ }
42
+
43
+ void gea::platform::touch::Touchscreen::consumeLatestMove(int *x, int *y) {
44
+ touchController().consumeLatestMove(x, y);
45
+ }
46
+
47
+ void gea::platform::touch::Touchscreen::injectEvent(Phase phase, bool touching, int x, int y) {
48
+ touchController().injectEvent(phase, touching, x, y);
49
+ }
@@ -0,0 +1,8 @@
1
+ # Waveshare ESP32-S3-Touch-AMOLED-1.8, 16 MB flash.
2
+ # Name, Type, SubType, Offset, Size
3
+ nvs, data, nvs, 0x9000, 0x6000
4
+ otadata, data, ota, 0xf000, 0x2000
5
+ phy_init, data, phy, 0x11000, 0x1000
6
+ ota_0, app, ota_0, 0x20000, 0x700000
7
+ ota_1, app, ota_1, 0x720000, 0x700000
8
+ storage, data, spiffs, 0xe20000, 0x1c0000
@@ -0,0 +1,273 @@
1
+ # Target: ESP32-S3
2
+ CONFIG_IDF_TARGET="esp32s3"
3
+
4
+ # Flash: 32 MB (Waveshare ESP32-S3-Touch-AMOLED-2.06)
5
+ CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y
6
+
7
+ # Allow bootloader cache-mapped reads from 32-bit SPI flash addresses. This is
8
+ # required for bootable app partitions above 16 MB on the board's DIO flash.
9
+ CONFIG_IDF_EXPERIMENTAL_FEATURES=y
10
+ CONFIG_BOOTLOADER_CACHE_32BIT_ADDR_QUAD_FLASH=y
11
+
12
+ # Console over USB Serial/JTAG (native USB-C on this board)
13
+ CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG=y
14
+
15
+ # esp_codec_dev should share the existing new-driver I2C bus with touch/PMIC.
16
+ # CONFIG_CODEC_I2C_BACKWARD_COMPATIBLE is not set
17
+
18
+ # Disable secondary console to avoid duplicate output
19
+ CONFIG_ESP_CONSOLE_SECONDARY_NONE=y
20
+
21
+ # FreeRTOS tick rate — 1000 Hz gives 1 ms resolution for modMilliseconds
22
+ CONFIG_FREERTOS_HZ=1000
23
+
24
+ # Run the S3 at its full rated app CPU clock. Bouncing display workloads are
25
+ # otherwise CPU-bound before the 80 MHz QSPI flush finishes.
26
+ CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240=y
27
+ CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ=240
28
+
29
+ # Main task stack for the app event loop. gea TSX frames can build deep
30
+ # reactive call chains before returning to the firmware loop.
31
+ CONFIG_ESP_MAIN_TASK_STACK_SIZE=32768
32
+ # The IPC task is per-core and its stack is internal DRAM, so 16384 cost 32 KiB of
33
+ # the scarcest memory on this board for tasks that only ever run ESP-IDF's own
34
+ # cross-core callbacks (intr_alloc is the single caller of esp_ipc_call_blocking
35
+ # in this firmware). IDF's default is 1024; 4096 keeps a 4x margin and hands ~24
36
+ # KiB back to the DMA-capable heap that the display staging and the WiFi RX
37
+ # frames were fighting over.
38
+ CONFIG_ESP_IPC_TASK_STACK_SIZE=4096
39
+
40
+ # Wi-Fi scan/connect callbacks run on ESP-IDF's system event task.
41
+ CONFIG_ESP_SYSTEM_EVENT_TASK_STACK_SIZE=4096
42
+
43
+ # Custom partition table with two OTA slots for wireless updates
44
+ CONFIG_PARTITION_TABLE_CUSTOM=y
45
+ CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
46
+
47
+ # On panic: print backtrace then reboot. (Halting was meant to "keep USB alive
48
+ # for reflashing", but a halted ESP32-S3 won't accept an esptool reset — it has
49
+ # to be recovered over JTAG. Rebooting allows the firmware to remain
50
+ # reachable for diagnosis and reflashing.)
51
+ CONFIG_ESP_SYSTEM_PANIC_PRINT_REBOOT=y
52
+
53
+ # Enable octal PSRAM for framebuffer
54
+ CONFIG_SPIRAM=y
55
+ CONFIG_SPIRAM_MODE_OCT=y
56
+ CONFIG_SPIRAM_SPEED_80M=y
57
+ CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY=y
58
+ CONFIG_FREERTOS_TASK_CREATE_ALLOW_EXT_MEM=y
59
+ CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP=y
60
+ CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=0
61
+ # IDF defaults this to 32 KiB when SPIRAM malloc is enabled. That creates a
62
+ # second DMA/internal heap by allocating a chunk from internal DRAM and
63
+ # re-registering it, which splits the physical heap map into a middle green
64
+ # reserve island. Keep internal memory globally allocatable; app/display code
65
+ # already asks for MALLOC_CAP_INTERNAL/MALLOC_CAP_DMA when it truly needs it.
66
+ CONFIG_SPIRAM_MALLOC_RESERVE_INTERNAL=0
67
+
68
+ # Wi-Fi/LwIP memory budget: prefer lower throughput over internal DRAM pressure.
69
+ CONFIG_ESP_WIFI_STATIC_RX_BUFFER_NUM=8
70
+ CONFIG_ESP_WIFI_DYNAMIC_RX_BUFFER_NUM=16
71
+ CONFIG_ESP_WIFI_STATIC_TX_BUFFER_NUM=4
72
+ CONFIG_ESP_WIFI_CACHE_TX_BUFFER_NUM=2
73
+ CONFIG_ESP_WIFI_MGMT_SBUF_NUM=16
74
+ CONFIG_ESP_WIFI_RX_BA_WIN=8
75
+ # RX-MGMT buffers DYNAMIC, not static. A RAM-tight app (maps: full-screen canvas
76
+ # + tile cache) leaves esp_wifi_init only ~11 KB internal DMA, but its STATIC
77
+ # esf_buf pool (static_rx 3 + rx_mgmt 5 + cache_tx 2 = 10 DMA-capable internal
78
+ # buffers) overflows it → esf_buf_setup_static NO_MEM → WiFi never comes up (no
79
+ # map tiles). Dynamic mgmt buffers leave the static pool and, with
80
+ # CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP=y above, allocate on demand from PSRAM.
81
+ # MUST be set here, not via the runtime wifi_init_config: flipping rx_mgmt_buf_type
82
+ # at runtime against a static-configured build asserts inside esp_wifi_init
83
+ # (panic/reboot loop). Doing it in sdkconfig keeps WIFI_INIT_CONFIG_DEFAULT consistent.
84
+ # CONFIG_ESP_WIFI_STATIC_RX_MGMT_BUFFER is not set
85
+ CONFIG_ESP_WIFI_DYNAMIC_RX_MGMT_BUFFER=y
86
+ # CONFIG_ESP_WIFI_IRAM_OPT is not set
87
+ # Measured on this board, NOT worth it for OTA. Putting the WiFi RX path in IRAM
88
+ # does what it promises — the receive phase of a 3.8 MB image went from 277 KB/s
89
+ # to 488 KB/s, because RX keeps running through the cache-disabled windows that
90
+ # esp_ota_write opens. But the same live RX path then contends with the flash
91
+ # operation it is running alongside, and the write phase fell from 502 KB/s to
92
+ # 213 KB/s. End to end that is 116 KB/s against 133 KB/s, plus ~10 KB of internal
93
+ # DRAM. Left off deliberately; do not re-enable without re-measuring both phases.
94
+ # CONFIG_ESP_WIFI_RX_IRAM_OPT is not set
95
+ # Wi-Fi driver task: IDF 5.5/6.0 no longer exposes a public
96
+ # CONFIG_ESP_WIFI_TASK_STACK_SIZE knob. targets/esp32/connectivity/wifi.cpp
97
+ # wraps wifi_init_config_t.osi_funcs task creation and bumps the closed-source
98
+ # "wifi" task to 8192 bytes there.
99
+ CONFIG_LWIP_TCPIP_TASK_STACK_SIZE=4096
100
+
101
+ # Allow lwIP to buffer out-of-sequence TCP segments. Without them a single dropped
102
+ # segment forces go-back-N retransmission of everything in flight, which (with RTO
103
+ # backoff 1.5+3+6+...s) turns one packet loss into a ~15s stall on an otherwise-fast
104
+ # link. 0 means UNCAPPED here, which is also IDF's own default whenever
105
+ # CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP is set, because the pbufs then come from
106
+ # PSRAM and are only held while a gap actually exists. The previous cap of 8 was
107
+ # below the widened receive window, so a loss early in a 16-segment window could
108
+ # not be bridged: an OTA transfer was bimodal, either ~17 s or ~87 s for the same
109
+ # 3.9 MB image under identical conditions, with the slow mode sitting in RTO backoff.
110
+ CONFIG_LWIP_TCP_OOSEQ_MAX_PBUFS=0
111
+
112
+ # Advertise selective acknowledgements. An OTA receiver drops frames every time
113
+ # esp_ota_write disables the flash cache, and without SACK the sender cannot tell
114
+ # which single segment went missing — it retransmits the whole window and backs
115
+ # off. This is the other half of the bimodal-throughput fix above.
116
+ CONFIG_LWIP_TCP_SACK_OUT=y
117
+
118
+ # TCP receive window. The IDF default of 5760 is four segments: an OTA image
119
+ # arrives through a receiver that has to stop and write to flash, and with a
120
+ # four-segment window the sender spends most of the transfer blocked waiting for
121
+ # a window update instead of keeping the link busy. Sixteen segments give the
122
+ # flash writes something to overlap with. The buffering behind the window is
123
+ # lwIP pbufs and WiFi dynamic RX frames, both of which prefer PSRAM here
124
+ # (CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP above), so this does not spend internal
125
+ # DRAM. 23040 stays under 65535, so no window scaling is required.
126
+ CONFIG_LWIP_TCP_WND_DEFAULT=23040
127
+ CONFIG_LWIP_TCP_RECVMBOX_SIZE=16
128
+
129
+ # Firmware uses STA mode for OTA/log/mirror; trim unused Wi-Fi/LwIP features.
130
+ # CONFIG_ESP_WIFI_SOFTAP_SUPPORT is not set
131
+ # CONFIG_ESP_WIFI_ENTERPRISE_SUPPORT is not set
132
+ # CONFIG_ESP_WIFI_ENABLE_WPA3_SAE is not set
133
+ # CONFIG_ESP_WIFI_ENABLE_WPA3_OWE_STA is not set
134
+ # CONFIG_LWIP_IPV6 is not set
135
+ # CONFIG_LWIP_DHCPS is not set
136
+
137
+ # Bluetooth: NimBLE dual-role for the BLE control surface. This board serves
138
+ # HID + BLE-MIDI as a peripheral AND hosts remote peripherals as a central
139
+ # (XPPen ACK05 macro pad, WIDI/pedal BLE-MIDI adapter) — 4 simultaneous links:
140
+ # desktop (our HID), DAW (our MIDI), XPPen, pedal.
141
+ CONFIG_BT_ENABLED=y
142
+ CONFIG_BT_NIMBLE_ENABLED=y
143
+ CONFIG_BT_NIMBLE_MEM_ALLOC_MODE_EXTERNAL=y
144
+ CONFIG_BT_NIMBLE_MAX_CONNECTIONS=4
145
+ CONFIG_BT_NIMBLE_ROLE_BROADCASTER=y
146
+ CONFIG_BT_NIMBLE_ROLE_PERIPHERAL=y
147
+ CONFIG_BT_NIMBLE_ROLE_CENTRAL=y
148
+ CONFIG_BT_NIMBLE_ROLE_OBSERVER=y
149
+ CONFIG_BT_NIMBLE_SM_LEGACY=y
150
+ CONFIG_BT_NIMBLE_SM_SC=y
151
+ CONFIG_BT_NIMBLE_NVS_PERSIST=y
152
+ CONFIG_BT_NIMBLE_LOG_LEVEL_NONE=y
153
+
154
+ # Pin WiFi + BT controller + NimBLE host to core 1, leaving core 0 for the app
155
+ # frame/render task (GEA_EMBEDDED_APP_FRAME_TASK_CORE=0). IDF pins all of these
156
+ # to core 0 by default, where they contend with rendering: launching an app
157
+ # through the launcher dropped to ~22 fps because the per-chunk flush wait was
158
+ # preempted (19 ms vs 1.6 ms). Moving them to core 1 restores ~60 fps. Keep
159
+ # WiFi and BT on the SAME core for coexistence (ESP_COEX_SW_COEXIST_ENABLE).
160
+ CONFIG_ESP_WIFI_TASK_PINNED_TO_CORE_1=y
161
+ CONFIG_BT_CTRL_PINNED_TO_CORE_1=y
162
+ CONFIG_BT_NIMBLE_PINNED_TO_CORE_1=y
163
+
164
+ # WebRTC: mbedTLS DTLS + DTLS-SRTP for esp_peer
165
+ # Required by espressif/esp_peer (DTLS-SRTP handshake, DTLS cookies, MTU
166
+ # config). Off by default in IDF — turning them on costs ~30-40 kB of
167
+ # mbedTLS code but is non-negotiable for SRTP-protected RTP.
168
+ CONFIG_MBEDTLS_SSL_PROTO_DTLS=y
169
+ CONFIG_MBEDTLS_SSL_DTLS_SRTP=y
170
+ CONFIG_MBEDTLS_SSL_DTLS_HELLO_VERIFY=y
171
+ CONFIG_MBEDTLS_SSL_DTLS_CLIENT_PORT_REUSE=y
172
+ CONFIG_MBEDTLS_SSL_DTLS_CONNECTION_ID=y
173
+ # esp_peer generates a self-signed DTLS cert at runtime via
174
+ # mbedtls_x509write_crt_*; those live behind MBEDTLS_X509_CREATE_C, which
175
+ # ESP-IDF 6.0 flipped to default-off (was implicitly available in 5.5). Without
176
+ # it esp_peer fails to link (implicit-declaration of mbedtls_x509write_crt_*).
177
+ CONFIG_MBEDTLS_X509_CREATE_C=y
178
+ CONFIG_MBEDTLS_X509_CRT_WRITE_C=y
179
+ CONFIG_MBEDTLS_X509_CSR_WRITE_C=y
180
+
181
+ # Allocate mbedTLS memory from PSRAM instead of internal DRAM. IDF defaults to
182
+ # INTERNAL_MEM_ALLOC, but internal RAM is scarce on this board (app + 2-deep
183
+ # flush pipeline + WiFi driver). A TLS handshake's PSA signature verification
184
+ # and 16 KB input buffer then fail to allocate, surfacing as the misleading
185
+ # "esp-x509-crt-bundle: Certificate matched but signature verification failed"
186
+ # with PSA error -141 (PSA_ERROR_INSUFFICIENT_MEMORY) — a heap shortage, not a
187
+ # trust failure. PSRAM has megabytes free; the hardware MPI/crypto path copies
188
+ # operands into the peripheral so PSRAM-resident TLS buffers are fine.
189
+ # CONFIG_MBEDTLS_INTERNAL_MEM_ALLOC is not set
190
+ CONFIG_MBEDTLS_EXTERNAL_MEM_ALLOC=y
191
+
192
+ # Run TLS crypto in SOFTWARE so it allocates from PSRAM (via EXTERNAL_MEM_ALLOC
193
+ # above) rather than DMA-capable internal SRAM. EXTERNAL_MEM_ALLOC moves the
194
+ # mbedTLS input/output buffers to PSRAM, but the ESP32-S3 SHA/MPI/AES hardware
195
+ # drivers bypass the mbedTLS allocator and demand MALLOC_CAP_DMA|MALLOC_CAP_INTERNAL
196
+ # scratch buffers (e.g. sha.c allocates a DMA buffer sized to the data being
197
+ # hashed). Once WiFi is up, internal 8-bit RAM is ~1 KB free, so those allocations
198
+ # fail mid-handshake — surfacing as mbedtls_ssl_setup -> MBEDTLS_ERR_SSL_ALLOC_FAILED
199
+ # (PSA -141) and ESP_ERR_HTTP_CONNECT on every HTTPS fetch. Software crypto keeps
200
+ # everything in PSRAM and is amply fast for the app's occasional small fetches.
201
+ # CONFIG_MBEDTLS_HARDWARE_SHA is not set
202
+ # CONFIG_MBEDTLS_HARDWARE_MPI is not set
203
+ # CONFIG_MBEDTLS_MPI_USE_INTERRUPT is not set
204
+ # CONFIG_MBEDTLS_HARDWARE_AES is not set
205
+
206
+ # Release optimization level. ESP-IDF defaults to -Og (DEBUG) which is
207
+ # friendly for debugging but leaves real perf on the table for compute-heavy
208
+ # code paths. -O2 (PERF) is the correct release setting.
209
+ CONFIG_COMPILER_OPTIMIZATION_PERF=y
210
+ # CONFIG_COMPILER_OPTIMIZATION_DEBUG is not set
211
+
212
+ # --- Development logging / diagnostics defaults ---
213
+ # VS Code launch tasks build per-app firmware under build/app-builds/<app>.
214
+ # Keep those dev builds chatty by default so serial monitor shows boot logs,
215
+ # gea.perf fps windows, frame scheduler diagnostics, and assertion failures.
216
+ # Production lockdown can still be enabled via menuconfig, but it is not the
217
+ # default for local flash/monitor iteration.
218
+ # CONFIG_GEA_EMBEDDED_PRODUCTION_LOCKDOWN is not set
219
+
220
+ # Runtime and bootloader logs visible on USB serial/JTAG.
221
+ # CONFIG_LOG_DEFAULT_LEVEL_NONE is not set
222
+ CONFIG_LOG_DEFAULT_LEVEL_INFO=y
223
+ CONFIG_LOG_DEFAULT_LEVEL=3
224
+ CONFIG_LOG_MAXIMUM_EQUALS_DEFAULT=y
225
+ CONFIG_LOG_MAXIMUM_LEVEL=3
226
+
227
+ # Keep assertions enabled in local dev builds.
228
+ # CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_DISABLE is not set
229
+ CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_ENABLE=y
230
+ CONFIG_COMPILER_OPTIMIZATION_ASSERTION_LEVEL=2
231
+ # geatsc lowers a program's `throw`/`try`/`catch` to real C++ exceptions, and
232
+ # its runtime header (`gea_runtime.h`, e.g. the regex cache's std::regex_error
233
+ # translation) contains typed catch handlers unconditionally. ESP-IDF's default
234
+ # stubs __cxa_throw to abort and compiles with -fno-exceptions, under which
235
+ # gcc rejects those handlers -- so no geatsc-generated app compiles for this
236
+ # board without exception support. The emergency pool stays 0: the cost is
237
+ # unwind tables in flash and ~500 B of heap on the first throw, nothing at rest.
238
+ CONFIG_COMPILER_CXX_EXCEPTIONS=y
239
+ CONFIG_COMPILER_CXX_EXCEPTIONS_EMG_POOL_SIZE=0
240
+
241
+ # Keep early boot output visible too.
242
+ # CONFIG_BOOTLOADER_LOG_LEVEL_NONE is not set
243
+ CONFIG_BOOTLOADER_LOG_LEVEL_INFO=y
244
+ CONFIG_BOOTLOADER_LOG_LEVEL=3
245
+
246
+ # Diagnostic allocation attribution. Keep standalone heap tracing available for
247
+ # app-init fragmentation investigations; trace records are placed in PSRAM by
248
+ # the caller, and tracing remains idle unless explicitly started.
249
+ # Heap tracing costs about a kilobyte of IRAM (1,067 bytes measured on
250
+ # esp32-s3-touch-amoled-2.06) and puts a hook on the allocator's hot path. On the
251
+ # S3 that IRAM is not free space: the linker sizes .dram0.dummy to whatever IRAM
252
+ # the image used, so every byte of .iram0.text is a byte the internal heap never
253
+ # gets -- and the internal heap is what DMA, USB host enumeration and aligned
254
+ # coefficient banks come out of. The framework's only users, the display and
255
+ # AXP2101 init traces, are already gated on GEA_EMBEDDED_HEAP_DIAGNOSTICS_LOG,
256
+ # which defaults to 0. So nothing traced by default and every app paid for it.
257
+ # Turn this and that macro on together when you actually want a trace.
258
+ CONFIG_HEAP_TRACING_OFF=y
259
+ # CONFIG_HEAP_TRACING_STANDALONE is not set
260
+ # CONFIG_HEAP_TRACING_TOHOST is not set
261
+ # CONFIG_HEAP_TRACING is not set
262
+ # CONFIG_HEAP_TRACE_HASH_MAP is not set
263
+
264
+ # Instruction cache: the default 16 KB / 32-byte-line I-cache thrashes on
265
+ # frame loops that touch libm. Measured on bubble-grid: a Math.pow costs
266
+ # 25.4k cycles cold but 6.5k warm back-to-back, and Date.now 11.5k vs 4.1k --
267
+ # i.e. ~19k and ~7.4k cycles per frame are pure cold-flash refetch, because
268
+ # the rest of the frame evicts the routine before the next frame calls it.
269
+ # 32 KB holds more of the frame's working set. (S3's I-cache line size is
270
+ # 16B or 32B only -- there is no 64B option.) the gea CLI also enforces this
271
+ # on every build, because the generated sdkconfig is sticky and defaults only
272
+ # fill values that an existing build directory has not already frozen.
273
+ CONFIG_ESP32S3_INSTRUCTION_CACHE_32KB=y