|
|
@@ -4,7 +4,6 @@ set(srcs
|
|
|
"gpio.c"
|
|
|
"i2c.c"
|
|
|
"ledc.c"
|
|
|
- "pcnt.c"
|
|
|
"periph_ctrl.c"
|
|
|
"rtc_io.c"
|
|
|
"rtc_module.c"
|
|
|
@@ -38,14 +37,25 @@ if(CONFIG_SOC_DEDICATED_GPIO_SUPPORTED)
|
|
|
list(APPEND srcs "dedic_gpio.c")
|
|
|
endif()
|
|
|
|
|
|
+if(CONFIG_SOC_SIGMADELTA_SUPPORTED)
|
|
|
+ list(APPEND srcs "sigmadelta.c")
|
|
|
+endif()
|
|
|
+
|
|
|
+if(CONFIG_SOC_RMT_SUPPORTED)
|
|
|
+ list(APPEND srcs "rmt.c")
|
|
|
+endif()
|
|
|
+
|
|
|
+if(CONFIG_SOC_PCNT_SUPPORTED)
|
|
|
+ list(APPEND srcs "pcnt.c")
|
|
|
+endif()
|
|
|
+
|
|
|
+
|
|
|
if(${target} STREQUAL "esp32")
|
|
|
# SDMMC and MCPWM are in ESP32 only.
|
|
|
list(APPEND srcs "dac_common.c"
|
|
|
"sdio_slave.c"
|
|
|
"sdmmc_host.c"
|
|
|
"i2s.c"
|
|
|
- "rmt.c"
|
|
|
- "sigmadelta.c"
|
|
|
"sdmmc_transaction.c"
|
|
|
"touch_sensor_common.c"
|
|
|
"esp32/touch_sensor.c"
|
|
|
@@ -59,9 +69,7 @@ if(IDF_TARGET STREQUAL "esp32s2")
|
|
|
list(APPEND srcs "dac_common.c"
|
|
|
"spi_slave_hd.c"
|
|
|
"touch_sensor_common.c"
|
|
|
- "sigmadelta.c"
|
|
|
"i2s.c"
|
|
|
- "rmt.c"
|
|
|
"twai.c"
|
|
|
"esp32s2/rtc_tempsensor.c"
|
|
|
"esp32s2/touch_sensor.c"
|
|
|
@@ -74,8 +82,6 @@ endif()
|
|
|
if(${target} STREQUAL "esp32s3")
|
|
|
list(APPEND srcs "sdmmc_host.c"
|
|
|
"sdmmc_transaction.c"
|
|
|
- "rmt.c"
|
|
|
- "sigmadelta.c"
|
|
|
"usb_serial_jtag.c"
|
|
|
"spi_slave_hd.c"
|
|
|
"touch_sensor_common.c"
|
|
|
@@ -88,8 +94,6 @@ if(IDF_TARGET STREQUAL "esp32c3")
|
|
|
list(APPEND srcs "spi_slave_hd.c"
|
|
|
"usb_serial_jtag.c"
|
|
|
"i2s.c"
|
|
|
- "rmt.c"
|
|
|
- "sigmadelta.c"
|
|
|
"esp32c3/adc2_init_cal.c"
|
|
|
"esp32c3/rtc_tempsensor.c"
|
|
|
"twai.c")
|
|
|
@@ -98,15 +102,12 @@ endif()
|
|
|
if(IDF_TARGET STREQUAL "esp32h2")
|
|
|
list(APPEND srcs "spi_slave_hd.c"
|
|
|
"i2s.c"
|
|
|
- "rmt.c"
|
|
|
- "sigmadelta.c"
|
|
|
"esp32h2/rtc_tempsensor.c"
|
|
|
"twai.c")
|
|
|
endif()
|
|
|
|
|
|
if(IDF_TARGET STREQUAL "esp8684")
|
|
|
- list(APPEND srcs "gdma.c"
|
|
|
- "spi_slave_hd.c")
|
|
|
+ list(APPEND srcs "spi_slave_hd.c")
|
|
|
endif()
|
|
|
|
|
|
idf_component_register(SRCS "${srcs}"
|