|
|
@@ -1,12 +1,11 @@
|
|
|
idf_build_get_property(target IDF_TARGET)
|
|
|
|
|
|
set(srcs
|
|
|
- "gpio.c"
|
|
|
+ "gpio/gpio.c"
|
|
|
+ "gpio/rtc_io.c"
|
|
|
"gptimer.c"
|
|
|
"i2c.c"
|
|
|
"ledc.c"
|
|
|
- "rtc_io.c"
|
|
|
- "rtc_module.c"
|
|
|
"sdspi_crc.c"
|
|
|
"sdspi_host.c"
|
|
|
"sdspi_transaction.c"
|
|
|
@@ -39,11 +38,11 @@ if(CONFIG_SOC_GDMA_SUPPORTED)
|
|
|
endif()
|
|
|
|
|
|
if(CONFIG_SOC_DEDICATED_GPIO_SUPPORTED)
|
|
|
- list(APPEND srcs "dedic_gpio.c")
|
|
|
+ list(APPEND srcs "gpio/dedic_gpio.c")
|
|
|
endif()
|
|
|
|
|
|
if(CONFIG_SOC_SIGMADELTA_SUPPORTED)
|
|
|
- list(APPEND srcs "sigmadelta.c")
|
|
|
+ list(APPEND srcs "gpio/sigmadelta_gpio.c")
|
|
|
endif()
|
|
|
|
|
|
if(CONFIG_SOC_RMT_SUPPORTED)
|
|
|
@@ -71,6 +70,10 @@ if(CONFIG_SOC_TWAI_SUPPORTED)
|
|
|
list(APPEND srcs "twai.c")
|
|
|
endif()
|
|
|
|
|
|
+if(CONFIG_SOC_USB_SERIAL_JTAG_SUPPORTED)
|
|
|
+ list(APPEND srcs "usb_serial_jtag.c")
|
|
|
+endif()
|
|
|
+
|
|
|
if(CONFIG_SOC_SPI_SUPPORT_SLAVE_HD_VER2)
|
|
|
list(APPEND srcs "spi_slave_hd.c")
|
|
|
endif()
|
|
|
@@ -96,14 +99,12 @@ if(IDF_TARGET STREQUAL "esp32s2")
|
|
|
endif()
|
|
|
|
|
|
if(${target} STREQUAL "esp32s3")
|
|
|
- list(APPEND srcs "usb_serial_jtag.c"
|
|
|
- "touch_sensor_common.c"
|
|
|
+ list(APPEND srcs "touch_sensor_common.c"
|
|
|
"esp32s3/touch_sensor.c")
|
|
|
endif()
|
|
|
|
|
|
if(IDF_TARGET STREQUAL "esp32c3")
|
|
|
- list(APPEND srcs "usb_serial_jtag.c"
|
|
|
- "esp32c3/adc2_init_cal.c")
|
|
|
+ list(APPEND srcs "esp32c3/adc2_init_cal.c")
|
|
|
endif()
|
|
|
|
|
|
if(BOOTLOADER_BUILD)
|