@geastack/targets 0.1.102 → 0.1.104

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 (79) hide show
  1. package/README.md +7 -0
  2. package/package.json +6 -6
  3. package/targets/cmake/geatsc-generated-archive-build.mjs +41 -12
  4. package/targets/esp32/app_project.cmake +23 -27
  5. package/targets/esp32/chip_bindings/magnetometer/bmm150.cpp +140 -0
  6. package/targets/esp32/chip_bindings/touch/cst9217.cpp +27 -3
  7. package/targets/esp32/chip_bindings/touch/cst9217_controller.h +11 -2
  8. package/targets/esp32/components/gea_framework/CMakeLists.txt +10 -5
  9. package/targets/esp32/components/gea_framework/project_include.cmake +22 -0
  10. package/targets/esp32/esp_now.cpp +298 -0
  11. package/targets/esp32/esp_now_power.h +17 -0
  12. package/targets/esp32/esp_now_rate.h +57 -0
  13. package/targets/esp32/esp_now_tx_header.h +46 -0
  14. package/targets/esp32/gea_framework.cmake +2 -0
  15. package/targets/esp32/ldfragments/gea_ui_state_external.lf +11 -0
  16. package/targets/esp32/services/device_control.cpp +29 -11
  17. package/targets/esp32/services/frame_scheduler.cpp +7 -0
  18. package/targets/esp32/uart.cpp +144 -0
  19. package/targets/esp32-m5stack-m5paper/CMakeLists.txt +1 -0
  20. package/targets/esp32-m5stack-m5paper/main/idf_component.yml +7 -4
  21. package/targets/esp32-p4-m5stack-tab5/CMakeLists.txt +1 -0
  22. package/targets/esp32-p4-m5stack-tab5/main/CMakeLists.txt +4 -0
  23. package/targets/esp32-p4-m5stack-tab5/main/idf_component.yml +9 -6
  24. package/targets/esp32-p4-waveshare-touch-lcd-3.5/CMakeLists.txt +1 -0
  25. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/CMakeLists.txt +4 -0
  26. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/display.cpp +21 -5
  27. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/idf_component.yml +8 -5
  28. package/targets/esp32-p4-waveshare-touch-lcd-7/CMakeLists.txt +1 -0
  29. package/targets/esp32-p4-waveshare-touch-lcd-7/main/CMakeLists.txt +4 -0
  30. package/targets/esp32-p4-waveshare-touch-lcd-7/main/display.cpp +16 -5
  31. package/targets/esp32-p4-waveshare-touch-lcd-7/main/idf_component.yml +8 -5
  32. package/targets/esp32-s3-elecrow-rotary-2.1/CMakeLists.txt +1 -0
  33. package/targets/esp32-s3-elecrow-rotary-2.1/main/CMakeLists.txt +3 -3
  34. package/targets/esp32-s3-elecrow-rotary-2.1/main/idf_component.yml +5 -2
  35. package/targets/esp32-s3-epaper-1.54/CMakeLists.txt +1 -0
  36. package/targets/esp32-s3-epaper-1.54/main/CMakeLists.txt +9 -9
  37. package/targets/esp32-s3-epaper-1.54/main/idf_component.yml +7 -4
  38. package/targets/esp32-s3-lilygo-t-display-s3-long/CMakeLists.txt +1 -0
  39. package/targets/esp32-s3-lilygo-t-display-s3-long/main/idf_component.yml +7 -4
  40. package/targets/esp32-s3-lilygo-t5-epaper-4.7/CMakeLists.txt +1 -0
  41. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/idf_component.yml +4 -1
  42. package/targets/esp32-s3-m5stack-papers3/CMakeLists.txt +1 -0
  43. package/targets/esp32-s3-m5stack-papers3/main/idf_component.yml +7 -4
  44. package/targets/esp32-s3-m5stack-sticks3/CMakeLists.txt +1 -0
  45. package/targets/esp32-s3-m5stack-sticks3/main/CMakeLists.txt +2 -1
  46. package/targets/esp32-s3-m5stack-sticks3/main/idf_component.yml +6 -3
  47. package/targets/esp32-s3-m5stack-stopwatch/CMakeLists.txt +1 -0
  48. package/targets/esp32-s3-m5stack-stopwatch/main/gea-dependencies.json +42 -0
  49. package/targets/esp32-s3-m5stack-stopwatch/main/idf_component.yml +4 -18
  50. package/targets/esp32-s3-touch-amoled-1.75/CMakeLists.txt +1 -0
  51. package/targets/esp32-s3-touch-amoled-1.75/main/idf_component.yml +8 -5
  52. package/targets/esp32-s3-touch-amoled-1.8/CMakeLists.txt +1 -0
  53. package/targets/esp32-s3-touch-amoled-1.8/main/CMakeLists.txt +9 -4
  54. package/targets/esp32-s3-touch-amoled-1.8/main/gea-dependencies.json +26 -0
  55. package/targets/esp32-s3-touch-amoled-1.8/main/idf_component.yml +6 -18
  56. package/targets/esp32-s3-touch-amoled-2.06/CMakeLists.txt +1 -0
  57. package/targets/esp32-s3-touch-amoled-2.06/main/CMakeLists.txt +11 -10
  58. package/targets/esp32-s3-touch-amoled-2.06/main/gea-dependencies.json +58 -0
  59. package/targets/esp32-s3-touch-amoled-2.06/main/idf_component.yml +4 -42
  60. package/targets/esp32-s3-touch-amoled-2.41/CMakeLists.txt +1 -0
  61. package/targets/esp32-s3-touch-amoled-2.41/main/gea-dependencies.json +42 -0
  62. package/targets/esp32-s3-touch-amoled-2.41/main/idf_component.yml +5 -30
  63. package/targets/esp32-s3-touch-lcd-1.54/CMakeLists.txt +1 -0
  64. package/targets/esp32-s3-touch-lcd-1.54/main/idf_component.yml +8 -5
  65. package/targets/esp32-s3-touch-lcd-3.5b/CMakeLists.txt +1 -0
  66. package/targets/esp32-s3-touch-lcd-3.5b/main/gea-dependencies.json +26 -0
  67. package/targets/esp32-s3-touch-lcd-3.5b/main/idf_component.yml +4 -20
  68. package/targets/esp32-s31-espressif-mosaico/CMakeLists.txt +1 -0
  69. package/targets/esp32-s31-espressif-mosaico/README.md +10 -2
  70. package/targets/esp32-s31-espressif-mosaico/dependencies.lock +7 -334
  71. package/targets/esp32-s31-espressif-mosaico/main/CMakeLists.txt +9 -1
  72. package/targets/esp32-s31-espressif-mosaico/main/board_power.cpp +13 -1
  73. package/targets/esp32-s31-espressif-mosaico/main/gea-dependencies.json +52 -0
  74. package/targets/esp32-s31-espressif-mosaico/main/idf_component.yml +13 -40
  75. package/targets/esp32-s31-espressif-mosaico/main/include/board.h +6 -0
  76. package/targets/esp32-s31-espressif-mosaico/main/include/mosaico_peer_uart_pins.h +68 -0
  77. package/targets/esp32-s31-espressif-mosaico/main/peer_uart.cpp +28 -72
  78. package/targets/esp32-s31-espressif-mosaico/partitions.csv +1 -1
  79. package/targets/esp32-s3-m5stack-stopwatch/.clang-format +0 -10
@@ -6,4 +6,5 @@ set(PROJECT_VER "${GEA_EMBEDDED_APP}" CACHE STRING "Firmware app id" FORCE)
6
6
 
7
7
  include($ENV{IDF_PATH}/tools/cmake/project.cmake)
8
8
  idf_build_set_property(MINIMAL_BUILD ON)
9
+ gea_solve_dependencies_in_build_dir()
9
10
  project(gea_embedded)
@@ -0,0 +1,42 @@
1
+ {
2
+ "espressif/esp_h264": {
3
+ "when": [
4
+ "h264"
5
+ ],
6
+ "dependency": {
7
+ "version": "==1.4.1"
8
+ }
9
+ },
10
+ "espressif/esp_audio_codec": {
11
+ "when": [
12
+ "rtc"
13
+ ],
14
+ "dependency": {
15
+ "version": "^2.6.2"
16
+ }
17
+ },
18
+ "espressif/esp_websocket_client": {
19
+ "when": [
20
+ "network"
21
+ ],
22
+ "dependency": {
23
+ "version": "==1.8.0"
24
+ }
25
+ },
26
+ "espressif/esp_peer": {
27
+ "when": [
28
+ "rtc"
29
+ ],
30
+ "dependency": {
31
+ "version": "^1.4"
32
+ }
33
+ },
34
+ "espressif/esp-sr": {
35
+ "when": [
36
+ "aec"
37
+ ],
38
+ "dependency": {
39
+ "version": "==2.5.5"
40
+ }
41
+ }
42
+ }
@@ -1,22 +1,8 @@
1
+ # Always-required SDK dependencies. Optional SDKs are selected from
2
+ # gea-dependencies.json by the CLI capability analyzer.
1
3
  dependencies:
2
- espressif/esp_lcd_co5300: '^2.0.2'
3
- espressif/esp_codec_dev: '^1.4.0'
4
+ espressif/esp_lcd_co5300: '==2.2.0'
5
+ espressif/esp_codec_dev: '==1.6.2'
4
6
  espressif/esp_new_jpeg: '==1.0.2'
5
- espressif/esp_h264:
6
- version: '==1.4.1'
7
- rules:
8
- - if: '$GEA_EMBEDDED_CAPABILITY_H264 == 1'
9
- espressif/esp_audio_codec:
10
- version: '^2.6.2'
11
- rules:
12
- - if: '$GEA_EMBEDDED_CAPABILITY_RTC == 1'
13
- espressif/esp_websocket_client:
14
- version: '^1.4'
15
- rules:
16
- - if: '$GEA_EMBEDDED_CAPABILITY_NETWORK == 1'
17
- espressif/esp_peer:
18
- version: '^1.4'
19
- rules:
20
- - if: '$GEA_EMBEDDED_CAPABILITY_RTC == 1'
21
7
  idf:
22
8
  version: '>=5.3'
@@ -7,4 +7,5 @@ set(PROJECT_VER "${GEA_EMBEDDED_APP}" CACHE STRING "Firmware app id" FORCE)
7
7
 
8
8
  include($ENV{IDF_PATH}/tools/cmake/project.cmake)
9
9
  idf_build_set_property(MINIMAL_BUILD ON)
10
+ gea_solve_dependencies_in_build_dir()
10
11
  project(gea_embedded)
@@ -1,11 +1,14 @@
1
+ # Registry versions are pinned to the ones dependencies.lock records. The build
2
+ # solves into its build directory (esp32/app_project.cmake), so a range would let
3
+ # a re-solve for another app's capabilities move them.
1
4
  dependencies:
2
5
  # PCM <-> Opus at the WebRTC media-track boundary.
3
6
  78/esp-opus: '^1.0.5'
4
- espressif/esp_lcd_co5300: '^2.0.3'
5
- waveshare/esp_lcd_touch_cst9217: '^1.0.1'
6
- espressif/esp_codec_dev: '^1.4.0'
7
+ espressif/esp_lcd_co5300: '==2.0.3'
8
+ waveshare/esp_lcd_touch_cst9217: '==1.0.4'
9
+ espressif/esp_codec_dev: '==1.5.10'
7
10
  esp_lcd_panel_io_additions: '^1'
8
- espressif/esp_websocket_client: '^1.4'
9
- espressif/esp_peer: '^1.4'
11
+ espressif/esp_websocket_client: '==1.7.0'
12
+ espressif/esp_peer: '==1.4.1'
10
13
  idf:
11
14
  version: '>=5.3'
@@ -7,4 +7,5 @@ set(PROJECT_VER "${GEA_EMBEDDED_APP}" CACHE STRING "Firmware app id" FORCE)
7
7
 
8
8
  include($ENV{IDF_PATH}/tools/cmake/project.cmake)
9
9
  idf_build_set_property(MINIMAL_BUILD ON)
10
+ gea_solve_dependencies_in_build_dir()
10
11
  project(gea_embedded)
@@ -440,9 +440,9 @@ endif()
440
440
 
441
441
  # RTC is independently excludable for apps that only need HTTP/Wi-Fi.
442
442
  set(_GEA_BOARD_RTC_ENABLED 1)
443
- if(DEFINED ENV{GEA_EMBEDDED_CAPABILITY_RTC}
444
- AND NOT "$ENV{GEA_EMBEDDED_CAPABILITY_RTC}" STREQUAL "")
445
- set(_GEA_BOARD_RTC_ENABLED "$ENV{GEA_EMBEDDED_CAPABILITY_RTC}")
443
+ if(DEFINED GEA_EMBEDDED_CAPABILITY_RTC
444
+ AND NOT "${GEA_EMBEDDED_CAPABILITY_RTC}" STREQUAL "")
445
+ set(_GEA_BOARD_RTC_ENABLED "${GEA_EMBEDDED_CAPABILITY_RTC}")
446
446
  elseif(DEFINED CACHE{GEA_EMBEDDED_CAPABILITY_RTC})
447
447
  set(_GEA_BOARD_RTC_ENABLED "$CACHE{GEA_EMBEDDED_CAPABILITY_RTC}")
448
448
  endif()
@@ -464,12 +464,16 @@ if(GEA_EMBEDDED_CAPABILITY_NETWORK OR GEA_EMBEDDED_BLE_OTA_ENABLED)
464
464
  list(APPEND GEA_BOARD_OTA_SOURCES "${GEA_EMBEDDED_ROOT}/targets/esp32/services/ota_image.cpp")
465
465
  endif()
466
466
 
467
- if(GEA_EMBEDDED_CAPABILITY_AUDIO AND "$ENV{GEA_EMBEDDED_CAPABILITY_AEC}" STREQUAL "1")
467
+ if(GEA_EMBEDDED_CAPABILITY_AUDIO AND GEA_EMBEDDED_CAPABILITY_AEC)
468
468
  list(APPEND GEA_BOARD_PLATFORM_SOURCES
469
469
  "${GEA_EMBEDDED_ROOT}/targets/esp32/chip_bindings/audio/echo_cancellation.cpp")
470
470
  list(APPEND GEA_BOARD_EXTRA_REQUIRES esp-sr)
471
471
  endif()
472
472
 
473
+ if(GEA_APP_CAPABILITY_DEPENDENCIES)
474
+ list(APPEND GEA_BOARD_EXTRA_REQUIRES gea_app_dependencies)
475
+ endif()
476
+
473
477
  idf_component_register(
474
478
  SRCS
475
479
  ${GEA_BOARD_PLATFORM_SOURCES}
@@ -731,6 +735,7 @@ add_dependencies(geatsc_active_archive geatsc_build)
731
735
  # Match the dedicated asset archive used by the 2.06 target; section GC still
732
736
  # discards unused data after the registry and its referenced assets are linked.
733
737
  add_library(gea_active_app_assets STATIC "${GENERATED_ASSETS_CPP}")
738
+ target_include_directories(gea_active_app_assets PRIVATE ${GEA_FW_INCLUDE_DIRS})
734
739
  add_dependencies(gea_active_app_assets geatsc_build)
735
740
  target_link_libraries(${COMPONENT_LIB} PRIVATE
736
741
  "-Wl$<COMMA>--whole-archive$<COMMA>$<TARGET_FILE:gea_active_app_assets>$<COMMA>--no-whole-archive")
@@ -0,0 +1,26 @@
1
+ {
2
+ "espressif/esp_h264": {
3
+ "when": [
4
+ "network"
5
+ ],
6
+ "dependency": {
7
+ "version": "==1.4.1"
8
+ }
9
+ },
10
+ "espressif/esp-sr": {
11
+ "when": [
12
+ "aec"
13
+ ],
14
+ "dependency": {
15
+ "version": "==2.5.5"
16
+ }
17
+ },
18
+ "espressif/esp_audio_codec": {
19
+ "when": [
20
+ "network"
21
+ ],
22
+ "dependency": {
23
+ "version": "==2.6.2"
24
+ }
25
+ }
26
+ }
@@ -1,23 +1,11 @@
1
+ # Always-required SDK dependencies. Optional SDKs are selected from
2
+ # gea-dependencies.json by the CLI capability analyzer.
1
3
  dependencies:
2
- espressif/esp_h264:
3
- version: '==1.4.1'
4
- rules:
5
- - if: '$GEA_EMBEDDED_CAPABILITY_NETWORK == 1'
6
4
  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'
17
- espressif/esp_lcd_sh8601: '^2.0.1'
18
- espressif/esp_codec_dev: '^1.4.0'
5
+ espressif/esp_lcd_sh8601: '==2.0.1~1'
6
+ espressif/esp_codec_dev: '==1.5.9'
19
7
  esp_lcd_panel_io_additions: '^1'
20
- espressif/esp_websocket_client: '^1.4'
21
- espressif/esp_peer: '^1.4'
8
+ espressif/esp_websocket_client: '==1.7.0'
9
+ espressif/esp_peer: '==1.4.1'
22
10
  idf:
23
11
  version: '>=5.3'
@@ -7,6 +7,7 @@ set(PROJECT_VER "${GEA_EMBEDDED_APP}" CACHE STRING "Firmware app id" FORCE)
7
7
 
8
8
  include($ENV{IDF_PATH}/tools/cmake/project.cmake)
9
9
  idf_build_set_property(MINIMAL_BUILD ON)
10
+ gea_solve_dependencies_in_build_dir()
10
11
  project(gea_embedded)
11
12
  include("${CMAKE_CURRENT_LIST_DIR}/../esp32/i2c_completion_order.cmake")
12
13
  gea_fix_i2c_completion_order()
@@ -319,9 +319,9 @@ set(GEA_EMBEDDED_CAPABILITY_COMPILE_DEFINITIONS "")
319
319
  # capability again from the real app analysis before choosing sources/REQUIRES.
320
320
  if(DEFINED ENV{GEA_EMBEDDED_BLE_OTA} AND "$ENV{GEA_EMBEDDED_BLE_OTA}" STREQUAL "1")
321
321
  set(GEA_EMBEDDED_CAPABILITY_BLE 1)
322
- elseif(DEFINED ENV{GEA_EMBEDDED_CAPABILITY_BLE}
323
- AND NOT "$ENV{GEA_EMBEDDED_CAPABILITY_BLE}" STREQUAL "")
324
- set(GEA_EMBEDDED_CAPABILITY_BLE "$ENV{GEA_EMBEDDED_CAPABILITY_BLE}")
322
+ elseif(DEFINED GEA_EMBEDDED_CAPABILITY_BLE
323
+ AND NOT "${GEA_EMBEDDED_CAPABILITY_BLE}" STREQUAL "")
324
+ set(GEA_EMBEDDED_CAPABILITY_BLE "${GEA_EMBEDDED_CAPABILITY_BLE}")
325
325
  elseif(DEFINED CACHE{GEA_EMBEDDED_CAPABILITY_BLE}
326
326
  AND NOT "$CACHE{GEA_EMBEDDED_CAPABILITY_BLE}" STREQUAL "")
327
327
  set(GEA_EMBEDDED_CAPABILITY_BLE "$CACHE{GEA_EMBEDDED_CAPABILITY_BLE}")
@@ -338,9 +338,9 @@ endif()
338
338
  # the whole Wi-Fi/HTTP/TLS stack and the codec path into an app that asks for
339
339
  # neither is not a smaller price for being invisible -- it is flash, RAM,
340
340
  # link-time literal pressure, and managed components nobody asked for.
341
- if(DEFINED ENV{GEA_EMBEDDED_CAPABILITY_NETWORK}
342
- AND NOT "$ENV{GEA_EMBEDDED_CAPABILITY_NETWORK}" STREQUAL "")
343
- set(GEA_EMBEDDED_CAPABILITY_NETWORK "$ENV{GEA_EMBEDDED_CAPABILITY_NETWORK}")
341
+ if(DEFINED GEA_EMBEDDED_CAPABILITY_NETWORK
342
+ AND NOT "${GEA_EMBEDDED_CAPABILITY_NETWORK}" STREQUAL "")
343
+ set(GEA_EMBEDDED_CAPABILITY_NETWORK "${GEA_EMBEDDED_CAPABILITY_NETWORK}")
344
344
  elseif(DEFINED CACHE{GEA_EMBEDDED_CAPABILITY_NETWORK}
345
345
  AND NOT "$CACHE{GEA_EMBEDDED_CAPABILITY_NETWORK}" STREQUAL "")
346
346
  set(GEA_EMBEDDED_CAPABILITY_NETWORK "$CACHE{GEA_EMBEDDED_CAPABILITY_NETWORK}")
@@ -351,9 +351,9 @@ else()
351
351
  set(GEA_EMBEDDED_CAPABILITY_NETWORK 1)
352
352
  endif()
353
353
  endif()
354
- if(DEFINED ENV{GEA_EMBEDDED_CAPABILITY_AUDIO}
355
- AND NOT "$ENV{GEA_EMBEDDED_CAPABILITY_AUDIO}" STREQUAL "")
356
- set(GEA_EMBEDDED_CAPABILITY_AUDIO "$ENV{GEA_EMBEDDED_CAPABILITY_AUDIO}")
354
+ if(DEFINED GEA_EMBEDDED_CAPABILITY_AUDIO
355
+ AND NOT "${GEA_EMBEDDED_CAPABILITY_AUDIO}" STREQUAL "")
356
+ set(GEA_EMBEDDED_CAPABILITY_AUDIO "${GEA_EMBEDDED_CAPABILITY_AUDIO}")
357
357
  elseif(DEFINED CACHE{GEA_EMBEDDED_CAPABILITY_AUDIO}
358
358
  AND NOT "$CACHE{GEA_EMBEDDED_CAPABILITY_AUDIO}" STREQUAL "")
359
359
  set(GEA_EMBEDDED_CAPABILITY_AUDIO "$CACHE{GEA_EMBEDDED_CAPABILITY_AUDIO}")
@@ -577,7 +577,7 @@ if(NOT GEA_APP_CANVAS_ONLY)
577
577
  "${GEA_HOST}/audio_runtime.cpp"
578
578
  )
579
579
  list(APPEND GEA_EMBEDDED_TARGET_REQUIRES esp_driver_i2s esp_codec_dev)
580
- if("$ENV{GEA_EMBEDDED_CAPABILITY_AEC}" STREQUAL "1")
580
+ if("${GEA_EMBEDDED_CAPABILITY_AEC}" STREQUAL "1")
581
581
  list(APPEND GEA_EMBEDDED_TARGET_HOST_SOURCES
582
582
  "${GEA_EMBEDDED_ROOT}/targets/esp32/chip_bindings/audio/echo_cancellation.cpp")
583
583
  list(APPEND GEA_EMBEDDED_TARGET_REQUIRES esp-sr)
@@ -974,6 +974,7 @@ add_dependencies(geatsc_active_archive geatsc_build)
974
974
  # argument: otherwise CMake can separate the switches across IDF's repeated
975
975
  # dependency groups. --gc-sections still drops unused asset sections.
976
976
  add_library(gea_active_app_assets STATIC "${GENERATED_ASSETS_CPP}")
977
+ target_include_directories(gea_active_app_assets PRIVATE ${GEA_FW_INCLUDE_DIRS})
977
978
  add_dependencies(gea_active_app_assets geatsc_build)
978
979
  target_link_libraries(${COMPONENT_LIB} PRIVATE
979
980
  "-Wl$<COMMA>--whole-archive$<COMMA>$<TARGET_FILE:gea_active_app_assets>$<COMMA>--no-whole-archive")
@@ -0,0 +1,58 @@
1
+ {
2
+ "espressif/esp_new_jpeg": {
3
+ "when": [
4
+ "network"
5
+ ],
6
+ "dependency": {
7
+ "version": "==1.0.2"
8
+ }
9
+ },
10
+ "espressif/esp_h264": {
11
+ "when": [
12
+ "network"
13
+ ],
14
+ "dependency": {
15
+ "version": "^1.4.1"
16
+ }
17
+ },
18
+ "espressif/esp-sr": {
19
+ "when": [
20
+ "aec"
21
+ ],
22
+ "dependency": {
23
+ "version": "==2.5.5"
24
+ }
25
+ },
26
+ "espressif/esp_audio_codec": {
27
+ "when": [
28
+ "network"
29
+ ],
30
+ "dependency": {
31
+ "version": "^2.6.2"
32
+ }
33
+ },
34
+ "espressif/esp_codec_dev": {
35
+ "when": [
36
+ "audio"
37
+ ],
38
+ "dependency": {
39
+ "version": "^1.4.0"
40
+ }
41
+ },
42
+ "espressif/esp_websocket_client": {
43
+ "when": [
44
+ "network"
45
+ ],
46
+ "dependency": {
47
+ "version": "^1.4"
48
+ }
49
+ },
50
+ "espressif/esp_peer": {
51
+ "when": [
52
+ "network"
53
+ ],
54
+ "dependency": {
55
+ "version": "1.5.5"
56
+ }
57
+ }
58
+ }
@@ -1,49 +1,11 @@
1
- # A managed dependency is a requirement of `main` the moment it is listed here,
2
- # so gating only the REQUIRES leaves the component downloaded, configured and
3
- # built. The `if:` rules keep each registry component tied to the capability
4
- # whose source actually uses it. GEA_EMBEDDED_CAPABILITY_* comes from the gea
5
- # CLI's app analysis; app_project.cmake defaults each to 1 before project() so a
6
- # direct `idf.py` build keeps everything (and so the component manager never
7
- # sees an unset variable, which it treats as an error).
1
+ # Always-required SDK dependencies. Optional SDKs are selected from
2
+ # gea-dependencies.json by the CLI capability analyzer.
8
3
  dependencies:
9
4
  # host/mjpeg.cpp needs this header in main, not only gea_framework.
10
- espressif/esp_new_jpeg:
11
- version: '==1.0.2'
12
- rules:
13
- - if: '$GEA_EMBEDDED_CAPABILITY_NETWORK == 1'
14
- espressif/esp_h264:
15
- version: '^1.4.1'
16
- rules:
17
- - if: '$GEA_EMBEDDED_CAPABILITY_NETWORK == 1'
18
- espressif/esp-sr:
19
- version: '==2.5.5'
20
- rules:
21
- - if: '$GEA_EMBEDDED_CAPABILITY_AEC == 1'
22
- # Optimized Opus leaves CPU time for simultaneous AEC and rendering.
23
- espressif/esp_audio_codec:
24
- version: '^2.6.2'
25
- rules:
26
- - if: '$GEA_EMBEDDED_CAPABILITY_NETWORK == 1'
27
- espressif/esp_lcd_co5300: '^2.0.3'
5
+ espressif/esp_lcd_co5300: '==2.2.0'
28
6
  # Custom QSPI boards may select the existing SH8601 binding.
29
- espressif/esp_lcd_sh8601: '^2.0.0'
7
+ espressif/esp_lcd_sh8601: '==2.0.1~1'
30
8
  esp_lcd_panel_io_additions: '^1'
31
9
  # chip_bindings/audio/es8311.cpp
32
- espressif/esp_codec_dev:
33
- version: '^1.4.0'
34
- rules:
35
- - if: '$GEA_EMBEDDED_CAPABILITY_AUDIO == 1'
36
- # host/websocket.cpp
37
- espressif/esp_websocket_client:
38
- version: '^1.4'
39
- rules:
40
- - if: '$GEA_EMBEDDED_CAPABILITY_NETWORK == 1'
41
- # host/rtc_esp.cpp -- the WebRTC peer, and libsrtp behind it
42
- espressif/esp_peer:
43
- # 1.5.6 rejects peer-reflexive NAT mappings during ICE nomination.
44
- # Keep the version explicit while verifying the direct Realtime path.
45
- version: '1.5.5'
46
- rules:
47
- - if: '$GEA_EMBEDDED_CAPABILITY_NETWORK == 1'
48
10
  idf:
49
11
  version: '>=5.3'
@@ -7,4 +7,5 @@ set(PROJECT_VER "${GEA_EMBEDDED_APP}" CACHE STRING "Firmware app id" FORCE)
7
7
 
8
8
  include($ENV{IDF_PATH}/tools/cmake/project.cmake)
9
9
  idf_build_set_property(MINIMAL_BUILD ON)
10
+ gea_solve_dependencies_in_build_dir()
10
11
  project(gea_embedded)
@@ -0,0 +1,42 @@
1
+ {
2
+ "espressif/esp_h264": {
3
+ "when": [
4
+ "network"
5
+ ],
6
+ "dependency": {
7
+ "version": "==1.4.1"
8
+ }
9
+ },
10
+ "78/esp-opus": {
11
+ "when": [
12
+ "network"
13
+ ],
14
+ "dependency": {
15
+ "version": "==1.0.5"
16
+ }
17
+ },
18
+ "espressif/esp_websocket_client": {
19
+ "when": [
20
+ "network"
21
+ ],
22
+ "dependency": {
23
+ "version": "==1.8.0"
24
+ }
25
+ },
26
+ "espressif/esp_peer": {
27
+ "when": [
28
+ "network"
29
+ ],
30
+ "dependency": {
31
+ "version": "==1.5.6"
32
+ }
33
+ },
34
+ "espressif/esp-sr": {
35
+ "when": [
36
+ "aec"
37
+ ],
38
+ "dependency": {
39
+ "version": "==2.5.5"
40
+ }
41
+ }
42
+ }
@@ -1,37 +1,12 @@
1
- # A managed dependency is a requirement of `main` the moment it is listed here,
2
- # so gating only the REQUIRES leaves the component downloaded, configured and
3
- # built. The `if:` rules keep each registry component tied to the capability
4
- # whose source actually uses it. GEA_EMBEDDED_CAPABILITY_* comes from the gea
5
- # CLI's app analysis; app_project.cmake defaults each to 1 before project() so a
6
- # direct `idf.py` build keeps everything (and so the component manager never
7
- # sees an unset variable, which it treats as an error).
8
- #
9
- # No esp_codec_dev: this board carries no audio codec.
1
+ # Always-required SDK dependencies. Optional SDKs are selected from
2
+ # gea-dependencies.json by the CLI capability analyzer.
10
3
  dependencies:
11
4
  # 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'
21
- espressif/esp_lcd_sh8601: '^2.0.1'
5
+ espressif/esp_lcd_sh8601: '==2.0.1~1'
22
6
  # panel_reset.cpp -- OLED_RESET/TP_RESET sit on a TCA9554
23
- espressif/esp_io_expander: '^1'
24
- espressif/esp_io_expander_tca9554: '^2'
7
+ espressif/esp_io_expander: '==1.2.1'
8
+ espressif/esp_io_expander_tca9554: '==2.0.3'
25
9
  esp_lcd_panel_io_additions: '^1'
26
10
  # host/websocket.cpp
27
- espressif/esp_websocket_client:
28
- version: '^1.4'
29
- rules:
30
- - if: '$GEA_EMBEDDED_CAPABILITY_NETWORK == 1'
31
- # host/rtc_esp.cpp -- the WebRTC peer, and libsrtp behind it
32
- espressif/esp_peer:
33
- version: '^1.4'
34
- rules:
35
- - if: '$GEA_EMBEDDED_CAPABILITY_NETWORK == 1'
36
11
  idf:
37
12
  version: '>=5.3'
@@ -7,4 +7,5 @@ set(PROJECT_VER "${GEA_EMBEDDED_APP}" CACHE STRING "Firmware app id" FORCE)
7
7
 
8
8
  include($ENV{IDF_PATH}/tools/cmake/project.cmake)
9
9
  idf_build_set_property(MINIMAL_BUILD ON)
10
+ gea_solve_dependencies_in_build_dir()
10
11
  project(gea_embedded)
@@ -1,7 +1,10 @@
1
+ # Registry versions are pinned to the ones dependencies.lock records. The build
2
+ # solves into its build directory (esp32/app_project.cmake), so a range would let
3
+ # a re-solve for another app's capabilities move them.
1
4
  dependencies:
2
5
  idf: '>=5.3'
3
- espressif/esp_lcd_touch_cst816s: '^1.0.6'
4
- espressif/esp_codec_dev: '^1.4.0'
5
- espressif/esp_websocket_client: '^1.4'
6
- espressif/esp_peer: '^1.4'
7
- 78/esp-opus: '^1.0.5'
6
+ espressif/esp_lcd_touch_cst816s: '==1.1.2'
7
+ espressif/esp_codec_dev: '==1.6.2'
8
+ espressif/esp_websocket_client: '==1.8.0'
9
+ espressif/esp_peer: '==1.5.6'
10
+ 78/esp-opus: '==1.0.5'
@@ -7,4 +7,5 @@ set(PROJECT_VER "${GEA_EMBEDDED_APP}" CACHE STRING "Firmware app id" FORCE)
7
7
 
8
8
  include($ENV{IDF_PATH}/tools/cmake/project.cmake)
9
9
  idf_build_set_property(MINIMAL_BUILD ON)
10
+ gea_solve_dependencies_in_build_dir()
10
11
  project(gea_embedded)
@@ -0,0 +1,26 @@
1
+ {
2
+ "espressif/esp_websocket_client": {
3
+ "when": [
4
+ "network"
5
+ ],
6
+ "dependency": {
7
+ "version": "^1.4"
8
+ }
9
+ },
10
+ "espressif/esp_peer": {
11
+ "when": [
12
+ "network"
13
+ ],
14
+ "dependency": {
15
+ "version": "^1.4"
16
+ }
17
+ },
18
+ "espressif/esp-sr": {
19
+ "when": [
20
+ "aec"
21
+ ],
22
+ "dependency": {
23
+ "version": "==2.5.5"
24
+ }
25
+ }
26
+ }
@@ -1,24 +1,8 @@
1
- # A managed dependency is a requirement of `main` the moment it is listed here,
2
- # so gating only the REQUIRES leaves the component downloaded, configured and
3
- # built. The `if:` rules keep each registry component tied to the capability
4
- # whose source actually uses it. GEA_EMBEDDED_CAPABILITY_* comes from the gea
5
- # CLI's app analysis; app_project.cmake defaults each to 1 before project() so a
6
- # direct `idf.py` build keeps everything (and so the component manager never
7
- # sees an unset variable, which it treats as an error).
8
- #
9
- # The ES8311 provides the onboard speaker output.
1
+ # Always-required SDK dependencies. Optional SDKs are selected from
2
+ # gea-dependencies.json by the CLI capability analyzer.
10
3
  dependencies:
11
- espressif/esp_codec_dev: '^1.4.0'
12
- espressif/esp_lcd_axs15231b: '^2.1.0'
4
+ espressif/esp_codec_dev: '==1.6.2'
5
+ espressif/esp_lcd_axs15231b: '==2.1.1'
13
6
  # host/websocket.cpp
14
- espressif/esp_websocket_client:
15
- version: '^1.4'
16
- rules:
17
- - if: '$GEA_EMBEDDED_CAPABILITY_NETWORK == 1'
18
- # host/rtc_esp.cpp -- the WebRTC peer, and libsrtp behind it
19
- espressif/esp_peer:
20
- version: '^1.4'
21
- rules:
22
- - if: '$GEA_EMBEDDED_CAPABILITY_NETWORK == 1'
23
7
  idf:
24
8
  version: '>=5.3'
@@ -7,6 +7,7 @@ set(PROJECT_VER "${GEA_EMBEDDED_APP}" CACHE STRING "Firmware app id" FORCE)
7
7
 
8
8
  include($ENV{IDF_PATH}/tools/cmake/project.cmake)
9
9
  idf_build_set_property(MINIMAL_BUILD ON)
10
+ gea_solve_dependencies_in_build_dir()
10
11
  # Camera component patches use git apply --no-index against PROJECT_DIR.
11
12
  # Inside a consumer Git checkout, discovery of its enclosing repository makes
12
13
  # Git silently skip those project-relative paths and report success. Stop
@@ -66,8 +66,16 @@ wear levelling. `main/nand_mount.cpp` installs the storage provider; file
66
66
  operations mount it as needed, and a blank chip is formatted on first mount.
67
67
  Assets can be uploaded with `gea devctl push <file> /nand/...`.
68
68
 
69
- Not yet wired: the BQ27220 fuel gauge (the board reports no battery reading)
70
- and the BMM150 magnetometers.
69
+ `Magnetometer.open()` enables both BMM150 sensors on the existing onboard
70
+ I2C bus. Index 0 is the right sensor at 0x11; index 1 is the left at 0x12.
71
+ `Magnetometer.read(index)` returns compensated integer microtesla, validity,
72
+ axis saturation bits and a microsecond timestamp. Native `readAll()` samples
73
+ both back-to-back with a shared completion timestamp. Overflow sentinels are
74
+ preserved for the magnetic classifier; saturated values are not field strength.
75
+ The driver uses the pinned BSD-3-Clause `espressif/bmm150` 1.1.0 component and
76
+ never owns or removes the shared bus. Call it from a sensor task, not audio I/O.
77
+
78
+ Not yet wired: the BQ27220 fuel gauge (the board reports no battery reading).
71
79
 
72
80
  ## Camera module
73
81