@geastack/targets 0.1.86 → 0.1.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -7
- package/targets/esp32/app_project.cmake +18 -1
- package/targets/esp32/chip_bindings/audio/echo_cancellation.cpp +213 -0
- package/targets/esp32/chip_bindings/audio/echo_cancellation.h +12 -0
- package/targets/esp32/chip_bindings/audio/es8311.cpp +280 -41
- package/targets/esp32/chip_bindings/displays/rgb_panel.cpp +115 -12
- package/targets/esp32/chip_bindings/expanders/io_expander.h +2 -0
- package/targets/esp32/chip_bindings/expanders/tca9554.cpp +74 -0
- package/targets/esp32/chip_bindings/touch/ft3168.cpp +23 -1
- package/targets/esp32/chip_bindings/touch/ft3168_controller.h +1 -0
- package/targets/esp32/chip_bindings/touch/gt911.cpp +4 -3
- package/targets/esp32/components/gea_framework/CMakeLists.txt +8 -1
- package/targets/esp32/components/gea_juice/CMakeLists.txt +46 -0
- package/targets/esp32/components/gea_juice/README.md +20 -0
- package/targets/esp32/components/gea_juice/juice_memory.c +19 -0
- package/targets/esp32/components/gea_juice/juice_memory.h +16 -0
- package/targets/esp32/components/gea_juice/patch_threads.py +50 -0
- package/targets/esp32/components/gea_vp8_peer/CMakeLists.txt +16 -0
- package/targets/esp32/components/gea_vp8_peer/README.md +39 -0
- package/targets/esp32/components/gea_vp8_peer/gea_vp8_peer.h +21 -0
- package/targets/esp32/components/gea_vp8_peer/vp8_peer.cpp +538 -0
- package/targets/esp32/components/gea_vpx/CMakeLists.txt +235 -0
- package/targets/esp32/components/gea_vpx/README.md +133 -0
- package/targets/esp32/components/gea_vpx/i420_rgb565_s3.S +169 -0
- package/targets/esp32/components/gea_vpx/vp8_blocks_s3.c +42 -0
- package/targets/esp32/components/gea_vpx/vp8_copy_s3.S +39 -0
- package/targets/esp32/components/gea_vpx/vp8_entropy_s3.c +76 -0
- package/targets/esp32/components/gea_vpx/vp8_filter_s3.S +58 -0
- package/targets/esp32/components/gea_vpx/vp8_idct_s3.S +269 -0
- package/targets/esp32/components/gea_vpx/vp8_intrapred_s3.S +65 -0
- package/targets/esp32/components/gea_vpx/vp8_loopfilter_s3.S +333 -0
- package/targets/esp32/components/gea_vpx/vp8_loopfilter_s3.c +62 -0
- package/targets/esp32/components/gea_vpx/vp8_profile_s3.c +22 -0
- package/targets/esp32/components/gea_vpx/vp8_profile_s3.h +20 -0
- package/targets/esp32/components/gea_vpx/vp8_s3.c +120 -0
- package/targets/esp32/components/gea_vpx/vp8_s3.h +58 -0
- package/targets/esp32/components/gea_vpx/vp8_workspace_s3.c +14 -0
- package/targets/esp32/components/gea_vpx/vpx_memory.c +41 -0
- package/targets/esp32/connectivity/diagnostics_transport.cpp +18 -0
- package/targets/esp32/connectivity/wifi.cpp +26 -13
- package/targets/esp32/crypto/srtp_hmac_psa.c +118 -0
- package/targets/esp32/display.cpp +13 -0
- package/targets/esp32/gea_framework.cmake +7 -0
- package/targets/esp32/host_sources.cmake +2 -0
- package/targets/esp32/i2c_completion_order.cmake +57 -0
- package/targets/esp32/patch_streaming_dependencies.py +233 -0
- package/targets/esp32/services/device_control.cpp +141 -5
- package/targets/esp32/services/frame_scheduler.cpp +29 -1
- package/targets/esp32/services/opus_benchmark.h +82 -0
- package/targets/esp32/services/pcm_simd_check.h +73 -0
- package/targets/esp32/services/srtp_benchmark.h +106 -0
- package/targets/esp32/services/video_simd_benchmark.h +477 -0
- package/targets/esp32/services/vp8_benchmark.h +147 -0
- package/targets/esp32/streaming_dependency_patches.cmake +103 -0
- package/targets/esp32-m5stack-m5paper/main/idf_component.yml +2 -0
- package/targets/esp32-p4-m5stack-tab5/main/idf_component.yml +2 -0
- package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/idf_component.yml +2 -0
- package/targets/esp32-p4-waveshare-touch-lcd-7/main/idf_component.yml +2 -0
- package/targets/esp32-s3-elecrow-rotary-2.1/main/idf_component.yml +2 -0
- package/targets/esp32-s3-epaper-1.54/main/idf_component.yml +2 -0
- package/targets/esp32-s3-lilygo-t-display-s3-long/main/idf_component.yml +2 -0
- package/targets/esp32-s3-m5stack-papers3/main/idf_component.yml +2 -0
- package/targets/esp32-s3-m5stack-sticks3/main/idf_component.yml +2 -0
- package/targets/esp32-s3-touch-amoled-1.75/main/idf_component.yml +2 -0
- package/targets/esp32-s3-touch-amoled-1.8/dependencies.lock +110 -2
- package/targets/esp32-s3-touch-amoled-1.8/main/CMakeLists.txt +29 -3
- package/targets/esp32-s3-touch-amoled-1.8/main/app_main.cpp +6 -3
- package/targets/esp32-s3-touch-amoled-1.8/main/idf_component.yml +11 -0
- package/targets/esp32-s3-touch-amoled-1.8/sdkconfig.defaults +9 -1
- package/targets/esp32-s3-touch-amoled-2.06/CMakeLists.txt +2 -0
- package/targets/esp32-s3-touch-amoled-2.06/dependencies.lock +171 -8
- package/targets/esp32-s3-touch-amoled-2.06/main/CMakeLists.txt +9 -2
- package/targets/esp32-s3-touch-amoled-2.06/main/app_main.cpp +10 -3
- package/targets/esp32-s3-touch-amoled-2.06/main/idf_component.yml +16 -1
- package/targets/esp32-s3-touch-amoled-2.06/main/include/board.h +3 -0
- package/targets/esp32-s3-touch-amoled-2.06/main/touch.cpp +7 -0
- package/targets/esp32-s3-touch-amoled-2.41/dependencies.lock +57 -1
- package/targets/esp32-s3-touch-amoled-2.41/main/idf_component.yml +10 -0
- package/targets/esp32-s3-touch-lcd-3.5b/dependencies.lock +12 -1
- package/targets/esp32-s3-touch-lcd-3.5b/main/CMakeLists.txt +5 -1
- package/targets/esp32-s3-touch-lcd-3.5b/main/idf_component.yml +2 -1
- package/targets/esp32-s3-touch-lcd-3.5b/main/include/board.h +3 -0
- package/targets/esp32-s3-touch-lcd-3.5b/main/platform_stubs.cpp +1 -18
- package/targets/esp32-s3-touch-lcd-3.5b/main/speaker_power.cpp +27 -0
- package/targets/esp32-s3-waveshare-touch-lcd-4b.json +504 -0
- package/targets.json +12 -1
|
@@ -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,106 @@ 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
|
|
98
|
+
espressif/esp_codec_dev:
|
|
99
|
+
component_hash: 4779f31a3ba3f9b38aee1afe6ccb9ba8f6108dc3a6e77d39d7d714e9a215371b
|
|
100
|
+
dependencies:
|
|
101
|
+
- name: idf
|
|
102
|
+
require: private
|
|
103
|
+
version: '>=4.0'
|
|
104
|
+
source:
|
|
105
|
+
registry_url: https://components.espressif.com/
|
|
106
|
+
type: service
|
|
107
|
+
version: 1.6.2
|
|
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
|
|
12
122
|
espressif/esp_io_expander:
|
|
13
123
|
component_hash: 7b7f91270172e46ca4597e3874f48d8412e280e8c295559f5922ec38656e3e5f
|
|
14
124
|
dependencies:
|
|
@@ -20,7 +130,7 @@ dependencies:
|
|
|
20
130
|
type: service
|
|
21
131
|
version: 1.2.1
|
|
22
132
|
espressif/esp_lcd_co5300:
|
|
23
|
-
component_hash:
|
|
133
|
+
component_hash: 1a5cbaa0069c3c72c238e5a1eb32ec9dd390ec1c7c46b24bf44b9037f2fe6c56
|
|
24
134
|
dependencies:
|
|
25
135
|
- name: espressif/cmake_utilities
|
|
26
136
|
registry_url: https://components.espressif.com
|
|
@@ -32,13 +142,10 @@ dependencies:
|
|
|
32
142
|
source:
|
|
33
143
|
registry_url: https://components.espressif.com/
|
|
34
144
|
type: service
|
|
35
|
-
version: 2.0
|
|
145
|
+
version: 2.2.0
|
|
36
146
|
espressif/esp_lcd_panel_io_additions:
|
|
37
|
-
component_hash:
|
|
147
|
+
component_hash: 1856c8b2c11aaa8a9fd67481582162bcad25f7064661a995f35c2ee8dd10ebcc
|
|
38
148
|
dependencies:
|
|
39
|
-
- name: idf
|
|
40
|
-
require: private
|
|
41
|
-
version: '>=4.4.2'
|
|
42
149
|
- name: espressif/cmake_utilities
|
|
43
150
|
registry_url: https://components.espressif.com
|
|
44
151
|
require: private
|
|
@@ -47,18 +154,74 @@ dependencies:
|
|
|
47
154
|
registry_url: https://components.espressif.com
|
|
48
155
|
require: public
|
|
49
156
|
version: ^1
|
|
157
|
+
- name: idf
|
|
158
|
+
require: private
|
|
159
|
+
version: '>=4.4.2'
|
|
160
|
+
source:
|
|
161
|
+
registry_url: https://components.espressif.com/
|
|
162
|
+
type: service
|
|
163
|
+
version: 1.0.1~1
|
|
164
|
+
espressif/esp_libsrtp:
|
|
165
|
+
component_hash: 131560184c73ec09f77d8904a2db709307803f0f9f111898921b6966776eac15
|
|
166
|
+
dependencies: []
|
|
167
|
+
source:
|
|
168
|
+
registry_url: https://components.espressif.com
|
|
169
|
+
type: service
|
|
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
|
|
190
|
+
espressif/esp_peer:
|
|
191
|
+
component_hash: 97aac8b5a27e3901ca5c415a3b9ac083209e02b942af1f5911a754319331e0ca
|
|
192
|
+
dependencies:
|
|
193
|
+
- name: espressif/esp_libsrtp
|
|
194
|
+
registry_url: https://components.espressif.com
|
|
195
|
+
require: private
|
|
196
|
+
version: ^1.0.0
|
|
197
|
+
source:
|
|
198
|
+
registry_url: https://components.espressif.com/
|
|
199
|
+
type: service
|
|
200
|
+
version: 1.5.5
|
|
201
|
+
espressif/esp_websocket_client:
|
|
202
|
+
component_hash: dc00233af846f3a744ada283a300e0d586040aadc3ee67361645ecdce4523672
|
|
203
|
+
dependencies:
|
|
204
|
+
- name: idf
|
|
205
|
+
require: private
|
|
206
|
+
version: '>=5.0'
|
|
50
207
|
source:
|
|
51
208
|
registry_url: https://components.espressif.com/
|
|
52
209
|
type: service
|
|
53
|
-
version: 1.0
|
|
210
|
+
version: 1.8.0
|
|
54
211
|
idf:
|
|
55
212
|
source:
|
|
56
213
|
type: idf
|
|
57
214
|
version: 6.0.2
|
|
58
215
|
direct_dependencies:
|
|
216
|
+
- espressif/esp-sr
|
|
217
|
+
- espressif/esp_audio_codec
|
|
218
|
+
- espressif/esp_codec_dev
|
|
219
|
+
- espressif/esp_h264
|
|
59
220
|
- espressif/esp_lcd_co5300
|
|
60
221
|
- espressif/esp_lcd_panel_io_additions
|
|
222
|
+
- espressif/esp_peer
|
|
223
|
+
- espressif/esp_websocket_client
|
|
61
224
|
- idf
|
|
62
|
-
manifest_hash:
|
|
225
|
+
manifest_hash: 8042114f8e64bc150dfc3eb9ea5ed30cb9eace6cc596df7e877ec83a850d312a
|
|
63
226
|
target: esp32s3
|
|
64
227
|
version: 3.0.0
|
|
@@ -301,7 +301,9 @@ set(GEATSC_COMPILE_DEFINITIONS "")
|
|
|
301
301
|
if(NOT CMAKE_SCRIPT_MODE_FILE)
|
|
302
302
|
set_source_files_properties(
|
|
303
303
|
"${GEA_HOST}/host/rtc_esp.cpp"
|
|
304
|
-
|
|
304
|
+
# Includes the per-pixel I420 conversion and codec wrappers. Match the
|
|
305
|
+
# decoder/benchmark speed optimization instead of overriding it for size.
|
|
306
|
+
PROPERTIES COMPILE_OPTIONS "-Wno-unused-variable;-O2"
|
|
305
307
|
)
|
|
306
308
|
|
|
307
309
|
endif()
|
|
@@ -575,7 +577,12 @@ if(NOT GEA_APP_CANVAS_ONLY)
|
|
|
575
577
|
"${GEA_HOST}/audio_runtime.cpp"
|
|
576
578
|
)
|
|
577
579
|
list(APPEND GEA_EMBEDDED_TARGET_REQUIRES esp_driver_i2s esp_codec_dev)
|
|
578
|
-
|
|
580
|
+
if("$ENV{GEA_EMBEDDED_CAPABILITY_AEC}" STREQUAL "1")
|
|
581
|
+
list(APPEND GEA_EMBEDDED_TARGET_HOST_SOURCES
|
|
582
|
+
"${GEA_EMBEDDED_ROOT}/targets/esp32/chip_bindings/audio/echo_cancellation.cpp")
|
|
583
|
+
list(APPEND GEA_EMBEDDED_TARGET_REQUIRES esp-sr)
|
|
584
|
+
endif()
|
|
585
|
+
list(APPEND GEA_EMBEDDED_CAPABILITY_COMPILE_DEFINITIONS GEA_EMBEDDED_APP_USES_AUDIO=1 GEA_BOARD_HAS_SPEAKER=1)
|
|
579
586
|
else()
|
|
580
587
|
list(APPEND GEA_EMBEDDED_TARGET_HOST_SOURCES
|
|
581
588
|
"${GEA_EMBEDDED_ROOT}/targets/esp32/services/audio_runtime_stub.cpp"
|
|
@@ -79,12 +79,19 @@ constexpr int kAppMainTaskStack = CONFIG_ESP_MAIN_TASK_STACK_SIZE;
|
|
|
79
79
|
// steady locked rate ~2 fps below the panel TE. It blocks on the TE between frames, so it
|
|
80
80
|
// yields the core to those tasks in the gap; raising it above them only protects the active
|
|
81
81
|
// frame. 24 = top of the FreeRTOS band (configMAX_PRIORITIES-1), above the @23 frame ticker.
|
|
82
|
-
//
|
|
83
|
-
//
|
|
84
|
-
//
|
|
82
|
+
// Audio apps must leave both cores available to capture/playback (24), RTC
|
|
83
|
+
// transport/encoding (7/5), and touch/USB input (4). The parallel raster worker
|
|
84
|
+
// inherits THIS task's priority, not APP_FRAME_TASK_PRIORITY (the frame ticker).
|
|
85
|
+
// At 24, the voicebox starved input for seconds during speech. Select a lower
|
|
86
|
+
// render priority automatically from the compiler's detected audio capability.
|
|
87
|
+
// An explicit runtime priority still overrides the target's default.
|
|
85
88
|
#ifndef GEA_EMBEDDED_RUNTIME_TASK_PRIORITY
|
|
89
|
+
#if defined(GEA_EMBEDDED_APP_USES_AUDIO) && GEA_EMBEDDED_APP_USES_AUDIO
|
|
90
|
+
#define GEA_EMBEDDED_RUNTIME_TASK_PRIORITY 3
|
|
91
|
+
#else
|
|
86
92
|
#define GEA_EMBEDDED_RUNTIME_TASK_PRIORITY 24
|
|
87
93
|
#endif
|
|
94
|
+
#endif
|
|
88
95
|
constexpr UBaseType_t kRuntimeTaskPriority = GEA_EMBEDDED_RUNTIME_TASK_PRIORITY;
|
|
89
96
|
|
|
90
97
|
// Where the runtime/render loop's stack lives.
|
|
@@ -6,6 +6,19 @@
|
|
|
6
6
|
# direct `idf.py` build keeps everything (and so the component manager never
|
|
7
7
|
# sees an unset variable, which it treats as an error).
|
|
8
8
|
dependencies:
|
|
9
|
+
espressif/esp_h264:
|
|
10
|
+
version: '^1.4.1'
|
|
11
|
+
rules:
|
|
12
|
+
- if: '$GEA_EMBEDDED_CAPABILITY_NETWORK == 1'
|
|
13
|
+
espressif/esp-sr:
|
|
14
|
+
version: '==2.5.5'
|
|
15
|
+
rules:
|
|
16
|
+
- if: '$GEA_EMBEDDED_CAPABILITY_AEC == 1'
|
|
17
|
+
# Optimized Opus leaves CPU time for simultaneous AEC and rendering.
|
|
18
|
+
espressif/esp_audio_codec:
|
|
19
|
+
version: '^2.6.2'
|
|
20
|
+
rules:
|
|
21
|
+
- if: '$GEA_EMBEDDED_CAPABILITY_NETWORK == 1'
|
|
9
22
|
espressif/esp_lcd_co5300: '^2.0.3'
|
|
10
23
|
esp_lcd_panel_io_additions: '^1'
|
|
11
24
|
# chip_bindings/audio/es8311.cpp
|
|
@@ -20,7 +33,9 @@ dependencies:
|
|
|
20
33
|
- if: '$GEA_EMBEDDED_CAPABILITY_NETWORK == 1'
|
|
21
34
|
# host/rtc_esp.cpp -- the WebRTC peer, and libsrtp behind it
|
|
22
35
|
espressif/esp_peer:
|
|
23
|
-
|
|
36
|
+
# 1.5.6 rejects peer-reflexive NAT mappings during ICE nomination.
|
|
37
|
+
# Keep the version explicit while verifying the direct Realtime path.
|
|
38
|
+
version: '1.5.5'
|
|
24
39
|
rules:
|
|
25
40
|
- if: '$GEA_EMBEDDED_CAPABILITY_NETWORK == 1'
|
|
26
41
|
idf:
|
|
@@ -45,6 +45,8 @@ struct Es8311AudioConfig {
|
|
|
45
45
|
// The microphones are on an ES7210 ADC (I2C 0x40) sharing the I2S bus; the ES8311's own input
|
|
46
46
|
// is not wired to a mic on this board.
|
|
47
47
|
int es7210Address;
|
|
48
|
+
// Physical ES7210 input wired to the ES8311 analog playback reference.
|
|
49
|
+
int es7210ReferenceMic;
|
|
48
50
|
};
|
|
49
51
|
|
|
50
52
|
struct SdMmcConfig {
|
|
@@ -96,6 +98,7 @@ public:
|
|
|
96
98
|
.din = GPIO_NUM_42,
|
|
97
99
|
.powerAmplifier = GPIO_NUM_46,
|
|
98
100
|
.es7210Address = 0x40,
|
|
101
|
+
.es7210ReferenceMic = 3,
|
|
99
102
|
};
|
|
100
103
|
};
|
|
101
104
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#include "touch.h"
|
|
2
|
+
#include <cstring>
|
|
2
3
|
#include "chip_bindings/touch/ft3168_controller.h"
|
|
3
4
|
|
|
4
5
|
namespace {
|
|
@@ -47,3 +48,9 @@ void gea::platform::touch::Touchscreen::consumeLatestMove(int *x, int *y) {
|
|
|
47
48
|
void gea::platform::touch::Touchscreen::injectEvent(Phase phase, bool touching, int x, int y) {
|
|
48
49
|
touchController().injectEvent(phase, touching, x, y);
|
|
49
50
|
}
|
|
51
|
+
|
|
52
|
+
extern "C" bool geaHandleExtraDevCommand(const char *command, char *) {
|
|
53
|
+
if (std::strcmp(command, "TOUCHINFO") != 0) return false;
|
|
54
|
+
touchController().printDiagnostics();
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
dependencies:
|
|
2
|
+
78/esp-opus:
|
|
3
|
+
component_hash: 8182b733f071d7bfe1e837f4c9f8649a63e4c937177f089e65772880c02f2e17
|
|
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.0.5
|
|
2
12
|
espressif/cmake_utilities:
|
|
3
13
|
component_hash: 351350613ceafba240b761b4ea991e0f231ac7a9f59a9ee901f751bddc0bb18f
|
|
4
14
|
dependencies:
|
|
@@ -9,6 +19,20 @@ dependencies:
|
|
|
9
19
|
registry_url: https://components.espressif.com
|
|
10
20
|
type: service
|
|
11
21
|
version: 0.5.3
|
|
22
|
+
espressif/esp_h264:
|
|
23
|
+
component_hash: 3d60078419ceac61cd87579664ae6a5a9b9a42d6f2edf4e23d753af8d2a67da9
|
|
24
|
+
dependencies:
|
|
25
|
+
- name: idf
|
|
26
|
+
require: private
|
|
27
|
+
version: '>=4.4'
|
|
28
|
+
source:
|
|
29
|
+
registry_url: https://components.espressif.com/
|
|
30
|
+
type: service
|
|
31
|
+
targets:
|
|
32
|
+
- esp32s3
|
|
33
|
+
- esp32s31
|
|
34
|
+
- esp32p4
|
|
35
|
+
version: 1.4.1
|
|
12
36
|
espressif/esp_io_expander:
|
|
13
37
|
component_hash: 7b7f91270172e46ca4597e3874f48d8412e280e8c295559f5922ec38656e3e5f
|
|
14
38
|
dependencies:
|
|
@@ -65,16 +89,48 @@ dependencies:
|
|
|
65
89
|
registry_url: https://components.espressif.com/
|
|
66
90
|
type: service
|
|
67
91
|
version: 2.0.1~1
|
|
92
|
+
espressif/esp_libsrtp:
|
|
93
|
+
component_hash: 131560184c73ec09f77d8904a2db709307803f0f9f111898921b6966776eac15
|
|
94
|
+
dependencies: []
|
|
95
|
+
source:
|
|
96
|
+
registry_url: https://components.espressif.com
|
|
97
|
+
type: service
|
|
98
|
+
version: 1.0.0
|
|
99
|
+
espressif/esp_peer:
|
|
100
|
+
component_hash: e29d65a3d2eba15f761e7d2740ab62650384edff27a1f8277dd6ccfa45813863
|
|
101
|
+
dependencies:
|
|
102
|
+
- name: espressif/esp_libsrtp
|
|
103
|
+
registry_url: https://components.espressif.com
|
|
104
|
+
require: private
|
|
105
|
+
version: ^1.0.0
|
|
106
|
+
source:
|
|
107
|
+
registry_url: https://components.espressif.com/
|
|
108
|
+
type: service
|
|
109
|
+
version: 1.5.6
|
|
110
|
+
espressif/esp_websocket_client:
|
|
111
|
+
component_hash: dc00233af846f3a744ada283a300e0d586040aadc3ee67361645ecdce4523672
|
|
112
|
+
dependencies:
|
|
113
|
+
- name: idf
|
|
114
|
+
require: private
|
|
115
|
+
version: '>=5.0'
|
|
116
|
+
source:
|
|
117
|
+
registry_url: https://components.espressif.com/
|
|
118
|
+
type: service
|
|
119
|
+
version: 1.8.0
|
|
68
120
|
idf:
|
|
69
121
|
source:
|
|
70
122
|
type: idf
|
|
71
123
|
version: 6.0.2
|
|
72
124
|
direct_dependencies:
|
|
125
|
+
- 78/esp-opus
|
|
126
|
+
- espressif/esp_h264
|
|
73
127
|
- espressif/esp_io_expander
|
|
74
128
|
- espressif/esp_io_expander_tca9554
|
|
75
129
|
- espressif/esp_lcd_panel_io_additions
|
|
76
130
|
- espressif/esp_lcd_sh8601
|
|
131
|
+
- espressif/esp_peer
|
|
132
|
+
- espressif/esp_websocket_client
|
|
77
133
|
- idf
|
|
78
|
-
manifest_hash:
|
|
134
|
+
manifest_hash: 099bc4ae38a6912118b80f95714cdeb70782e764d785a41538151f9910622049
|
|
79
135
|
target: esp32s3
|
|
80
136
|
version: 3.0.0
|
|
@@ -8,6 +8,16 @@
|
|
|
8
8
|
#
|
|
9
9
|
# No esp_codec_dev: this board carries no audio codec.
|
|
10
10
|
dependencies:
|
|
11
|
+
# Native WebRTC avatar video receives baseline H.264.
|
|
12
|
+
espressif/esp_h264:
|
|
13
|
+
version: '^1.4.1'
|
|
14
|
+
rules:
|
|
15
|
+
- if: '$GEA_EMBEDDED_CAPABILITY_NETWORK == 1'
|
|
16
|
+
# host/rtc_esp.cpp encodes/decodes RTP payloads using Opus.
|
|
17
|
+
78/esp-opus:
|
|
18
|
+
version: '^1.0.5'
|
|
19
|
+
rules:
|
|
20
|
+
- if: '$GEA_EMBEDDED_CAPABILITY_NETWORK == 1'
|
|
11
21
|
espressif/esp_lcd_sh8601: '^2.0.1'
|
|
12
22
|
# panel_reset.cpp -- OLED_RESET/TP_RESET sit on a TCA9554
|
|
13
23
|
espressif/esp_io_expander: '^1'
|
|
@@ -9,6 +9,16 @@ dependencies:
|
|
|
9
9
|
registry_url: https://components.espressif.com
|
|
10
10
|
type: service
|
|
11
11
|
version: 0.5.3
|
|
12
|
+
espressif/esp_codec_dev:
|
|
13
|
+
component_hash: 4779f31a3ba3f9b38aee1afe6ccb9ba8f6108dc3a6e77d39d7d714e9a215371b
|
|
14
|
+
dependencies:
|
|
15
|
+
- name: idf
|
|
16
|
+
require: private
|
|
17
|
+
version: '>=4.0'
|
|
18
|
+
source:
|
|
19
|
+
registry_url: https://components.espressif.com/
|
|
20
|
+
type: service
|
|
21
|
+
version: 1.6.2
|
|
12
22
|
espressif/esp_lcd_axs15231b:
|
|
13
23
|
component_hash: 62afe3c46789d7a13e3807c5d7a3a734870cd6375a28f14b12498c3382ad43b4
|
|
14
24
|
dependencies:
|
|
@@ -42,8 +52,9 @@ dependencies:
|
|
|
42
52
|
type: idf
|
|
43
53
|
version: 6.0.2
|
|
44
54
|
direct_dependencies:
|
|
55
|
+
- espressif/esp_codec_dev
|
|
45
56
|
- espressif/esp_lcd_axs15231b
|
|
46
57
|
- idf
|
|
47
|
-
manifest_hash:
|
|
58
|
+
manifest_hash: 012cbd8ec7ab85135fe0eb3ac425f4397eac4030eb43783e48c375d3d0ef7868
|
|
48
59
|
target: esp32s3
|
|
49
60
|
version: 3.0.0
|
|
@@ -12,12 +12,14 @@ set(GEA_BOARD_FRAMEBUFFER_STREAM_FLUSH 1)
|
|
|
12
12
|
set(GEA_BOARD_PARTIAL_PAD_X 0)
|
|
13
13
|
set(GEA_BOARD_PARTIAL_PAD_Y 0)
|
|
14
14
|
set(GEA_BOARD_STREAM_PACE_CHUNKS 0)
|
|
15
|
-
set(GEA_BOARD_EXTRA_REQUIRES esp_driver_ledc)
|
|
15
|
+
set(GEA_BOARD_EXTRA_REQUIRES esp_driver_ledc esp_codec_dev)
|
|
16
16
|
set(GEA_BOARD_EXTRA_COMPILE_DEFINITIONS
|
|
17
17
|
GEA_EMBEDDED_AXS15231B_PANEL=1
|
|
18
18
|
GEA_EMBEDDED_AXS15231B_BACKLIGHT_GPIO=6
|
|
19
19
|
GEA_BOARD_AXS15231B_INIT_HEADER="axs15231b_panel_init.h"
|
|
20
20
|
GEA_BOARD_HAS_SDMMC=1
|
|
21
|
+
GEA_BOARD_HAS_SPEAKER=1
|
|
22
|
+
GEA_BOARD_SPEAKER_POWER=1
|
|
21
23
|
GEA_EMBEDDED_DISPLAY_FULL_FRAME_TRANSFERS=1
|
|
22
24
|
)
|
|
23
25
|
set(GEA_BOARD_PLATFORM_SOURCES
|
|
@@ -26,6 +28,8 @@ set(GEA_BOARD_PLATFORM_SOURCES
|
|
|
26
28
|
"${CMAKE_CURRENT_LIST_DIR}/../../esp32-s3-touch-amoled-1.8/main/launcher_button.cpp"
|
|
27
29
|
"${CMAKE_CURRENT_LIST_DIR}/touch.cpp"
|
|
28
30
|
"${CMAKE_CURRENT_LIST_DIR}/platform_stubs.cpp"
|
|
31
|
+
"${CMAKE_CURRENT_LIST_DIR}/speaker_power.cpp"
|
|
32
|
+
"${GEA_EMBEDDED_ROOT}/targets/esp32/chip_bindings/audio/es8311.cpp"
|
|
29
33
|
"${GEA_CHIPS}/power/axp2101/axp2101.cpp"
|
|
30
34
|
"${GEA_EMBEDDED_ROOT}/targets/esp32/chip_bindings/power/axp2101.cpp"
|
|
31
35
|
"${GEA_CHIPS}/displays/sh8601/sh8601.cpp"
|
|
@@ -6,8 +6,9 @@
|
|
|
6
6
|
# direct `idf.py` build keeps everything (and so the component manager never
|
|
7
7
|
# sees an unset variable, which it treats as an error).
|
|
8
8
|
#
|
|
9
|
-
#
|
|
9
|
+
# The ES8311 provides the onboard speaker output.
|
|
10
10
|
dependencies:
|
|
11
|
+
espressif/esp_codec_dev: '^1.4.0'
|
|
11
12
|
espressif/esp_lcd_axs15231b: '^2.1.0'
|
|
12
13
|
# host/websocket.cpp
|
|
13
14
|
espressif/esp_websocket_client:
|
|
@@ -10,6 +10,8 @@ struct QspiDisplayConfig {
|
|
|
10
10
|
spi_host_device_t spiHost;
|
|
11
11
|
gpio_num_t cs, pclk, data0, data1, data2, data3, reset, te;
|
|
12
12
|
};
|
|
13
|
+
struct Es8311AudioConfig { int i2sPort; gpio_num_t mclk, bclk, ws, dout, din, powerAmplifier; };
|
|
14
|
+
bool setSpeakerPower(bool enabled);
|
|
13
15
|
struct TouchConfig { gpio_num_t reset, interrupt; };
|
|
14
16
|
struct SdMmcConfig { gpio_num_t clk, cmd, data0; };
|
|
15
17
|
struct LauncherButtonConfig { gpio_num_t pin; int activeLevel; };
|
|
@@ -17,6 +19,7 @@ inline constexpr I2cBusConfig i2c{GPIO_NUM_8, GPIO_NUM_7};
|
|
|
17
19
|
inline constexpr QspiDisplayConfig display{
|
|
18
20
|
SPI2_HOST, GPIO_NUM_12, GPIO_NUM_5, GPIO_NUM_1, GPIO_NUM_2,
|
|
19
21
|
GPIO_NUM_3, GPIO_NUM_4, GPIO_NUM_NC, GPIO_NUM_NC};
|
|
22
|
+
inline constexpr Es8311AudioConfig audio{0, GPIO_NUM_44, GPIO_NUM_13, GPIO_NUM_15, GPIO_NUM_16, GPIO_NUM_14, GPIO_NUM_NC};
|
|
20
23
|
inline constexpr TouchConfig touch{GPIO_NUM_NC, GPIO_NUM_NC};
|
|
21
24
|
inline constexpr SdMmcConfig storage{GPIO_NUM_11, GPIO_NUM_10, GPIO_NUM_9};
|
|
22
25
|
inline constexpr LauncherButtonConfig launcherButton{GPIO_NUM_0, 0};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// The IMU is not exposed yet.
|
|
2
2
|
#include "imu.h"
|
|
3
3
|
#include "power.h"
|
|
4
4
|
|
|
@@ -22,20 +22,3 @@ double Accelerometer::gyroscopeZ() { return 0.0; }
|
|
|
22
22
|
void Accelerometer::setWebTilt(int, int) {}
|
|
23
23
|
|
|
24
24
|
} // namespace gea::platform::sensors
|
|
25
|
-
|
|
26
|
-
namespace gea::platform::audio {
|
|
27
|
-
|
|
28
|
-
bool OutputDriver::open(int, int, int) { return false; }
|
|
29
|
-
bool OutputDriver::write(const std::int16_t *, std::size_t, int) { return false; }
|
|
30
|
-
void OutputDriver::close() {}
|
|
31
|
-
int OutputDriver::volume() { return 0; }
|
|
32
|
-
void OutputDriver::setVolume(int) {}
|
|
33
|
-
|
|
34
|
-
} // namespace gea::platform::audio
|
|
35
|
-
|
|
36
|
-
namespace gea::host::media {
|
|
37
|
-
|
|
38
|
-
void platform_attach_track(NativeMediaTrackHandle) {}
|
|
39
|
-
void platform_detach_track(NativeMediaTrackHandle) {}
|
|
40
|
-
|
|
41
|
-
} // namespace gea::host::media
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#include <cstdint>
|
|
2
|
+
#include "board.h"
|
|
3
|
+
#include "i2c.h"
|
|
4
|
+
#include "driver/i2c_master.h"
|
|
5
|
+
|
|
6
|
+
namespace gea::platform::board {
|
|
7
|
+
// The amplifier's enable is EXIO7 on the TCA9554 at 0x20. Preserve every
|
|
8
|
+
// other output, including the panel reset and SD card signals.
|
|
9
|
+
bool setSpeakerPower(bool enabled) {
|
|
10
|
+
static i2c_master_dev_handle_t device{};
|
|
11
|
+
if (!device) {
|
|
12
|
+
const auto bus = gea::platform::i2c::Bus::primary();
|
|
13
|
+
if (!bus.available()) return false;
|
|
14
|
+
i2c_device_config_t config{};
|
|
15
|
+
config.device_address = 0x20;
|
|
16
|
+
config.scl_speed_hz = 100000;
|
|
17
|
+
if (i2c_master_bus_add_device(static_cast<i2c_master_bus_handle_t>(bus.nativeHandle()), &config, &device) != ESP_OK) return false;
|
|
18
|
+
}
|
|
19
|
+
const auto update = [](std::uint8_t reg, bool high) {
|
|
20
|
+
std::uint8_t value{};
|
|
21
|
+
if (i2c_master_transmit_receive(device, ®, 1, &value, 1, 100) != ESP_OK) return false;
|
|
22
|
+
const std::uint8_t bytes[]{reg, static_cast<std::uint8_t>(high ? value | 0x80 : value & ~0x80)};
|
|
23
|
+
return i2c_master_transmit(device, bytes, sizeof(bytes), 100) == ESP_OK;
|
|
24
|
+
};
|
|
25
|
+
return update(1, enabled) && update(3, false);
|
|
26
|
+
}
|
|
27
|
+
}
|