@@ -9,8 +9,8 @@ FetchContent_GetProperties(esp32_idf)
99include (binutils.ESP32)
1010
1111list (APPEND ESP32_IDF_INCLUDE_DIRS ${CMAKE_BINARY_DIR} /config)
12- list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/${TARGET_SERIES_SHORT} )
13- list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/${TARGET_SERIES_SHORT} /include )
12+ # list(APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR}/components/${TARGET_SERIES_SHORT})
13+ # list(APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR}/components/${TARGET_SERIES_SHORT}/include)
1414list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/${TARGET_SERIES_SHORT} /esp_rom/include )
1515list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/${ESP32_CPU_TYPE} /include )
1616list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/${ESP32_CPU_TYPE} /${TARGET_SERIES_SHORT} /include )
@@ -21,21 +21,25 @@ list(APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR}/components/hal/includ
2121list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/hal/${TARGET_SERIES_SHORT} /include )
2222list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/soc/${TARGET_SERIES_SHORT} /include )
2323list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/soc/${TARGET_SERIES_SHORT} /include /soc)
24+ list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/soc/${TARGET_SERIES_SHORT} /register)
2425list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/esp_hw_support/include )
26+ list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/esp_hw_support/dma/include )
2527list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/esp_hw_support/include /soc)
2628
27- list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/driver/include )
28- list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/driver/gptimer/include )
29- list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/driver/uart/include )
30- list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/driver/gpio/include )
31- list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/driver/spi/include )
29+ #list(APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR}/components/driver/include)
30+ list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/esp_driver_gptimer/include )
31+ list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/esp_driver_uart/include )
32+ list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/esp_driver_gpio/include )
33+ list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/esp_driver_spi/include )
34+ #list(APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR}/components/esp_driver_i2c/include)
3235list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/driver/i2c/include )
33- list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/driver/i2s/include )
34- list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/driver/dac/include )
35- list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/driver/ledc/include )
36- list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/driver/pcnt/include )
37- #list(APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR}/components/driver/rmt/include)
38- list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/driver/sdmmc/include )
36+ list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/esp_driver_i2s/include )
37+ list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/esp_driver_dac/include )
38+ list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/esp_driver_ledc/include )
39+ list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/esp_driver_pcnt/include )
40+ #list(APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR}/components/esp_driver_rmt/include)
41+ list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/esp_driver_sdmmc/include )
42+ list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/esp_driver_sdspi/include )
3943
4044# Use depecated drivers for RMT, I2S etc
4145list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/driver/deprecated)
@@ -58,6 +62,7 @@ list(APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR}/components/esp_ringbu
5862list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/esp_timer/include )
5963list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/esp_system/include )
6064list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/esp_wifi/include )
65+ list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/esp_wifi/include /local)
6166list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/esp_partition/include )
6267list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/esp_pm/include )
6368list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/fatfs/diskio)
@@ -86,11 +91,12 @@ list(APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR}/components/sdmmc/incl
8691list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/soc/include )
8792list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/vfs/include )
8893list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/wear_levelling/include )
89- list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/driver/usb_serial_jtag /include )
94+ list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/esp_driver_usb_serial_jtag /include )
9095
91- list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/esp_rom/include /${TARGET_SERIES_SHORT} /rom)
9296list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/esp_rom/include )
9397list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/esp_rom/${TARGET_SERIES_SHORT} )
98+ list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/esp_rom/${TARGET_SERIES_SHORT} /include )
99+ list (APPEND ESP32_IDF_INCLUDE_DIRS ${esp32_idf_SOURCE_DIR} /components/esp_rom/${TARGET_SERIES_SHORT} /include /${TARGET_SERIES_SHORT} /rom)
94100
95101# includes specific to ESP32S2 and ESP32S3
96102if (${TARGET_SERIES_SHORT} STREQUAL "esp32s2" OR ${TARGET_SERIES_SHORT} STREQUAL "esp32s3" )
0 commit comments