@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,136 @@
1
+
2
+ /******************************************************************************/
3
+ /*** include files ***/
4
+ /******************************************************************************/
5
+
6
+ #include "rmt_pulse.h"
7
+
8
+ #include "esp_idf_version.h" // ESP_IDF_VERSION_MAJOR — not transitively included on IDF 6
9
+
10
+ #if ESP_IDF_VERSION_MAJOR >= 5 // IDF 5+ — new RMT TX driver (driver_ng)
11
+ #include <driver/rmt_tx.h>
12
+ #include <driver/rmt_encoder.h>
13
+ #include <freertos/FreeRTOS.h> // portMAX_DELAY
14
+ #else
15
+ #include <driver/rmt.h>
16
+ #endif
17
+
18
+ #include <esp_log.h>
19
+
20
+ /******************************************************************************/
21
+ /*** local variables ***/
22
+ /******************************************************************************/
23
+
24
+ #if ESP_IDF_VERSION_MAJOR >= 5
25
+
26
+ static rmt_channel_handle_t rmt_chan = NULL;
27
+ static rmt_encoder_handle_t copy_encoder = NULL;
28
+
29
+ #else
30
+
31
+ /**
32
+ * @brief the RMT channel configuration object
33
+ */
34
+ static rmt_config_t row_rmt_config;
35
+
36
+ #endif
37
+
38
+ /******************************************************************************/
39
+ /*** exported functions ***/
40
+ /******************************************************************************/
41
+
42
+ void rmt_pulse_init(gpio_num_t pin)
43
+ {
44
+ #if ESP_IDF_VERSION_MAJOR >= 5
45
+ rmt_tx_channel_config_t tx_chan_config = {
46
+ .clk_src = RMT_CLK_SRC_DEFAULT,
47
+ .gpio_num = pin,
48
+ .mem_block_symbols = 64,
49
+ // 10 MHz -> 0.1 us resolution (same as legacy clk_div=8 on 80MHz APB)
50
+ .resolution_hz = 10 * 1000 * 1000,
51
+ .trans_queue_depth = 4,
52
+ .flags.invert_out = false,
53
+ .flags.with_dma = false,
54
+ };
55
+ ESP_ERROR_CHECK(rmt_new_tx_channel(&tx_chan_config, &rmt_chan));
56
+
57
+ rmt_copy_encoder_config_t copy_encoder_config = {};
58
+ ESP_ERROR_CHECK(rmt_new_copy_encoder(&copy_encoder_config, &copy_encoder));
59
+
60
+ ESP_ERROR_CHECK(rmt_enable(rmt_chan));
61
+ #else
62
+ row_rmt_config.rmt_mode = RMT_MODE_TX;
63
+ // currently hardcoded: use channel 1
64
+ row_rmt_config.channel = RMT_CHANNEL_1;
65
+
66
+ row_rmt_config.gpio_num = pin;
67
+ row_rmt_config.mem_block_num = 2;
68
+
69
+ // Divide 80MHz APB Clock by 8 -> .1us resolution delay
70
+ row_rmt_config.clk_div = 8;
71
+
72
+ row_rmt_config.tx_config.loop_en = false;
73
+ row_rmt_config.tx_config.carrier_en = false;
74
+ row_rmt_config.tx_config.carrier_level = RMT_CARRIER_LEVEL_LOW;
75
+ row_rmt_config.tx_config.idle_level = RMT_IDLE_LEVEL_LOW;
76
+ row_rmt_config.tx_config.idle_output_en = true;
77
+
78
+ rmt_config(&row_rmt_config);
79
+ rmt_driver_install(RMT_CHANNEL_1, 0, 0);
80
+ #endif
81
+ }
82
+
83
+
84
+ void IRAM_ATTR pulse_ckv_ticks(uint16_t high_time_ticks,
85
+ uint16_t low_time_ticks, bool wait)
86
+ {
87
+ #if ESP_IDF_VERSION_MAJOR >= 5
88
+ rmt_symbol_word_t symbol;
89
+ if (high_time_ticks > 0) {
90
+ symbol.level0 = 1;
91
+ symbol.duration0 = high_time_ticks;
92
+ symbol.level1 = 0;
93
+ symbol.duration1 = low_time_ticks > 0 ? low_time_ticks : 1;
94
+ } else {
95
+ symbol.level0 = 1;
96
+ symbol.duration0 = low_time_ticks;
97
+ symbol.level1 = 0;
98
+ symbol.duration1 = 1;
99
+ }
100
+
101
+ rmt_transmit_config_t tx_config = {
102
+ .loop_count = 0,
103
+ };
104
+ rmt_transmit(rmt_chan, copy_encoder, &symbol, sizeof(symbol), &tx_config);
105
+ if (wait) {
106
+ rmt_tx_wait_all_done(rmt_chan, portMAX_DELAY);
107
+ }
108
+ #else
109
+ rmt_item32_t rmt_mem_ptr;
110
+ if (high_time_ticks > 0)
111
+ {
112
+ rmt_mem_ptr.level0 = 1;
113
+ rmt_mem_ptr.duration0 = high_time_ticks;
114
+ rmt_mem_ptr.level1 = 0;
115
+ rmt_mem_ptr.duration1 = low_time_ticks;
116
+ }
117
+ else
118
+ {
119
+ rmt_mem_ptr.level0 = 1;
120
+ rmt_mem_ptr.duration0 = low_time_ticks;
121
+ rmt_mem_ptr.level1 = 0;
122
+ rmt_mem_ptr.duration1 = 0;
123
+ }
124
+ rmt_write_items(row_rmt_config.channel, &rmt_mem_ptr, 1, wait);
125
+ #endif
126
+ }
127
+
128
+
129
+ void IRAM_ATTR pulse_ckv_us(uint16_t high_time_us, uint16_t low_time_us, bool wait)
130
+ {
131
+ pulse_ckv_ticks(10 * high_time_us, 10 * low_time_us, wait);
132
+ }
133
+
134
+ /******************************************************************************/
135
+ /*** END OF FILE ***/
136
+ /******************************************************************************/
@@ -0,0 +1,78 @@
1
+ /**
2
+ * Emit a pulse of precise length on a pin, using the RMT peripheral.
3
+ */
4
+
5
+ #ifndef _RMT_PULSE_H_
6
+ #define _RMT_PULSE_H_
7
+
8
+ #ifdef __cplusplus
9
+ extern "C" {
10
+ #endif
11
+
12
+ /******************************************************************************/
13
+ /*** include files ***/
14
+ /******************************************************************************/
15
+
16
+ #include <stdint.h>
17
+
18
+ #include <driver/gpio.h>
19
+ #include <esp_attr.h>
20
+
21
+ /******************************************************************************/
22
+ /*** macro definitions ***/
23
+ /******************************************************************************/
24
+
25
+ /******************************************************************************/
26
+ /*** type definitions ***/
27
+ /******************************************************************************/
28
+
29
+ /******************************************************************************/
30
+ /*** exported variables ***/
31
+ /******************************************************************************/
32
+
33
+ /******************************************************************************/
34
+ /*** exported functions ***/
35
+ /******************************************************************************/
36
+
37
+ /**
38
+ * @brief Initializes RMT Channel 0 with a pin for RMT pulsing.
39
+ *
40
+ * @note The pin will have to be re-initialized if subsequently used as GPIO.
41
+ */
42
+ void rmt_pulse_init(gpio_num_t pin);
43
+
44
+ /**
45
+ * @brief Outputs a single pulse (high -> low) on the configured pin.
46
+ *
47
+ * @note This function will always wait for a previous call to finish.
48
+ *
49
+ * @param high_time_us Pulse high time in us.
50
+ * @param low_time_us Pulse low time in us.
51
+ * @param wait Block until the pulse is finished.
52
+ */
53
+ void IRAM_ATTR pulse_ckv_us(uint16_t high_time_us, uint16_t low_time_us, bool wait);
54
+
55
+ /**
56
+ * @brief Indicates if the rmt is currently sending a pulse.
57
+ */
58
+ bool IRAM_ATTR rmt_busy();
59
+
60
+ /**
61
+ * @brief Outputs a single pulse (high -> low) on the configured pin.
62
+ *
63
+ * @note This function will always wait for a previous call to finish.
64
+ *
65
+ * @param high_time_us Pulse high time clock ticks.
66
+ * @param low_time_us Pulse low time in clock ticks.
67
+ * @param wait Block until the pulse is finished.
68
+ */
69
+ void IRAM_ATTR pulse_ckv_ticks(uint16_t high_time_us, uint16_t low_time_us, bool wait);
70
+
71
+ #ifdef __cplusplus
72
+ }
73
+ #endif
74
+
75
+ #endif
76
+ /******************************************************************************/
77
+ /*** END OF FILE ***/
78
+ /******************************************************************************/
@@ -0,0 +1,49 @@
1
+ #pragma once
2
+
3
+ #if defined(CONFIG_IDF_TARGET_ESP32)
4
+
5
+
6
+
7
+ #define BUTTON_1 (34)
8
+ #define BUTTON_2 (35)
9
+ #define BUTTON_3 (39)
10
+
11
+ #define BATT_PIN (36)
12
+
13
+ #define SD_MISO (12)
14
+ #define SD_MOSI (13)
15
+ #define SD_SCLK (14)
16
+ #define SD_CS (15)
17
+
18
+ #define BOARD_SCL (14)
19
+ #define BOARD_SDA (15)
20
+ #define TOUCH_INT (13)
21
+
22
+ #define GPIO_MISO (12)
23
+ #define GPIO_MOSI (13)
24
+ #define GPIO_SCLK (14)
25
+ #define GPIO_CS (15)
26
+
27
+ #elif defined(CONFIG_IDF_TARGET_ESP32S3)
28
+
29
+
30
+ #define BUTTON_1 (21)
31
+
32
+ #define BATT_PIN (14)
33
+
34
+ #define SD_MISO (16)
35
+ #define SD_MOSI (15)
36
+ #define SD_SCLK (11)
37
+ #define SD_CS (42)
38
+
39
+ #define BOARD_SCL (17)
40
+ #define BOARD_SDA (18)
41
+ #define TOUCH_INT (47)
42
+
43
+ #define GPIO_MISO (45)
44
+ #define GPIO_MOSI (10)
45
+ #define GPIO_SCLK (48)
46
+ #define GPIO_CS (39)
47
+
48
+
49
+ #endif
@@ -0,0 +1,35 @@
1
+ dependencies:
2
+ espressif/esp_lcd_touch:
3
+ component_hash: 3f85a7d95af876f1a6ecca8eb90a81614890d0f03a038390804e5a77e2caf862
4
+ dependencies:
5
+ - name: idf
6
+ require: private
7
+ version: '>=4.4.2'
8
+ source:
9
+ registry_url: https://components.espressif.com
10
+ type: service
11
+ version: 1.2.1
12
+ espressif/esp_lcd_touch_gt911:
13
+ component_hash: 6029febef66eefd0910d527d7f30292779ccbf22a8dedd2bd69466acf0068a7b
14
+ dependencies:
15
+ - name: espressif/esp_lcd_touch
16
+ registry_url: https://components.espressif.com
17
+ require: public
18
+ version: ^1.2.0
19
+ - name: idf
20
+ require: private
21
+ version: '>=5.2'
22
+ source:
23
+ registry_url: https://components.espressif.com/
24
+ type: service
25
+ version: 1.2.0~2
26
+ idf:
27
+ source:
28
+ type: idf
29
+ version: 6.0.2
30
+ direct_dependencies:
31
+ - espressif/esp_lcd_touch_gt911
32
+ - idf
33
+ manifest_hash: c96fa2c56670477a31037cc89d452c6c3e6dff6afdcc1d05fa843f9b00913bc3
34
+ target: esp32s3
35
+ version: 3.0.0
@@ -0,0 +1,30 @@
1
+ # The Gea app pipeline is common to the ESP32 e-paper boards. Keep only the
2
+ # LilyGo T5 4.7" hardware/profile choices here; the included component
3
+ # definition (shared with the other e-paper targets) resolves sources relative
4
+ # to this component directory and picks up this board's own display.cpp/board.h.
5
+ set(GEA_EMBEDDED_TARGET_MAIN_DIR "${CMAKE_CURRENT_LIST_DIR}")
6
+ set(GEA_EMBEDDED_TARGET_CPP_BOARD "esp32-s3-lilygo-t5-epaper-4.7")
7
+ set(GEA_EMBEDDED_TARGET_DISPLAY_WIDTH 540)
8
+ set(GEA_EMBEDDED_TARGET_DISPLAY_HEIGHT 960)
9
+ set(GEA_EMBEDDED_TARGET_DISPLAY_NATIVE_WIDTH 540)
10
+ set(GEA_EMBEDDED_TARGET_DISPLAY_NATIVE_HEIGHT 960)
11
+ set(GEA_EMBEDDED_TARGET_CSS_DEVICE_PIXEL_RATIO "1.0")
12
+ set(GEA_EMBEDDED_TARGET_AUDIO_SOURCE "${CMAKE_CURRENT_LIST_DIR}/audio_stub.cpp")
13
+ set(GEA_EMBEDDED_TARGET_AUDIO_RUNTIME_SOURCE "${CMAKE_CURRENT_LIST_DIR}/../../esp32/services/audio_runtime_stub.cpp")
14
+ # epd_driver: our board-local vendored ED047TC1 low-level driver (components/).
15
+ set(GEA_EMBEDDED_TARGET_EXTRA_REQUIRES esp_adc bootloader_support spi_flash esp_psram epd_driver)
16
+ set(GEA_EMBEDDED_TARGET_COMPILE_DEFINITIONS
17
+ # No speaker/mic on this board.
18
+ GEA_EMBEDDED_AUDIO_DISABLED=1
19
+ # Note: unlike the classic-ESP32 M5Paper we do NOT set GEA_EMBEDDED_ROM_TJPGD
20
+ # (its "esp32/rom/tjpgd.h" is ESP32-only). The S3's 8 MB PSRAM lets stb_image
21
+ # decode full-page EPUB covers, matching the other S3 targets.
22
+ # Large images decode to 1-channel grayscale (this is a grayscale e-paper).
23
+ GEA_EMBEDDED_IMAGE_GRAYSCALE_DECODE=1
24
+ # Render straight into the panel's native 16-level, 4-bit packed format
25
+ # (GEA_PIXEL_GRAY4). The Canvas framebuffer IS the grayscale buffer.
26
+ GEA_EMBEDDED_PIXEL_FORMAT=3
27
+ GEA_EMBEDDED_RUNTIME_TASK_STACK_BYTES=32768
28
+ )
29
+
30
+ include("${CMAKE_CURRENT_LIST_DIR}/../../esp32-s3-epaper-1.54/main/CMakeLists.txt")
@@ -0,0 +1,10 @@
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.
9
+
10
+ endmenu
@@ -0,0 +1,95 @@
1
+ #include "gea_embedded_app_config.h"
2
+
3
+ #include "apps/app_manager.h"
4
+ #include "board.h"
5
+ #include "buttons.h"
6
+ #include "connectivity/ble_hid.h"
7
+ #include "display.h"
8
+ #include "memory_config.h"
9
+ #include "runtime.h"
10
+ #include "services/device_control.h"
11
+
12
+ #include "esp_heap_caps.h"
13
+ #include "esp_log.h"
14
+ #include "freertos/FreeRTOS.h"
15
+ #include "freertos/idf_additions.h"
16
+ #include "freertos/task.h"
17
+ #include "sdkconfig.h"
18
+
19
+ #include <cstdlib>
20
+
21
+ namespace gea::targets::esp32::wifi {
22
+ void registerDriver();
23
+ }
24
+ namespace gea::platform::storage {
25
+ void installSdCardFileCache();
26
+ }
27
+
28
+ namespace {
29
+
30
+ constexpr char kTag[] = "gea_lilygo_t5";
31
+
32
+ #ifndef GEA_EMBEDDED_RUNTIME_TASK_STACK_BYTES
33
+ #define GEA_EMBEDDED_RUNTIME_TASK_STACK_BYTES (32 * 1024)
34
+ #endif
35
+
36
+ constexpr int kRuntimeTaskStackBytes = GEA_EMBEDDED_RUNTIME_TASK_STACK_BYTES;
37
+
38
+ [[noreturn]] void runGeaRuntime()
39
+ {
40
+ // Unlike the M5Paper, this board has no discrete power-rail GPIOs to latch:
41
+ // the ED047TC1 rails come up inside the display engine (epd_poweron via the
42
+ // CFG shift register), so display init owns power sequencing.
43
+ gea::platform::lilygo_t5::buttons::init();
44
+ gea::platform::storage::installSdCardFileCache();
45
+
46
+ // These explicit references keep registration-only translation units alive
47
+ // when the component archive is linked with --gc-sections.
48
+ (void)gea::platform::esp32::apps::launcherPlatform();
49
+ #ifndef GEA_EMBEDDED_WIFI_DISABLED
50
+ gea::targets::esp32::wifi::registerDriver();
51
+ #endif
52
+ #ifndef GEA_EMBEDDED_BLE_DISABLED
53
+ gea::targets::esp32::ble::registerHidDriver();
54
+ #endif
55
+
56
+ gea::platform::esp32::services::startDeviceControlTask();
57
+
58
+ gea::framework::RuntimeOptions options{};
59
+ options.width = gea::platform::display::kWidth;
60
+ options.height = gea::platform::display::kHeight;
61
+ gea::framework::Runtime::run(options);
62
+
63
+ ESP_LOGE(kTag, "Runtime returned unexpectedly; parking runtime task");
64
+ for (;;) vTaskDelay(pdMS_TO_TICKS(1000));
65
+ }
66
+
67
+ void runtimeTask(void *)
68
+ {
69
+ ESP_LOGI(kTag, "Gea runtime task started stack=%d hwm=%u", kRuntimeTaskStackBytes,
70
+ static_cast<unsigned>(uxTaskGetStackHighWaterMark(nullptr)));
71
+ runGeaRuntime();
72
+ }
73
+
74
+ } // namespace
75
+
76
+ extern "C" void app_main(void)
77
+ {
78
+ // Keep the ROM-startup bootstrap stack small, then allocate the real Gea
79
+ // runtime stack from the large contiguous internal block that ESP-IDF frees
80
+ // after startup. Returning deletes the bootstrap task and reclaims its stack.
81
+ TaskHandle_t runtime = nullptr;
82
+ const BaseType_t created = xTaskCreateWithCaps(
83
+ &runtimeTask,
84
+ "gea_runtime",
85
+ kRuntimeTaskStackBytes,
86
+ nullptr,
87
+ 5,
88
+ &runtime,
89
+ MALLOC_CAP_INTERNAL | MALLOC_CAP_8BIT);
90
+ if (created != pdPASS) {
91
+ ESP_LOGE(kTag, "Failed to allocate %d-byte Gea runtime stack", kRuntimeTaskStackBytes);
92
+ std::abort();
93
+ }
94
+ ESP_LOGI(kTag, "Bootstrap complete; Gea runtime task=%p stack=%d", runtime, kRuntimeTaskStackBytes);
95
+ }
@@ -0,0 +1,27 @@
1
+ #define GEA_AUDIO_DRIVER_INTERNAL 1
2
+ #include "audio.h"
3
+ #include "host/media.h"
4
+
5
+ namespace {
6
+
7
+ int outputVolume = 50;
8
+
9
+ } // namespace
10
+
11
+ bool gea::platform::audio::OutputDriver::open(int, int, int) { return false; }
12
+ bool gea::platform::audio::OutputDriver::write(const std::int16_t *, std::size_t, int) { return false; }
13
+ void gea::platform::audio::OutputDriver::close() {}
14
+ int gea::platform::audio::OutputDriver::volume() { return outputVolume; }
15
+ void gea::platform::audio::OutputDriver::setVolume(int value)
16
+ {
17
+ if (value < 0) value = 0;
18
+ if (value > 100) value = 100;
19
+ outputVolume = value;
20
+ }
21
+
22
+ namespace gea::host::media {
23
+
24
+ void platform_attach_track(NativeMediaTrackHandle) {}
25
+ void platform_detach_track(NativeMediaTrackHandle) {}
26
+
27
+ } // namespace gea::host::media
@@ -0,0 +1,40 @@
1
+ #include "buttons.h"
2
+
3
+ #include "board.h"
4
+
5
+ #include "driver/gpio.h"
6
+ #include "esp_log.h"
7
+
8
+ namespace gea::platform::lilygo_t5::buttons {
9
+
10
+ namespace {
11
+
12
+ constexpr char kTag[] = "lilygo_t5_buttons";
13
+ bool initialized = false;
14
+
15
+ } // namespace
16
+
17
+ void init()
18
+ {
19
+ if (initialized) return;
20
+ // The single physical button (shared with the launcher/back handler in
21
+ // launcher_button.cpp) is an input with an internal pull-up. Paging in the
22
+ // reader is driven by the GT911 touch panel, so this file stays minimal.
23
+ gpio_config_t config = {};
24
+ config.pin_bit_mask = 1ULL << gea::platform::board::buttons.power;
25
+ config.mode = GPIO_MODE_INPUT;
26
+ config.pull_up_en = GPIO_PULLUP_ENABLE;
27
+ config.pull_down_en = GPIO_PULLDOWN_DISABLE;
28
+ config.intr_type = GPIO_INTR_DISABLE;
29
+ ESP_ERROR_CHECK_WITHOUT_ABORT(gpio_config(&config));
30
+ initialized = true;
31
+ ESP_LOGI(kTag, "button init on GPIO%d", static_cast<int>(gea::platform::board::buttons.power));
32
+ }
33
+
34
+ void poll(int)
35
+ {
36
+ // launcher_button.cpp owns the button semantics on its own task; nothing to
37
+ // sample on the frame loop.
38
+ }
39
+
40
+ } // namespace gea::platform::lilygo_t5::buttons