@geastack/targets 0.1.88 → 0.1.90

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 (37) hide show
  1. package/build-config.json +32 -0
  2. package/package.json +2 -2
  3. package/targets/cmake/geatsc_generated_archive.cmake +18 -2
  4. package/targets/esp32/chip_bindings/audio/echo_cancellation.cpp +35 -19
  5. package/targets/esp32/chip_bindings/audio/echo_cancellation.h +2 -1
  6. package/targets/esp32/chip_bindings/audio/es8311.cpp +45 -8
  7. package/targets/esp32/chip_bindings/displays/co5300.cpp +40 -0
  8. package/targets/esp32/chip_bindings/imu/bmi270.cpp +6 -1
  9. package/targets/esp32/connectivity/wifi.cpp +4 -0
  10. package/targets/esp32/display.cpp +23 -0
  11. package/targets/esp32/services/audio_runtime_stub.cpp +2 -0
  12. package/targets/esp32/services/device_control.cpp +75 -9
  13. package/targets/esp32/services/frame_scheduler.cpp +7 -0
  14. package/targets/esp32-s3-epaper-1.54/main/CMakeLists.txt +15 -5
  15. package/targets/esp32-s3-touch-amoled-1.8/dependencies.lock +16 -1
  16. package/targets/esp32-s3-touch-amoled-1.8/main/CMakeLists.txt +5 -1
  17. package/targets/esp32-s3-touch-amoled-1.8/main/idf_component.yml +4 -0
  18. package/targets/esp32-s3-touch-amoled-1.8/main/include/board.h +12 -0
  19. package/targets/esp32-s3-touch-amoled-1.8/main/launcher_button.cpp +6 -1
  20. package/targets/esp32-s3-touch-amoled-2.06/dependencies.lock +3 -2
  21. package/targets/esp32-s3-touch-amoled-2.06/main/CMakeLists.txt +1 -0
  22. package/targets/esp32-s3-touch-amoled-2.06/main/idf_component.yml +5 -0
  23. package/targets/esp32-s3-touch-amoled-2.06/main/include/board.h +7 -0
  24. package/targets/esp32-s31-espressif-mosaico/CMakeLists.txt +10 -0
  25. package/targets/esp32-s31-espressif-mosaico/README.md +56 -0
  26. package/targets/esp32-s31-espressif-mosaico/dependencies.lock +137 -0
  27. package/targets/esp32-s31-espressif-mosaico/main/CMakeLists.txt +63 -0
  28. package/targets/esp32-s31-espressif-mosaico/main/Kconfig.projbuild +12 -0
  29. package/targets/esp32-s31-espressif-mosaico/main/board_power.cpp +386 -0
  30. package/targets/esp32-s31-espressif-mosaico/main/idf_component.yml +36 -0
  31. package/targets/esp32-s31-espressif-mosaico/main/include/board.h +147 -0
  32. package/targets/esp32-s31-espressif-mosaico/main/include/wifi_config.h.example +5 -0
  33. package/targets/esp32-s31-espressif-mosaico/main/touch.cpp +45 -0
  34. package/targets/esp32-s31-espressif-mosaico/partitions.csv +10 -0
  35. package/targets/esp32-s31-espressif-mosaico/sdkconfig.defaults +194 -0
  36. package/targets/rp2350-waveshare-touch-amoled-2.41/main/rp2350_gea_platform.cpp +3 -0
  37. package/targets.json +12 -0
@@ -504,6 +504,21 @@ if(TARGET idf::fatfs)
504
504
  "SHELL:-include ${CMAKE_CURRENT_LIST_DIR}/fatfs_ffconf.h")
505
505
  endif()
506
506
 
507
+ # Board id as a C string for app native sources (e.g. the diagnostics
508
+ # deviceInfo facade keys its capability catalog off deviceId()). Without this
509
+ # the facade's #ifndef fallback returns "unknown" and every subsystem shows up
510
+ # absent/N/A. gea_framework.cmake already defines GEA_EMBEDDED_CPP_BOARD bare
511
+ # for the whole build (the runtime's board pool layout tests only that it is
512
+ # defined), so the id REPLACES that build-wide define rather than adding a
513
+ # second, conflicting one beside it: every component still agrees on the pool
514
+ # layout, and the framework sources stop failing with "redefined" -Werror.
515
+ if(COMMAND idf_build_get_property)
516
+ idf_build_get_property(_GEA_BUILD_DEFINES COMPILE_DEFINITIONS)
517
+ list(REMOVE_ITEM _GEA_BUILD_DEFINES "GEA_EMBEDDED_CPP_BOARD")
518
+ list(APPEND _GEA_BUILD_DEFINES "GEA_EMBEDDED_CPP_BOARD=\"${GEA_EMBEDDED_CPP_BOARD}\"")
519
+ idf_build_set_property(COMPILE_DEFINITIONS "${_GEA_BUILD_DEFINES}")
520
+ endif()
521
+
507
522
  set(GEA_EMBEDDED_HEAP_DIAGNOSTICS_LOG_VALUE 0)
508
523
  if(DEFINED ENV{GEA_EMBEDDED_HEAP_DIAGNOSTICS_LOG})
509
524
  set(GEA_EMBEDDED_HEAP_DIAGNOSTICS_LOG_VALUE "$ENV{GEA_EMBEDDED_HEAP_DIAGNOSTICS_LOG}")
@@ -519,11 +534,6 @@ target_compile_definitions(${COMPONENT_LIB} PRIVATE
519
534
  # 1-bit panels (epaper family default): stylesheets can theme via
520
535
  # `@media (monochrome)`. Color boards reusing this definition set 0.
521
536
  GEA_EMBEDDED_DISPLAY_MONOCHROME=${GEA_EMBEDDED_TARGET_DISPLAY_MONOCHROME}
522
- # Board id as a C string for app native sources (e.g. the diagnostics
523
- # deviceInfo facade keys its capability catalog off deviceId()). Without this
524
- # the facade's #ifndef fallback returns "unknown" and every subsystem shows
525
- # up absent/N/A.
526
- GEA_EMBEDDED_CPP_BOARD=\"${GEA_EMBEDDED_CPP_BOARD}\"
527
537
  GEA_CPP_ENABLE_REGEX=0
528
538
  GEA_CPP_USE_TO_CHARS_DOUBLE=0
529
539
  GEA_EMBEDDED_HEAP_DIAGNOSTICS_LOG=${GEA_EMBEDDED_HEAP_DIAGNOSTICS_LOG_VALUE}
@@ -105,6 +105,20 @@ dependencies:
105
105
  registry_url: https://components.espressif.com/
106
106
  type: service
107
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
108
122
  espressif/esp_io_expander:
109
123
  component_hash: 7b7f91270172e46ca4597e3874f48d8412e280e8c295559f5922ec38656e3e5f
110
124
  dependencies:
@@ -202,12 +216,13 @@ direct_dependencies:
202
216
  - espressif/esp-sr
203
217
  - espressif/esp_audio_codec
204
218
  - espressif/esp_codec_dev
219
+ - espressif/esp_h264
205
220
  - espressif/esp_lcd_panel_io_additions
206
221
  - espressif/esp_lcd_sh8601
207
222
  - espressif/esp_new_jpeg
208
223
  - espressif/esp_peer
209
224
  - espressif/esp_websocket_client
210
225
  - idf
211
- manifest_hash: 05c57d96aa0b34e57a5a3a283315ffdeb977120a8bb1f7caf3f2235d6c0e6577
226
+ manifest_hash: 7a2fdbc750c2e657f8c7b4613b18bcb01c31cce82dcd618039369e3b5fcb4c99
212
227
  target: esp32s3
213
228
  version: 3.0.0
@@ -307,7 +307,9 @@ set(GEATSC_COMPILE_OPTIONS
307
307
  -Wno-dangling-reference
308
308
  -Wno-dangling-pointer
309
309
  -${GEA_BUILD_COMPILER_GENERATED_CODE_OPTIMIZATION}
310
- -mtext-section-literals
310
+ # Xtensa only (gea_framework.cmake); a RISC-V board on this base (the
311
+ # ESP32-S31 Mosaico) has no such option and gcc refuses the whole archive.
312
+ ${GEA_XTENSA_LITERALS}
311
313
  )
312
314
  set(GEATSC_COMPILE_DEFINITIONS "")
313
315
  if(NOT CMAKE_SCRIPT_MODE_FILE)
@@ -499,6 +501,8 @@ idf_component_register(
499
501
  esp_netif
500
502
  esp_event
501
503
  nvs_flash
504
+ # storage_service.cpp mounts the storage partition (esp_spiffs.h).
505
+ spiffs
502
506
  esp_lcd
503
507
  driver
504
508
  esp_driver_i2c
@@ -1,4 +1,8 @@
1
1
  dependencies:
2
+ espressif/esp_h264:
3
+ version: '==1.4.1'
4
+ rules:
5
+ - if: '$GEA_EMBEDDED_CAPABILITY_NETWORK == 1'
2
6
  espressif/esp_new_jpeg: '==1.0.2'
3
7
  espressif/esp-sr:
4
8
  version: '==2.5.5'
@@ -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
 
@@ -19,7 +19,12 @@ namespace gea::platform::esp32::apps {
19
19
  namespace {
20
20
 
21
21
  constexpr const char *kTag = "launcher_button";
22
- constexpr gpio_num_t kGpio = GPIO_NUM_0;
22
+ // BOOT/GPIO0 on the S3 boards. A board whose GPIO0 is something else (on the
23
+ // ESP-Mosaico it is the expansion I2C bus) names its button pin instead.
24
+ #ifndef GEA_BOARD_LAUNCHER_BUTTON_GPIO
25
+ #define GEA_BOARD_LAUNCHER_BUTTON_GPIO 0
26
+ #endif
27
+ constexpr gpio_num_t kGpio = static_cast<gpio_num_t>(GEA_BOARD_LAUNCHER_BUTTON_GPIO);
23
28
  constexpr int kActiveLevel = 0;
24
29
  constexpr int kDebounceMs = 50;
25
30
  constexpr int kPollMs = 25;
@@ -172,7 +172,7 @@ dependencies:
172
172
  component_hash: e1e7e6991193c41ed6c9fc386702aa7821433319e7aa9c3147cd3236310cd69c
173
173
  dependencies: []
174
174
  source:
175
- registry_url: https://components.espressif.com
175
+ registry_url: https://components.espressif.com/
176
176
  type: service
177
177
  targets:
178
178
  - esp32
@@ -219,9 +219,10 @@ direct_dependencies:
219
219
  - espressif/esp_h264
220
220
  - espressif/esp_lcd_co5300
221
221
  - espressif/esp_lcd_panel_io_additions
222
+ - espressif/esp_new_jpeg
222
223
  - espressif/esp_peer
223
224
  - espressif/esp_websocket_client
224
225
  - idf
225
- manifest_hash: 8042114f8e64bc150dfc3eb9ea5ed30cb9eace6cc596df7e877ec83a850d312a
226
+ manifest_hash: 0dc57984fca8a1c7d21cd93f23e3f0722d046fd111c214224bcb9fed7be4746f
226
227
  target: esp32s3
227
228
  version: 3.0.0
@@ -597,6 +597,7 @@ if(NOT GEA_APP_CANVAS_ONLY)
597
597
  endif()
598
598
  if(GEA_EMBEDDED_CAPABILITY_NETWORK)
599
599
  list(APPEND GEA_EMBEDDED_TARGET_REQUIRES
600
+ esp_new_jpeg
600
601
  lwip
601
602
  esp_wifi
602
603
  esp_http_server
@@ -6,6 +6,11 @@
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
+ # 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'
9
14
  espressif/esp_h264:
10
15
  version: '^1.4.1'
11
16
  rules:
@@ -47,6 +47,9 @@ struct Es8311AudioConfig {
47
47
  int es7210Address;
48
48
  // Physical ES7210 input wired to the ES8311 analog playback reference.
49
49
  int es7210ReferenceMic;
50
+ // Calibrate the cancelled near-end signal without clipping the ADC on echo.
51
+ float aecOutputGain;
52
+ bool aecAggressiveNlp;
50
53
  };
51
54
 
52
55
  struct SdMmcConfig {
@@ -99,6 +102,10 @@ public:
99
102
  .powerAmplifier = GPIO_NUM_46,
100
103
  .es7210Address = 0x40,
101
104
  .es7210ReferenceMic = 3,
105
+ // +9 dB after cancellation improves normal-voice interruption sensitivity
106
+ // without raising the ADC level or the speaker reference gain.
107
+ .aecOutputGain = 53.3408610f,
108
+ .aecAggressiveNlp = false,
102
109
  };
103
110
  };
104
111
 
@@ -0,0 +1,10 @@
1
+ cmake_minimum_required(VERSION 3.16)
2
+
3
+ set(EXTRA_COMPONENT_DIRS "${CMAKE_CURRENT_LIST_DIR}/../esp32/components")
4
+ include("${CMAKE_CURRENT_LIST_DIR}/../esp32/app_project.cmake")
5
+ set(GEA_EMBEDDED_APP "tic-tac-toe" CACHE STRING "Example app to build (must match a package.json gea.id)")
6
+ set(PROJECT_VER "${GEA_EMBEDDED_APP}" CACHE STRING "Firmware app id" FORCE)
7
+
8
+ include($ENV{IDF_PATH}/tools/cmake/project.cmake)
9
+ idf_build_set_property(MINIMAL_BUILD ON)
10
+ project(gea_embedded)
@@ -0,0 +1,56 @@
1
+ # Espressif ESP-Mosaico
2
+
3
+ Target ID: `esp32-s31-espressif-mosaico`. Select **Espressif ESP-Mosaico
4
+ (V1.2)** in `gea setup`; the suggested board alias is `mosaico`.
5
+
6
+ This target supports hardware **V1.2** (V1.1 shares the pin mapping). The board
7
+ is an ESP32-S31 (dual-core RISC-V at 320 MHz) with 16 MB in-package octal
8
+ PSRAM, 16 MB quad NOR flash, a 480x480 CO5300 QSPI AMOLED with CST92xx touch,
9
+ an ES8311 codec with NS4150B amplifier, a BMI270 IMU, two BMM150
10
+ magnetometers, a BQ27220 fuel gauge and 128 MB SPI NAND. V1.0 swaps the LCD
11
+ clock and reset lines and moves the onboard I2C bus, so it is not supported.
12
+
13
+ Pins come from Espressif's board support package
14
+ ([esp-mosaico-bsp](https://github.com/esp-mosaico/esp-mosaico-bsp)) and the
15
+ V1.2 user guide; see `main/include/board.h`.
16
+
17
+ ## Toolchain
18
+
19
+ The ESP32-S31 exists only in ESP-IDF master (6.2-dev, a preview target).
20
+ `targets.json` pins this target to `idfVersion: "6.2"`, so the CLI selects an
21
+ installed ESP-IDF 6.2 checkout for it, and keeps the newest stable install for
22
+ every other board. Install one next to your other IDF versions, for example
23
+ `~/esp32/esp-idf-v6.2-dev`, with `./install.sh esp32s31`.
24
+
25
+ ## Flashing
26
+
27
+ From an application directory:
28
+
29
+ ```sh
30
+ gea build --board mosaico
31
+ gea flash --board mosaico
32
+ ```
33
+
34
+ The USB-C port is the S31's high-speed USB OTG controller. It has no
35
+ DTR/RTS reset circuit, and V1.2 ships with automatic download mode disabled,
36
+ so the target flashes in manual boot mode (`manualBoot: true`): **hold BOOT
37
+ while power-cycling the board** (or pressing reset) to enter the ROM loader,
38
+ then run `gea flash`.
39
+
40
+ ## Console
41
+
42
+ There is no ROM console on the USB-C port. The firmware brings up a TinyUSB
43
+ CDC-ACM interface and routes the console through it. Its USB serial number is
44
+ the chip MAC in the `AA:BB:CC:DD:EE:FF` form the S3 boards report, so register
45
+ the board by that serial and `--board mosaico` resolves the port the usual way.
46
+ UART0 keeps early boot output.
47
+
48
+ ## Board bring-up
49
+
50
+ Everything on the panel side is behind VCC_3V3, a high-side switch enabled by
51
+ GPIO60 (active low). `main/board_power.cpp` soft-starts it through an LEDC
52
+ fade, as the BSP does, and releases the PWR_SW power-off request on GPIO57
53
+ before display init touches the panel.
54
+
55
+ Not yet wired: the BQ27220 fuel gauge (the board reports no battery reading),
56
+ the panel's TE line on GPIO43, the magnetometers and the SPI NAND.
@@ -0,0 +1,137 @@
1
+ dependencies:
2
+ espressif/cmake_utilities:
3
+ component_hash: 351350613ceafba240b761b4ea991e0f231ac7a9f59a9ee901f751bddc0bb18f
4
+ dependencies:
5
+ - name: idf
6
+ require: private
7
+ version: '>=4.1'
8
+ source:
9
+ registry_url: https://components.espressif.com
10
+ type: service
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
22
+ espressif/esp_io_expander:
23
+ component_hash: 7b7f91270172e46ca4597e3874f48d8412e280e8c295559f5922ec38656e3e5f
24
+ dependencies:
25
+ - name: idf
26
+ require: private
27
+ version: '>=4.4.2'
28
+ source:
29
+ registry_url: https://components.espressif.com
30
+ type: service
31
+ version: 1.2.1
32
+ espressif/esp_lcd_co5300:
33
+ component_hash: 1a5cbaa0069c3c72c238e5a1eb32ec9dd390ec1c7c46b24bf44b9037f2fe6c56
34
+ dependencies:
35
+ - name: espressif/cmake_utilities
36
+ registry_url: https://components.espressif.com
37
+ require: private
38
+ version: 0.*
39
+ - name: idf
40
+ require: private
41
+ version: '>=5.4'
42
+ source:
43
+ registry_url: https://components.espressif.com/
44
+ type: service
45
+ version: 2.2.0
46
+ espressif/esp_lcd_panel_io_additions:
47
+ component_hash: 1856c8b2c11aaa8a9fd67481582162bcad25f7064661a995f35c2ee8dd10ebcc
48
+ dependencies:
49
+ - name: espressif/cmake_utilities
50
+ registry_url: https://components.espressif.com
51
+ require: private
52
+ version: 0.*
53
+ - name: espressif/esp_io_expander
54
+ registry_url: https://components.espressif.com
55
+ require: public
56
+ version: ^1
57
+ - name: idf
58
+ require: private
59
+ version: '>=4.4.2'
60
+ source:
61
+ registry_url: https://components.espressif.com/
62
+ type: service
63
+ version: 1.0.1~1
64
+ espressif/esp_lcd_touch:
65
+ component_hash: 3f85a7d95af876f1a6ecca8eb90a81614890d0f03a038390804e5a77e2caf862
66
+ dependencies:
67
+ - name: idf
68
+ require: private
69
+ version: '>=4.4.2'
70
+ source:
71
+ registry_url: https://components.espressif.com
72
+ type: service
73
+ version: 1.2.1
74
+ espressif/esp_tinyusb:
75
+ component_hash: 0fab24246e07bdf919c6489d17a590cffbffbbf6a9c44d6235641645c8b946b7
76
+ dependencies:
77
+ - name: idf
78
+ require: private
79
+ version: '>=5.0'
80
+ - name: espressif/tinyusb
81
+ registry_url: https://components.espressif.com
82
+ require: public
83
+ version: '>=0.17.0~2'
84
+ source:
85
+ registry_url: https://components.espressif.com/
86
+ type: service
87
+ targets:
88
+ - esp32s2
89
+ - esp32s3
90
+ - esp32p4
91
+ - esp32h4
92
+ - esp32s31
93
+ version: 2.3.0
94
+ espressif/tinyusb:
95
+ component_hash: 16c8d774dab1f484d3e0c0f61105624d2424bbae864efd19818baf7b451b41e7
96
+ dependencies:
97
+ - name: idf
98
+ require: private
99
+ version: '>=5.0'
100
+ source:
101
+ registry_url: https://components.espressif.com
102
+ type: service
103
+ targets:
104
+ - esp32s2
105
+ - esp32s3
106
+ - esp32p4
107
+ - esp32h4
108
+ - esp32s31
109
+ version: 0.21.0~2
110
+ idf:
111
+ source:
112
+ type: idf
113
+ version: 6.2.0
114
+ waveshare/esp_lcd_touch_cst9217:
115
+ component_hash: 27a00845832b7987cacf4c4125cbed5415d940987583065b01870ac080930856
116
+ dependencies:
117
+ - name: espressif/esp_lcd_touch
118
+ registry_url: https://components.espressif.com
119
+ require: public
120
+ version: ^1.1.0
121
+ - name: idf
122
+ require: private
123
+ version: '>=4.4.2'
124
+ source:
125
+ registry_url: https://components.espressif.com/
126
+ type: service
127
+ version: 1.0.4
128
+ direct_dependencies:
129
+ - espressif/esp_codec_dev
130
+ - espressif/esp_lcd_co5300
131
+ - espressif/esp_lcd_panel_io_additions
132
+ - espressif/esp_tinyusb
133
+ - idf
134
+ - waveshare/esp_lcd_touch_cst9217
135
+ manifest_hash: d00ef0d696c011ff4e97bae2f217371293df338c57deca4f5e143663d8e1a2fe
136
+ target: esp32s31
137
+ version: 3.0.0
@@ -0,0 +1,63 @@
1
+ set(GEA_BOARD_COMPONENT_DIR "${CMAKE_CURRENT_LIST_DIR}")
2
+ set(GEA_BOARD_TARGET_DIR "${CMAKE_CURRENT_LIST_DIR}/..")
3
+ set(GEA_EMBEDDED_CPP_BOARD "esp32-s31-espressif-mosaico")
4
+ set(GEA_EMBEDDED_CSS_DEVICE_PIXEL_RATIO "1.5" CACHE STRING "Logical CSS px to physical pixel scale for this board")
5
+
6
+ # The shared base resolves the npm packages (and with them GEA_CHIPS) only
7
+ # after this file has run, so resolve them here too: the source list below
8
+ # names chip drivers by that path and would otherwise expand to `/displays/...`.
9
+ set(GEA_EMBEDDED_ROOT "${CMAKE_CURRENT_LIST_DIR}/../../..")
10
+ cmake_path(ABSOLUTE_PATH GEA_EMBEDDED_ROOT NORMALIZE)
11
+ include("${GEA_EMBEDDED_ROOT}/targets/esp32/gea_framework.cmake")
12
+
13
+ # 480x480 square CO5300 AMOLED, no column gap.
14
+ set(GEA_BOARD_DISPLAY_WIDTH 480)
15
+ set(GEA_BOARD_DISPLAY_HEIGHT 480)
16
+
17
+ # The board's own BSP drives the panel at 40 MHz. The panel latches at 80 MHz,
18
+ # as on the 1.75 and 2.06 CO5300 boards: bouncing-balls went from 36.5 to
19
+ # 61.6 fps, the full-width flush from 23 ms to 11.8 ms per frame.
20
+ set(GEA_BOARD_QSPI_PCLK_HZ 80000000)
21
+ set(GEA_BOARD_PARTIAL_PAD_X 0)
22
+ set(GEA_BOARD_PARTIAL_PAD_Y 0)
23
+
24
+ # No AXP2101, no ESP-Mosaico BSP: the VCC_3V3 rail and the USB console are
25
+ # board_power.cpp's, and it gives display init its prepareDisplayPanel().
26
+ set(GEA_BOARD_EXTRA_REQUIRES
27
+ esp_codec_dev
28
+ esp_driver_ledc
29
+ espressif__esp_tinyusb
30
+ # The RTC watchdog reset behind the USB downloader request (board_power.cpp).
31
+ esp_hal_wdt
32
+ )
33
+
34
+ set(GEA_BOARD_EXTRA_COMPILE_DEFINITIONS
35
+ GEA_BOARD_PREPARE_DISPLAY_PANEL=1
36
+ GEA_BOARD_USB_CONSOLE=1
37
+ GEA_EMBEDDED_CO5300_MOSAICO_INIT=1
38
+ GEA_EMBEDDED_CO5300_PANEL_X_GAP=0
39
+ GEA_EMBEDDED_CO5300_PANEL_Y_GAP=0
40
+ GEA_BOARD_BMI270_I2C_ADDRESS=0x69
41
+ GEA_BOARD_ES8311_I2C_ADDRESS=0x19
42
+ # The side "AI" button; GPIO0 is the expansion I2C bus on this board.
43
+ GEA_BOARD_LAUNCHER_BUTTON_GPIO=7
44
+ )
45
+
46
+ set(GEA_BOARD_PLATFORM_SOURCES
47
+ "${CMAKE_CURRENT_LIST_DIR}/../../esp32-s3-touch-amoled-1.8/main/app_main.cpp"
48
+ "${CMAKE_CURRENT_LIST_DIR}/../../esp32-s3-touch-amoled-1.8/main/i2c.cpp"
49
+ "${CMAKE_CURRENT_LIST_DIR}/../../esp32-s3-touch-amoled-1.8/main/launcher_button.cpp"
50
+ "${CMAKE_CURRENT_LIST_DIR}/touch.cpp"
51
+ "${CMAKE_CURRENT_LIST_DIR}/board_power.cpp"
52
+ "${GEA_CHIPS}/displays/co5300/co5300.cpp"
53
+ "${CMAKE_CURRENT_LIST_DIR}/../../esp32/display.cpp"
54
+ "${CMAKE_CURRENT_LIST_DIR}/../../esp32/chip_bindings/displays/co5300.cpp"
55
+ "${CMAKE_CURRENT_LIST_DIR}/../../esp32/chip_bindings/touch/cst9217.cpp"
56
+ "${CMAKE_CURRENT_LIST_DIR}/../../esp32/chip_bindings/audio/es8311.cpp"
57
+ "${CMAKE_CURRENT_LIST_DIR}/../../esp32/chip_bindings/imu/bmi270.cpp"
58
+ # The BQ27220 fuel gauge has no binding yet; report "no battery reading"
59
+ # rather than a number nobody measured.
60
+ "${CMAKE_CURRENT_LIST_DIR}/../../esp32/power_absent.cpp"
61
+ )
62
+
63
+ include("${CMAKE_CURRENT_LIST_DIR}/../../esp32-s3-touch-amoled-1.8/main/CMakeLists.txt")
@@ -0,0 +1,12 @@
1
+ menu "Gea Embedded"
2
+
3
+ config GEA_EMBEDDED_PRODUCTION_LOCKDOWN
4
+ bool "Production lockdown"
5
+ default n
6
+ help
7
+ Compile out Gea frame/perf logs, heap diagnostics, and the
8
+ diagnostics server for production firmware. Local development builds
9
+ should leave this disabled so serial monitor and VS Code launch
10
+ tasks show fps and diagnostic logs.
11
+
12
+ endmenu