@geastack/targets 0.1.87 → 0.1.89

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 (81) hide show
  1. package/package.json +7 -7
  2. package/targets/esp32/app_project.cmake +18 -1
  3. package/targets/esp32/chip_bindings/audio/echo_cancellation.cpp +229 -0
  4. package/targets/esp32/chip_bindings/audio/echo_cancellation.h +13 -0
  5. package/targets/esp32/chip_bindings/audio/es8311.cpp +293 -45
  6. package/targets/esp32/chip_bindings/displays/rgb_panel.cpp +115 -12
  7. package/targets/esp32/chip_bindings/expanders/io_expander.h +2 -0
  8. package/targets/esp32/chip_bindings/expanders/tca9554.cpp +74 -0
  9. package/targets/esp32/chip_bindings/touch/ft3168.cpp +23 -1
  10. package/targets/esp32/chip_bindings/touch/ft3168_controller.h +1 -0
  11. package/targets/esp32/chip_bindings/touch/gt911.cpp +4 -3
  12. package/targets/esp32/components/gea_framework/CMakeLists.txt +8 -1
  13. package/targets/esp32/components/gea_juice/CMakeLists.txt +46 -0
  14. package/targets/esp32/components/gea_juice/README.md +20 -0
  15. package/targets/esp32/components/gea_juice/juice_memory.c +19 -0
  16. package/targets/esp32/components/gea_juice/juice_memory.h +16 -0
  17. package/targets/esp32/components/gea_juice/patch_threads.py +50 -0
  18. package/targets/esp32/components/gea_vp8_peer/CMakeLists.txt +16 -0
  19. package/targets/esp32/components/gea_vp8_peer/README.md +39 -0
  20. package/targets/esp32/components/gea_vp8_peer/gea_vp8_peer.h +21 -0
  21. package/targets/esp32/components/gea_vp8_peer/vp8_peer.cpp +538 -0
  22. package/targets/esp32/components/gea_vpx/CMakeLists.txt +235 -0
  23. package/targets/esp32/components/gea_vpx/README.md +133 -0
  24. package/targets/esp32/components/gea_vpx/i420_rgb565_s3.S +169 -0
  25. package/targets/esp32/components/gea_vpx/vp8_blocks_s3.c +42 -0
  26. package/targets/esp32/components/gea_vpx/vp8_copy_s3.S +39 -0
  27. package/targets/esp32/components/gea_vpx/vp8_entropy_s3.c +76 -0
  28. package/targets/esp32/components/gea_vpx/vp8_filter_s3.S +58 -0
  29. package/targets/esp32/components/gea_vpx/vp8_idct_s3.S +269 -0
  30. package/targets/esp32/components/gea_vpx/vp8_intrapred_s3.S +65 -0
  31. package/targets/esp32/components/gea_vpx/vp8_loopfilter_s3.S +333 -0
  32. package/targets/esp32/components/gea_vpx/vp8_loopfilter_s3.c +62 -0
  33. package/targets/esp32/components/gea_vpx/vp8_profile_s3.c +22 -0
  34. package/targets/esp32/components/gea_vpx/vp8_profile_s3.h +20 -0
  35. package/targets/esp32/components/gea_vpx/vp8_s3.c +120 -0
  36. package/targets/esp32/components/gea_vpx/vp8_s3.h +58 -0
  37. package/targets/esp32/components/gea_vpx/vp8_workspace_s3.c +14 -0
  38. package/targets/esp32/components/gea_vpx/vpx_memory.c +41 -0
  39. package/targets/esp32/connectivity/diagnostics_transport.cpp +18 -0
  40. package/targets/esp32/connectivity/wifi.cpp +30 -13
  41. package/targets/esp32/crypto/srtp_hmac_psa.c +118 -0
  42. package/targets/esp32/display.cpp +21 -0
  43. package/targets/esp32/gea_framework.cmake +7 -0
  44. package/targets/esp32/host_sources.cmake +2 -0
  45. package/targets/esp32/i2c_completion_order.cmake +57 -0
  46. package/targets/esp32/patch_streaming_dependencies.py +233 -0
  47. package/targets/esp32/services/device_control.cpp +209 -7
  48. package/targets/esp32/services/frame_scheduler.cpp +36 -1
  49. package/targets/esp32/services/opus_benchmark.h +82 -0
  50. package/targets/esp32/services/pcm_simd_check.h +73 -0
  51. package/targets/esp32/services/srtp_benchmark.h +106 -0
  52. package/targets/esp32/services/video_simd_benchmark.h +477 -0
  53. package/targets/esp32/services/vp8_benchmark.h +147 -0
  54. package/targets/esp32/streaming_dependency_patches.cmake +103 -0
  55. package/targets/esp32-m5stack-m5paper/main/idf_component.yml +2 -0
  56. package/targets/esp32-p4-m5stack-tab5/main/idf_component.yml +2 -0
  57. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/idf_component.yml +2 -0
  58. package/targets/esp32-p4-waveshare-touch-lcd-7/main/idf_component.yml +2 -0
  59. package/targets/esp32-s3-elecrow-rotary-2.1/main/idf_component.yml +2 -0
  60. package/targets/esp32-s3-epaper-1.54/main/idf_component.yml +2 -0
  61. package/targets/esp32-s3-lilygo-t-display-s3-long/main/idf_component.yml +2 -0
  62. package/targets/esp32-s3-m5stack-papers3/main/idf_component.yml +2 -0
  63. package/targets/esp32-s3-m5stack-sticks3/main/idf_component.yml +2 -0
  64. package/targets/esp32-s3-touch-amoled-1.75/main/idf_component.yml +2 -0
  65. package/targets/esp32-s3-touch-amoled-1.8/dependencies.lock +125 -2
  66. package/targets/esp32-s3-touch-amoled-1.8/main/CMakeLists.txt +29 -3
  67. package/targets/esp32-s3-touch-amoled-1.8/main/app_main.cpp +6 -3
  68. package/targets/esp32-s3-touch-amoled-1.8/main/idf_component.yml +15 -0
  69. package/targets/esp32-s3-touch-amoled-1.8/main/include/board.h +12 -0
  70. package/targets/esp32-s3-touch-amoled-1.8/sdkconfig.defaults +9 -1
  71. package/targets/esp32-s3-touch-amoled-2.06/CMakeLists.txt +2 -0
  72. package/targets/esp32-s3-touch-amoled-2.06/dependencies.lock +172 -8
  73. package/targets/esp32-s3-touch-amoled-2.06/main/CMakeLists.txt +9 -1
  74. package/targets/esp32-s3-touch-amoled-2.06/main/app_main.cpp +10 -3
  75. package/targets/esp32-s3-touch-amoled-2.06/main/idf_component.yml +21 -1
  76. package/targets/esp32-s3-touch-amoled-2.06/main/include/board.h +10 -0
  77. package/targets/esp32-s3-touch-amoled-2.06/main/touch.cpp +7 -0
  78. package/targets/esp32-s3-touch-amoled-2.41/dependencies.lock +57 -1
  79. package/targets/esp32-s3-touch-amoled-2.41/main/idf_component.yml +10 -0
  80. package/targets/esp32-s3-waveshare-touch-lcd-4b.json +504 -0
  81. package/targets.json +12 -1
@@ -0,0 +1,103 @@
1
+ # Apply after component registration, so each target's final source list exists.
2
+ # Generated files live in the normal IDF output; managed SDK sources are untouched.
3
+ function(gea_patch_streaming_dependencies)
4
+ find_package(Python3 REQUIRED COMPONENTS Interpreter)
5
+ # Espressif's libsrtp package defaults to its portable AES/SHA routines.
6
+ # Selecting IDF hardware crypto alone does not accelerate those routines;
7
+ # use libsrtp's existing mbedTLS backends when the app enables it.
8
+ if(TARGET __idf_espressif__esp_libsrtp AND CONFIG_MBEDTLS_HARDWARE_AES)
9
+ set(_srtp_target __idf_espressif__esp_libsrtp)
10
+ get_target_property(_srtp_dir "${_srtp_target}" SOURCE_DIR)
11
+ get_target_property(_srtp_sources "${_srtp_target}" SOURCES)
12
+ set(_srtp_aes "${_srtp_dir}/libsrtp/crypto/cipher/aes_icm_mbedtls.c")
13
+ set(_srtp_psa_hmac FALSE)
14
+ if(IDF_VERSION_MAJOR GREATER_EQUAL 6 AND CONFIG_MBEDTLS_HARDWARE_SHA)
15
+ set(_srtp_psa_hmac TRUE)
16
+ target_include_directories("${_srtp_target}" PRIVATE "${_srtp_dir}/libsrtp/crypto/hash")
17
+ endif()
18
+ if(IDF_VERSION_MAJOR GREATER_EQUAL 6)
19
+ set(_srtp_aes "${CMAKE_BINARY_DIR}/gea_srtp_aes.c")
20
+ foreach(_aes_spec "srtp_aes|libsrtp/crypto/cipher/aes_icm_mbedtls.c|gea_srtp_aes.c"
21
+ "srtp_aes_header|libsrtp/crypto/include/aes_icm_ext.h|gea_srtp_aes_icm.h")
22
+ string(REPLACE "|" ";" _aes_parts "${_aes_spec}")
23
+ list(GET _aes_parts 0 _aes_kind)
24
+ list(GET _aes_parts 1 _aes_source)
25
+ list(GET _aes_parts 2 _aes_output)
26
+ execute_process(COMMAND "${Python3_EXECUTABLE}"
27
+ "${CMAKE_CURRENT_FUNCTION_LIST_DIR}/patch_streaming_dependencies.py"
28
+ "${_aes_kind}" "${_srtp_dir}/${_aes_source}" "${CMAKE_BINARY_DIR}/${_aes_output}"
29
+ COMMAND_ERROR_IS_FATAL ANY)
30
+ endforeach()
31
+ target_include_directories("${_srtp_target}" PRIVATE "${CMAKE_BINARY_DIR}"
32
+ "${_srtp_dir}/libsrtp/crypto/cipher")
33
+ endif()
34
+ set(_srtp_replacement "")
35
+ foreach(_source IN LISTS _srtp_sources)
36
+ if(_source MATCHES "(^|/)libsrtp/crypto/cipher/aes\\.c$")
37
+ continue()
38
+ elseif((IDF_VERSION_MAJOR LESS 6 OR _srtp_psa_hmac) AND _source MATCHES "(^|/)libsrtp/crypto/hash/sha1\\.c$")
39
+ continue()
40
+ elseif(_source MATCHES "(^|/)libsrtp/crypto/cipher/aes_icm\\.c$")
41
+ list(APPEND _srtp_replacement "${_srtp_aes}")
42
+ elseif(_source MATCHES "(^|/)libsrtp/crypto/hash/hmac\\.c$")
43
+ if(_srtp_psa_hmac)
44
+ list(APPEND _srtp_replacement "${CMAKE_CURRENT_FUNCTION_LIST_DIR}/crypto/srtp_hmac_psa.c")
45
+ elseif(IDF_VERSION_MAJOR LESS 6)
46
+ list(APPEND _srtp_replacement "${_srtp_dir}/libsrtp/crypto/hash/hmac_mbedtls.c")
47
+ else()
48
+ list(APPEND _srtp_replacement "${_source}")
49
+ endif()
50
+ else()
51
+ list(APPEND _srtp_replacement "${_source}")
52
+ endif()
53
+ endforeach()
54
+ set_property(TARGET "${_srtp_target}" PROPERTY SOURCES "${_srtp_replacement}")
55
+ target_compile_definitions("${_srtp_target}" PRIVATE MBEDTLS)
56
+ target_link_libraries("${_srtp_target}" PUBLIC idf::mbedtls)
57
+ message(STATUS "Gea SRTP: hardware AES-ICM enabled, PSA HMAC=${_srtp_psa_hmac}")
58
+ endif()
59
+ foreach(_spec "websocket|espressif__esp_websocket_client|esp_websocket_client.c"
60
+ "ws_transport|tcp_transport|transport_ws.c"
61
+ "codec|espressif__esp_codec_dev|platform/audio_codec_data_i2s.c")
62
+ string(REPLACE "|" ";" _parts "${_spec}")
63
+ list(GET _parts 0 _kind)
64
+ list(GET _parts 1 _component)
65
+ list(GET _parts 2 _relative)
66
+ set(_target "__idf_${_component}")
67
+ if(NOT TARGET "${_target}")
68
+ continue()
69
+ endif()
70
+ get_target_property(_dir "${_target}" SOURCE_DIR)
71
+ get_target_property(_sources "${_target}" SOURCES)
72
+ if(_kind STREQUAL "ws_transport" AND NOT CONFIG_WS_TRANSPORT)
73
+ continue()
74
+ endif()
75
+ set(_generated "${CMAKE_BINARY_DIR}/gea_${_kind}_patched.c")
76
+ execute_process(COMMAND "${Python3_EXECUTABLE}"
77
+ "${CMAKE_CURRENT_FUNCTION_LIST_DIR}/patch_streaming_dependencies.py"
78
+ "${_kind}" "${_dir}/${_relative}" "${_generated}"
79
+ RESULT_VARIABLE _result)
80
+ if(NOT _result EQUAL 0)
81
+ message(FATAL_ERROR "Gea ${_kind} SDK patch failed; source version must be reviewed")
82
+ endif()
83
+ set(_replacement "")
84
+ set(_found FALSE)
85
+ foreach(_source IN LISTS _sources)
86
+ if(_source STREQUAL "${_relative}" OR _source STREQUAL "${_dir}/${_relative}")
87
+ list(APPEND _replacement "${_generated}")
88
+ set(_found TRUE)
89
+ else()
90
+ list(APPEND _replacement "${_source}")
91
+ endif()
92
+ endforeach()
93
+ if(NOT _found)
94
+ message(FATAL_ERROR "Could not locate ${_relative} in ${_target}")
95
+ endif()
96
+ set_property(TARGET "${_target}" PROPERTY SOURCES "${_replacement}")
97
+ target_include_directories("${_target}" PRIVATE "${_dir}")
98
+ set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS
99
+ "${_dir}/${_relative}"
100
+ "${CMAKE_CURRENT_FUNCTION_LIST_DIR}/patch_streaming_dependencies.py")
101
+ message(STATUS "Gea ${_kind}: streaming dependency patch enabled")
102
+ endforeach()
103
+ endfunction()
@@ -1,4 +1,6 @@
1
1
  dependencies:
2
+ # PCM <-> Opus at the WebRTC media-track boundary.
3
+ 78/esp-opus: '^1.0.5'
2
4
  espressif/esp_lcd_touch_gt911: '^1'
3
5
  espressif/esp_codec_dev: '^1.4.0'
4
6
  espressif/esp_websocket_client: '^1.4'
@@ -1,4 +1,6 @@
1
1
  dependencies:
2
+ # PCM <-> Opus at the WebRTC media-track boundary.
3
+ 78/esp-opus: '^1.0.5'
2
4
  esp_video:
3
5
  version: '~2.0'
4
6
  public: true
@@ -1,4 +1,6 @@
1
1
  dependencies:
2
+ # PCM <-> Opus at the WebRTC media-track boundary.
3
+ 78/esp-opus: '^1.0.5'
2
4
  esp_video:
3
5
  version: '0.8.*'
4
6
  public: true
@@ -1,4 +1,6 @@
1
1
  dependencies:
2
+ # PCM <-> Opus at the WebRTC media-track boundary.
3
+ 78/esp-opus: '^1.0.5'
2
4
  esp_video:
3
5
  version: '0.8.*'
4
6
  public: true
@@ -1,4 +1,6 @@
1
1
  dependencies:
2
+ # PCM <-> Opus at the WebRTC media-track boundary.
3
+ 78/esp-opus: '^1.0.5'
2
4
  espressif/esp_websocket_client: '^1.4'
3
5
  espressif/esp_peer: '^1.4'
4
6
  idf:
@@ -1,4 +1,6 @@
1
1
  dependencies:
2
+ # PCM <-> Opus at the WebRTC media-track boundary.
3
+ 78/esp-opus: '^1.0.5'
2
4
  espressif/esp_lcd_touch_ft5x06: '^1'
3
5
  espressif/esp_codec_dev: '^1.4.0'
4
6
  espressif/esp_websocket_client: '^1.4'
@@ -1,4 +1,6 @@
1
1
  dependencies:
2
+ # PCM <-> Opus at the WebRTC media-track boundary.
3
+ 78/esp-opus: '^1.0.5'
2
4
  espressif/esp_lcd_axs15231b: '^2.1.0'
3
5
  espressif/esp_websocket_client: '^1.4'
4
6
  espressif/esp_peer: '^1.4'
@@ -1,4 +1,6 @@
1
1
  dependencies:
2
+ # PCM <-> Opus at the WebRTC media-track boundary.
3
+ 78/esp-opus: '^1.0.5'
2
4
  espressif/esp_websocket_client: '^1.4'
3
5
  # 1.5.0 requires LWIP IPv6 (sockaddr_in6); this target disables IPv6.
4
6
  espressif/esp_peer: '~1.4.0'
@@ -1,4 +1,6 @@
1
1
  dependencies:
2
+ # PCM <-> Opus at the WebRTC media-track boundary.
3
+ 78/esp-opus: '^1.0.5'
2
4
  espressif/esp_codec_dev: '^1.4.0'
3
5
  espressif/esp_websocket_client: '^1.4'
4
6
  # 1.5.0 requires LWIP IPv6 (sockaddr_in6); stay on 1.4.x like the other
@@ -1,4 +1,6 @@
1
1
  dependencies:
2
+ # PCM <-> Opus at the WebRTC media-track boundary.
3
+ 78/esp-opus: '^1.0.5'
2
4
  espressif/esp_lcd_co5300: '^2.0.3'
3
5
  waveshare/esp_lcd_touch_cst9217: '^1.0.1'
4
6
  espressif/esp_codec_dev: '^1.4.0'
@@ -1,4 +1,14 @@
1
1
  dependencies:
2
+ espressif/cjson:
3
+ component_hash: e788323270d90738662d66fffa910bfe1fba019bba087f01557e70c40485b469
4
+ dependencies:
5
+ - name: idf
6
+ require: private
7
+ version: '>=5.0'
8
+ source:
9
+ registry_url: https://components.espressif.com
10
+ type: service
11
+ version: 1.7.19~2
2
12
  espressif/cmake_utilities:
3
13
  component_hash: 351350613ceafba240b761b4ea991e0f231ac7a9f59a9ee901f751bddc0bb18f
4
14
  dependencies:
@@ -9,6 +19,82 @@ dependencies:
9
19
  registry_url: https://components.espressif.com
10
20
  type: service
11
21
  version: 0.5.3
22
+ espressif/dl_fft:
23
+ component_hash: 965be7152132b365061abf5fc5fc7b85e525f73b94a204cdda61cfe9572c0d77
24
+ dependencies:
25
+ - name: idf
26
+ require: private
27
+ version: '>=5.0'
28
+ source:
29
+ registry_url: https://components.espressif.com
30
+ type: service
31
+ version: 0.8.0
32
+ espressif/esp-dl:
33
+ component_hash: 3148b2692a2943d7e35401dc10a181b6ba83515ec70ef51499ac5d2593eef3e2
34
+ dependencies:
35
+ - name: espressif/dl_fft
36
+ registry_url: https://components.espressif.com
37
+ require: private
38
+ version: '>=0.8.0'
39
+ - name: espressif/esp_new_jpeg
40
+ registry_url: https://components.espressif.com
41
+ require: private
42
+ version: ^1
43
+ - name: idf
44
+ require: private
45
+ version: '*'
46
+ source:
47
+ registry_url: https://components.espressif.com
48
+ type: service
49
+ targets:
50
+ - esp32
51
+ - esp32c2
52
+ - esp32c3
53
+ - esp32c5
54
+ - esp32c6
55
+ - esp32p4
56
+ - esp32s2
57
+ - esp32s3
58
+ - esp32s31
59
+ version: 3.3.13
60
+ espressif/esp-sr:
61
+ component_hash: 698154c0a94f6c8ac3e1ac669ec3ea741e6f848022b0f89030eddb23f3a31e14
62
+ dependencies:
63
+ - name: espressif/cjson
64
+ registry_url: https://components.espressif.com
65
+ require: private
66
+ version: ^1.7.19
67
+ - name: espressif/dl_fft
68
+ registry_url: https://components.espressif.com
69
+ require: private
70
+ version: '>=0.6.0'
71
+ - name: espressif/esp-dl
72
+ registry_url: https://components.espressif.com
73
+ require: private
74
+ version: ~3.3.12
75
+ - name: espressif/esp-dsp
76
+ registry_url: https://components.espressif.com
77
+ require: private
78
+ rules:
79
+ - if: target in [esp32, esp32s2, esp32c3, esp32c5, esp32c6]
80
+ version: 1.8.0
81
+ - name: idf
82
+ require: private
83
+ version: '>=5.0'
84
+ source:
85
+ registry_url: https://components.espressif.com/
86
+ type: service
87
+ version: 2.5.5
88
+ espressif/esp_audio_codec:
89
+ component_hash: a5b9275af74247e3ce536d16a7080e4d77207a185b63e1bea368eb4d57176c2b
90
+ dependencies:
91
+ - name: idf
92
+ require: private
93
+ version: '>=4.4'
94
+ source:
95
+ registry_url: https://components.espressif.com/
96
+ type: service
97
+ version: 2.6.2
12
98
  espressif/esp_codec_dev:
13
99
  component_hash: 9293329ccb361f67c6e847ab8f693b2d9158b2e438eff583c28558c29cdf3dca
14
100
  dependencies:
@@ -19,6 +105,20 @@ dependencies:
19
105
  registry_url: https://components.espressif.com/
20
106
  type: service
21
107
  version: 1.5.9
108
+ espressif/esp_h264:
109
+ component_hash: 3d60078419ceac61cd87579664ae6a5a9b9a42d6f2edf4e23d753af8d2a67da9
110
+ dependencies:
111
+ - name: idf
112
+ require: private
113
+ version: '>=4.4'
114
+ source:
115
+ registry_url: https://components.espressif.com/
116
+ type: service
117
+ targets:
118
+ - esp32s3
119
+ - esp32s31
120
+ - esp32p4
121
+ version: 1.4.1
22
122
  espressif/esp_io_expander:
23
123
  component_hash: 7b7f91270172e46ca4597e3874f48d8412e280e8c295559f5922ec38656e3e5f
24
124
  dependencies:
@@ -68,6 +168,25 @@ dependencies:
68
168
  registry_url: https://components.espressif.com
69
169
  type: service
70
170
  version: 1.0.0
171
+ espressif/esp_new_jpeg:
172
+ component_hash: e1e7e6991193c41ed6c9fc386702aa7821433319e7aa9c3147cd3236310cd69c
173
+ dependencies: []
174
+ source:
175
+ registry_url: https://components.espressif.com/
176
+ type: service
177
+ targets:
178
+ - esp32
179
+ - esp32s2
180
+ - esp32s3
181
+ - esp32s31
182
+ - esp32p4
183
+ - esp32c2
184
+ - esp32c3
185
+ - esp32c5
186
+ - esp32c6
187
+ - esp32c61
188
+ - esp32h4
189
+ version: 1.0.2
71
190
  espressif/esp_peer:
72
191
  component_hash: 2013edcc7d88756830055a74d86a3900f484d6015aacb820a6b7d81e53c7b05b
73
192
  dependencies:
@@ -92,14 +211,18 @@ dependencies:
92
211
  idf:
93
212
  source:
94
213
  type: idf
95
- version: 6.0.1
214
+ version: 6.0.2
96
215
  direct_dependencies:
216
+ - espressif/esp-sr
217
+ - espressif/esp_audio_codec
97
218
  - espressif/esp_codec_dev
219
+ - espressif/esp_h264
98
220
  - espressif/esp_lcd_panel_io_additions
99
221
  - espressif/esp_lcd_sh8601
222
+ - espressif/esp_new_jpeg
100
223
  - espressif/esp_peer
101
224
  - espressif/esp_websocket_client
102
225
  - idf
103
- manifest_hash: a2866720da5d456bc54b43516c33b77a5fcff0409a2381e945b159b69182b5a7
226
+ manifest_hash: 7a2fdbc750c2e657f8c7b4613b18bcb01c31cce82dcd618039369e3b5fcb4c99
104
227
  target: esp32s3
105
228
  version: 3.0.0
@@ -63,7 +63,7 @@ if(NOT DEFINED GEA_BOARD_PLATFORM_SOURCES)
63
63
  )
64
64
  endif()
65
65
  if(NOT DEFINED GEA_BOARD_EXTRA_REQUIRES)
66
- set(GEA_BOARD_EXTRA_REQUIRES esp_codec_dev)
66
+ set(GEA_BOARD_EXTRA_REQUIRES esp_codec_dev esp_new_jpeg)
67
67
  endif()
68
68
  if(NOT DEFINED GEA_BOARD_DISPLAY_WIDTH)
69
69
  set(GEA_BOARD_DISPLAY_WIDTH 368)
@@ -293,7 +293,6 @@ set(APP_GENERATED_SOURCES
293
293
  ${GEA_EMBEDDED_APP_NATIVE_SOURCES}
294
294
  "${GEA_APP_ENTRY_SRC}"
295
295
  ${GENERATED_FONT_CPP}
296
- ${GENERATED_ASSETS_CPP}
297
296
  )
298
297
  set(GEATSC_COMPILE_OPTIONS
299
298
  -Wno-unused-variable
@@ -312,9 +311,11 @@ set(GEATSC_COMPILE_OPTIONS
312
311
  )
313
312
  set(GEATSC_COMPILE_DEFINITIONS "")
314
313
  if(NOT CMAKE_SCRIPT_MODE_FILE)
314
+ # RTC contains the decode/conversion workers, not generated app templates.
315
+ # Preserve the performance optimization instead of overriding it with -Os.
315
316
  set_source_files_properties(
316
317
  "${GEA_HOST}/host/rtc_esp.cpp"
317
- PROPERTIES COMPILE_OPTIONS "-Wno-unused-variable;-Os"
318
+ PROPERTIES COMPILE_OPTIONS "-Wno-unused-variable;-O2"
318
319
  )
319
320
  endif()
320
321
  set(GEA_EMBEDDED_HTTPS_REQUIRES "")
@@ -446,6 +447,12 @@ if(GEA_EMBEDDED_CAPABILITY_NETWORK OR GEA_EMBEDDED_BLE_OTA_ENABLED)
446
447
  list(APPEND GEA_BOARD_OTA_SOURCES "${GEA_EMBEDDED_ROOT}/targets/esp32/services/ota_image.cpp")
447
448
  endif()
448
449
 
450
+ if(GEA_EMBEDDED_CAPABILITY_AUDIO AND "$ENV{GEA_EMBEDDED_CAPABILITY_AEC}" STREQUAL "1")
451
+ list(APPEND GEA_BOARD_PLATFORM_SOURCES
452
+ "${GEA_EMBEDDED_ROOT}/targets/esp32/chip_bindings/audio/echo_cancellation.cpp")
453
+ list(APPEND GEA_BOARD_EXTRA_REQUIRES esp-sr)
454
+ endif()
455
+
449
456
  idf_component_register(
450
457
  SRCS
451
458
  ${GEA_BOARD_PLATFORM_SOURCES}
@@ -586,6 +593,12 @@ target_compile_definitions(${COMPONENT_LIB} PRIVATE
586
593
  ${GEA_EMBEDDED_HTTPS_COMPILE_DEFINITIONS}
587
594
  )
588
595
 
596
+ # Carry the already inferred audio capability into native scheduling, like the
597
+ # 2.06 target. Audio apps do not need an application priority/config override.
598
+ if(GEA_EMBEDDED_CAPABILITY_AUDIO)
599
+ target_compile_definitions(${COMPONENT_LIB} PRIVATE GEA_EMBEDDED_APP_USES_AUDIO=1)
600
+ endif()
601
+
589
602
  # Production lockdown: gated by CONFIG_GEA_EMBEDDED_PRODUCTION_LOCKDOWN (sdkconfig.defaults).
590
603
  # When enabled, adds defines that compile out perf/heap logs and disable diagnostics server.
591
604
  if(CONFIG_GEA_EMBEDDED_PRODUCTION_LOCKDOWN)
@@ -679,4 +692,17 @@ gea_geatsc_add_generated_archive(
679
692
  )
680
693
  add_dependencies(geatsc_active_archive geatsc_build)
681
694
 
695
+ # Runtime JSX src attributes reach this weak registry through the host loader.
696
+ # Keep it out of main's archive, whose weak-only member is never extracted.
697
+ # Match the dedicated asset archive used by the 2.06 target; section GC still
698
+ # discards unused data after the registry and its referenced assets are linked.
699
+ add_library(gea_active_app_assets STATIC "${GENERATED_ASSETS_CPP}")
700
+ add_dependencies(gea_active_app_assets geatsc_build)
701
+ target_link_libraries(${COMPONENT_LIB} PRIVATE
702
+ "-Wl$<COMMA>--whole-archive$<COMMA>$<TARGET_FILE:gea_active_app_assets>$<COMMA>--no-whole-archive")
703
+
682
704
  gea_framework_inherit_build_settings()
705
+
706
+ # This target has a dedicated storage partition, as on the 2.06 AMOLED.
707
+ # Mount it for localStorage and the existing USB file-transfer diagnostics.
708
+ target_compile_definitions(${COMPONENT_LIB} PRIVATE GEA_STORAGE_SPIFFS=1)
@@ -46,12 +46,15 @@ void logHeapProbe(const char *stage)
46
46
  #endif
47
47
 
48
48
  constexpr int kAppMainTaskStack = CONFIG_ESP_MAIN_TASK_STACK_SIZE;
49
- // An app whose own realtime tasks must outrank the render loop (audio DSP, a USB
50
- // isochronous host) sets gea.defines.GEA_EMBEDDED_RUNTIME_TASK_PRIORITY to place
51
- // this below them; the default is what this board needs on its own.
49
+ // Inferred audio apps put rendering below codec workers. Preserve the board's
50
+ // graphics default for other apps and an explicit override when supplied.
52
51
  #ifndef GEA_EMBEDDED_RUNTIME_TASK_PRIORITY
52
+ #if defined(GEA_EMBEDDED_APP_USES_AUDIO) && GEA_EMBEDDED_APP_USES_AUDIO
53
+ #define GEA_EMBEDDED_RUNTIME_TASK_PRIORITY 3
54
+ #else
53
55
  #define GEA_EMBEDDED_RUNTIME_TASK_PRIORITY 5
54
56
  #endif
57
+ #endif
55
58
  constexpr UBaseType_t kRuntimeTaskPriority = GEA_EMBEDDED_RUNTIME_TASK_PRIORITY;
56
59
 
57
60
  // Match the 2.06 target: keep flash-touching boot on the internal main stack,
@@ -1,4 +1,19 @@
1
1
  dependencies:
2
+ espressif/esp_h264:
3
+ version: '==1.4.1'
4
+ rules:
5
+ - if: '$GEA_EMBEDDED_CAPABILITY_NETWORK == 1'
6
+ espressif/esp_new_jpeg: '==1.0.2'
7
+ espressif/esp-sr:
8
+ version: '==2.5.5'
9
+ rules:
10
+ - if: '$GEA_EMBEDDED_CAPABILITY_AEC == 1'
11
+ # Use the S3-optimized native codec, as on the 2.06 audio target.
12
+ # The portable Opus fallback cannot meet capture deadlines alongside AEC.
13
+ espressif/esp_audio_codec:
14
+ version: '^2.6.2'
15
+ rules:
16
+ - if: '$GEA_EMBEDDED_CAPABILITY_NETWORK == 1'
2
17
  espressif/esp_lcd_sh8601: '^2.0.1'
3
18
  espressif/esp_codec_dev: '^1.4.0'
4
19
  esp_lcd_panel_io_additions: '^1'
@@ -36,6 +36,10 @@ struct Es8311AudioConfig {
36
36
  gpio_num_t dout;
37
37
  gpio_num_t din;
38
38
  gpio_num_t powerAmplifier;
39
+ float aecMicGainDb;
40
+ float aecOutputGain;
41
+ bool aecCodecReference;
42
+ bool aecAggressiveNlp;
39
43
  };
40
44
 
41
45
  class Esp32S3TouchAmoled18 {
@@ -70,6 +74,14 @@ public:
70
74
  .dout = GPIO_NUM_8,
71
75
  .din = GPIO_NUM_10,
72
76
  .powerAmplifier = GPIO_NUM_46,
77
+ // This ES8311 microphone needs its own calibration and double-talk
78
+ // setting: aggressive NLP erased measured near-end speech at full volume.
79
+ .aecMicGainDb = 24.0f,
80
+ // Match the 2.06's +9 dB increase relative to this microphone's own
81
+ // calibrated 18.8364909 baseline; retain ADC and echo-reference settings.
82
+ .aecOutputGain = 53.0884444f,
83
+ .aecCodecReference = true,
84
+ .aecAggressiveNlp = false,
73
85
  };
74
86
  };
75
87
 
@@ -3,6 +3,11 @@ CONFIG_IDF_TARGET="esp32s3"
3
3
 
4
4
  # Flash: 16 MB (Waveshare ESP32-S3-Touch-AMOLED-1.8)
5
5
  CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y
6
+ # Match Waveshare's board-check/audio/template configurations. DIO needlessly
7
+ # halves the flash data lanes feeding native codec instruction-cache misses.
8
+ CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
9
+ CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
10
+
6
11
 
7
12
  # Console over USB Serial/JTAG (native USB-C on this board)
8
13
  CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG=y
@@ -24,7 +29,10 @@ CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ=240
24
29
  # Main task stack for the app event loop. gea TSX frames can build deep
25
30
  # reactive call chains before returning to the firmware loop.
26
31
  CONFIG_ESP_MAIN_TASK_STACK_SIZE=32768
27
- CONFIG_ESP_IPC_TASK_STACK_SIZE=16384
32
+ # Stock cross-core IPC callbacks do not run the application's reactive chain.
33
+ # Measured high-water use is under 1 KiB; 4 KiB leaves over 3 KiB of margin
34
+ # without withholding 32 KiB from TLS/DMA and the full-duplex audio driver.
35
+ CONFIG_ESP_IPC_TASK_STACK_SIZE=4096
28
36
 
29
37
  # Wi-Fi scan/connect callbacks run on ESP-IDF's system event task.
30
38
  CONFIG_ESP_SYSTEM_EVENT_TASK_STACK_SIZE=4096
@@ -8,3 +8,5 @@ set(PROJECT_VER "${GEA_EMBEDDED_APP}" CACHE STRING "Firmware app id" FORCE)
8
8
  include($ENV{IDF_PATH}/tools/cmake/project.cmake)
9
9
  idf_build_set_property(MINIMAL_BUILD ON)
10
10
  project(gea_embedded)
11
+ include("${CMAKE_CURRENT_LIST_DIR}/../esp32/i2c_completion_order.cmake")
12
+ gea_fix_i2c_completion_order()