5
5
# export ARDUINO_SKIP_IDF_VERSION_CHECK=1
6
6
# idf.py build
7
7
8
- set (min_supported_idf_version "5.1 .0" )
9
- set (max_supported_idf_version "5.1 .99" )
8
+ set (min_supported_idf_version "5.3 .0" )
9
+ set (max_supported_idf_version "5.3 .99" )
10
10
set (idf_version "${IDF_VERSION_MAJOR} .${IDF_VERSION_MINOR} .${IDF_VERSION_PATCH} " )
11
11
12
12
if ("${idf_version} " AND NOT "$ENV{ARDUINO_SKIP_IDF_VERSION_CHECK} " )
@@ -25,6 +25,7 @@ endif()
25
25
set (CORE_SRCS
26
26
cores/esp32/base64.cpp
27
27
cores/esp32/cbuf.cpp
28
+ cores/esp32/ColorFormat.c
28
29
cores/esp32/chip-debug-report.cpp
29
30
cores/esp32/esp32-hal-adc.c
30
31
cores/esp32/esp32-hal-bt.c
@@ -45,9 +46,11 @@ set(CORE_SRCS
45
46
cores/esp32/esp32-hal-timer.c
46
47
cores/esp32/esp32-hal-tinyusb.c
47
48
cores/esp32/esp32-hal-touch.c
49
+ cores/esp32/esp32-hal-touch-ng.c
48
50
cores/esp32/esp32-hal-uart.c
49
51
cores/esp32/esp32-hal-rmt.c
50
52
cores/esp32/Esp.cpp
53
+ cores/esp32/freertos_stats.cpp
51
54
cores/esp32/FunctionalInterrupt.cpp
52
55
cores/esp32/HardwareSerial.cpp
53
56
cores/esp32/HEXBuilder.cpp
@@ -93,6 +96,7 @@ set(ARDUINO_ALL_LIBRARIES
93
96
HTTPUpdate
94
97
Insights
95
98
LittleFS
99
+ Matter
96
100
NetBIOS
97
101
Network
98
102
OpenThread
@@ -116,7 +120,6 @@ set(ARDUINO_ALL_LIBRARIES
116
120
)
117
121
118
122
set (ARDUINO_LIBRARY_ArduinoOTA_SRCS libraries/ArduinoOTA/src/ArduinoOTA.cpp)
119
- set (ARDUINO_LIBRARY_ArduinoOTA_REQUIRES esp_https_ota)
120
123
121
124
set (ARDUINO_LIBRARY_AsyncUDP_SRCS libraries/AsyncUDP/src/AsyncUDP.cpp)
122
125
@@ -157,14 +160,20 @@ set(ARDUINO_LIBRARY_HTTPUpdate_SRCS libraries/HTTPUpdate/src/HTTPUpdate.cpp)
157
160
set (ARDUINO_LIBRARY_Insights_SRCS libraries/Insights/src/Insights.cpp)
158
161
159
162
set (ARDUINO_LIBRARY_LittleFS_SRCS libraries/LittleFS/src/LittleFS.cpp)
160
- set (ARDUINO_LIBRARY_LittleFS_REQUIRES joltwallet__littlefs)
161
163
162
164
set (ARDUINO_LIBRARY_NetBIOS_SRCS libraries/NetBIOS/src/NetBIOS.cpp)
163
165
164
166
set (ARDUINO_LIBRARY_OpenThread_SRCS
165
167
libraries/OpenThread/src/OThreadCLI.cpp
166
168
libraries/OpenThread/src/OThreadCLI_Util.cpp)
167
169
170
+ set (ARDUINO_LIBRARY_Matter_SRCS
171
+ libraries/Matter/src/MatterEndpoints/MatterOnOffLight.cpp
172
+ libraries/Matter/src/MatterEndpoints/MatterDimmableLight.cpp
173
+ libraries/Matter/src/MatterEndpoints/MatterColorTemperatureLight.cpp
174
+ libraries/Matter/src/MatterEndpoints/MatterColorLight.cpp
175
+ libraries/Matter/src/Matter.cpp)
176
+
168
177
set (ARDUINO_LIBRARY_PPP_SRCS
169
178
libraries/PPP/src/PPP.cpp
170
179
libraries/PPP/src/ppp.c)
@@ -317,7 +326,7 @@ endforeach()
317
326
set (includedirs variants/${CONFIG_ARDUINO_VARIANT} / cores/esp32/ ${ARDUINO_LIBRARIES_INCLUDEDIRS} )
318
327
set (srcs ${CORE_SRCS} ${ARDUINO_LIBRARIES_SRCS} )
319
328
set (priv_includes cores/esp32/libb64)
320
- set (requires spi_flash esp_partition mbedtls wpa_supplicant esp_adc esp_eth http_parser espressif__network_provisioning )
329
+ set (requires spi_flash esp_partition mbedtls wpa_supplicant esp_adc esp_eth http_parser esp_ringbuf esp_driver_gptimer esp_driver_usb_serial_jtag driver )
321
330
set (priv_requires fatfs nvs_flash app_update spiffs bootloader_support bt esp_hid usb esp_psram ${ARDUINO_LIBRARIES_REQUIRES} )
322
331
323
332
if (NOT CONFIG_ARDUINO_SELECTIVE_COMPILATION OR CONFIG_ARDUINO_SELECTIVE_OpenThread)
@@ -328,6 +337,10 @@ if(NOT CONFIG_ARDUINO_SELECTIVE_COMPILATION OR CONFIG_ARDUINO_SELECTIVE_OpenThre
328
337
endif ()
329
338
endif ()
330
339
340
+ if (IDF_TARGET STREQUAL "esp32p4" )
341
+ list (APPEND requires esp_driver_touch_sens)
342
+ endif ()
343
+
331
344
idf_component_register(INCLUDE_DIRS ${includedirs} PRIV_INCLUDE_DIRS ${priv_includes} SRCS ${srcs} REQUIRES ${requires} PRIV_REQUIRES ${priv_requires} )
332
345
333
346
if (NOT CONFIG_FREERTOS_HZ EQUAL 1000 AND NOT "$ENV{ARDUINO_SKIP_TICK_CHECK} " )
@@ -367,9 +380,21 @@ function(maybe_add_component component_name)
367
380
endif ()
368
381
endfunction ()
369
382
370
- if (IDF_TARGET MATCHES "esp32s2|esp32s3" AND CONFIG_TINYUSB_ENABLED)
383
+ if (IDF_TARGET MATCHES "esp32s2|esp32s3|esp32p4 " AND CONFIG_TINYUSB_ENABLED)
371
384
maybe_add_component(arduino_tinyusb)
372
385
endif ()
373
386
if (NOT CONFIG_ARDUINO_SELECTIVE_COMPILATION OR CONFIG_ARDUINO_SELECTIVE_ArduinoOTA)
374
387
maybe_add_component(esp_https_ota)
375
388
endif ()
389
+ if (NOT CONFIG_ARDUINO_SELECTIVE_COMPILATION OR CONFIG_ARDUINO_SELECTIVE_ESP_SR)
390
+ maybe_add_component(espressif__esp_sr)
391
+ endif ()
392
+ if (NOT CONFIG_ARDUINO_SELECTIVE_COMPILATION OR CONFIG_ARDUINO_SELECTIVE_Matter)
393
+ maybe_add_component(espressif__esp_matter)
394
+ endif ()
395
+ if (NOT CONFIG_ARDUINO_SELECTIVE_COMPILATION OR CONFIG_ARDUINO_SELECTIVE_LittleFS)
396
+ maybe_add_component(joltwallet__littlefs)
397
+ endif ()
398
+ if (NOT CONFIG_ARDUINO_SELECTIVE_COMPILATION OR CONFIG_ARDUINO_SELECTIVE_WiFiProv)
399
+ maybe_add_component(espressif__network_provisioning)
400
+ endif ()
0 commit comments