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} " )
@@ -45,9 +45,11 @@ set(CORE_SRCS
45
45
cores/esp32/esp32-hal-timer.c
46
46
cores/esp32/esp32-hal-tinyusb.c
47
47
cores/esp32/esp32-hal-touch.c
48
+ cores/esp32/esp32-hal-touch-ng.c
48
49
cores/esp32/esp32-hal-uart.c
49
50
cores/esp32/esp32-hal-rmt.c
50
51
cores/esp32/Esp.cpp
52
+ cores/esp32/freertos_stats.cpp
51
53
cores/esp32/FunctionalInterrupt.cpp
52
54
cores/esp32/HardwareSerial.cpp
53
55
cores/esp32/HEXBuilder.cpp
@@ -93,6 +95,7 @@ set(ARDUINO_ALL_LIBRARIES
93
95
HTTPUpdate
94
96
Insights
95
97
LittleFS
98
+ Matter
96
99
NetBIOS
97
100
Network
98
101
OpenThread
@@ -116,7 +119,6 @@ set(ARDUINO_ALL_LIBRARIES
116
119
)
117
120
118
121
set (ARDUINO_LIBRARY_ArduinoOTA_SRCS libraries/ArduinoOTA/src/ArduinoOTA.cpp)
119
- set (ARDUINO_LIBRARY_ArduinoOTA_REQUIRES esp_https_ota)
120
122
121
123
set (ARDUINO_LIBRARY_AsyncUDP_SRCS libraries/AsyncUDP/src/AsyncUDP.cpp)
122
124
@@ -157,14 +159,18 @@ set(ARDUINO_LIBRARY_HTTPUpdate_SRCS libraries/HTTPUpdate/src/HTTPUpdate.cpp)
157
159
set (ARDUINO_LIBRARY_Insights_SRCS libraries/Insights/src/Insights.cpp)
158
160
159
161
set (ARDUINO_LIBRARY_LittleFS_SRCS libraries/LittleFS/src/LittleFS.cpp)
160
- set (ARDUINO_LIBRARY_LittleFS_REQUIRES joltwallet__littlefs)
161
162
162
163
set (ARDUINO_LIBRARY_NetBIOS_SRCS libraries/NetBIOS/src/NetBIOS.cpp)
163
164
164
165
set (ARDUINO_LIBRARY_OpenThread_SRCS
165
166
libraries/OpenThread/src/OThreadCLI.cpp
166
167
libraries/OpenThread/src/OThreadCLI_Util.cpp)
167
168
169
+ set (ARDUINO_LIBRARY_Matter_SRCS
170
+ libraries/Matter/src/MatterEndpoints/MatterOnOffLight.cpp
171
+ libraries/Matter/src/MatterEndpoints/MatterDimmableLight.cpp
172
+ libraries/Matter/src/Matter.cpp)
173
+
168
174
set (ARDUINO_LIBRARY_PPP_SRCS
169
175
libraries/PPP/src/PPP.cpp
170
176
libraries/PPP/src/ppp.c)
@@ -317,7 +323,7 @@ endforeach()
317
323
set (includedirs variants/${CONFIG_ARDUINO_VARIANT} / cores/esp32/ ${ARDUINO_LIBRARIES_INCLUDEDIRS} )
318
324
set (srcs ${CORE_SRCS} ${ARDUINO_LIBRARIES_SRCS} )
319
325
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 )
326
+ 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
327
set (priv_requires fatfs nvs_flash app_update spiffs bootloader_support bt esp_hid usb esp_psram ${ARDUINO_LIBRARIES_REQUIRES} )
322
328
323
329
if (NOT CONFIG_ARDUINO_SELECTIVE_COMPILATION OR CONFIG_ARDUINO_SELECTIVE_OpenThread)
@@ -328,6 +334,10 @@ if(NOT CONFIG_ARDUINO_SELECTIVE_COMPILATION OR CONFIG_ARDUINO_SELECTIVE_OpenThre
328
334
endif ()
329
335
endif ()
330
336
337
+ if (IDF_TARGET STREQUAL "esp32p4" )
338
+ list (APPEND requires esp_driver_touch_sens)
339
+ endif ()
340
+
331
341
idf_component_register(INCLUDE_DIRS ${includedirs} PRIV_INCLUDE_DIRS ${priv_includes} SRCS ${srcs} REQUIRES ${requires} PRIV_REQUIRES ${priv_requires} )
332
342
333
343
if (NOT CONFIG_FREERTOS_HZ EQUAL 1000 AND NOT "$ENV{ARDUINO_SKIP_TICK_CHECK} " )
@@ -367,9 +377,21 @@ function(maybe_add_component component_name)
367
377
endif ()
368
378
endfunction ()
369
379
370
- if (IDF_TARGET MATCHES "esp32s2|esp32s3" AND CONFIG_TINYUSB_ENABLED)
380
+ if (IDF_TARGET MATCHES "esp32s2|esp32s3|esp32p4 " AND CONFIG_TINYUSB_ENABLED)
371
381
maybe_add_component(arduino_tinyusb)
372
382
endif ()
373
383
if (NOT CONFIG_ARDUINO_SELECTIVE_COMPILATION OR CONFIG_ARDUINO_SELECTIVE_ArduinoOTA)
374
384
maybe_add_component(esp_https_ota)
375
385
endif ()
386
+ if (NOT CONFIG_ARDUINO_SELECTIVE_COMPILATION OR CONFIG_ARDUINO_SELECTIVE_ESP_SR)
387
+ maybe_add_component(espressif__esp_sr)
388
+ endif ()
389
+ if (NOT CONFIG_ARDUINO_SELECTIVE_COMPILATION OR CONFIG_ARDUINO_SELECTIVE_Matter)
390
+ maybe_add_component(espressif__esp_matter)
391
+ endif ()
392
+ if (NOT CONFIG_ARDUINO_SELECTIVE_COMPILATION OR CONFIG_ARDUINO_SELECTIVE_LittleFS)
393
+ maybe_add_component(joltwallet__littlefs)
394
+ endif ()
395
+ if (NOT CONFIG_ARDUINO_SELECTIVE_COMPILATION OR CONFIG_ARDUINO_SELECTIVE_WiFiProv)
396
+ maybe_add_component(espressif__network_provisioning)
397
+ endif ()
0 commit comments