mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-07 06:34:34 +02:00
driver: move deprecated drivers into single folder
This commit is contained in:
@@ -3,7 +3,6 @@ idf_build_get_property(target IDF_TARGET)
|
|||||||
set(srcs
|
set(srcs
|
||||||
"gpio.c"
|
"gpio.c"
|
||||||
"gptimer.c"
|
"gptimer.c"
|
||||||
"timer_legacy.c"
|
|
||||||
"i2c.c"
|
"i2c.c"
|
||||||
"ledc.c"
|
"ledc.c"
|
||||||
"legacy_new_driver_coexist.c"
|
"legacy_new_driver_coexist.c"
|
||||||
@@ -19,6 +18,9 @@ set(srcs
|
|||||||
"spi_bus_lock.c"
|
"spi_bus_lock.c"
|
||||||
"uart.c")
|
"uart.c")
|
||||||
|
|
||||||
|
# deprecated source files
|
||||||
|
list(APPEND srcs "deprecated/timer_legacy.c")
|
||||||
|
|
||||||
set(includes "include" "deprecated")
|
set(includes "include" "deprecated")
|
||||||
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${target}/include")
|
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${target}/include")
|
||||||
list(APPEND includes "${target}/include")
|
list(APPEND includes "${target}/include")
|
||||||
@@ -51,7 +53,7 @@ if(CONFIG_SOC_RMT_SUPPORTED)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CONFIG_SOC_PCNT_SUPPORTED)
|
if(CONFIG_SOC_PCNT_SUPPORTED)
|
||||||
list(APPEND srcs "pcnt_legacy.c" "pulse_cnt.c")
|
list(APPEND srcs "pulse_cnt.c" "deprecated/pcnt_legacy.c")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CONFIG_SOC_SDMMC_HOST_SUPPORTED)
|
if(CONFIG_SOC_SDMMC_HOST_SUPPORTED)
|
||||||
@@ -64,7 +66,7 @@ endif()
|
|||||||
|
|
||||||
if(CONFIG_SOC_TEMP_SENSOR_SUPPORTED)
|
if(CONFIG_SOC_TEMP_SENSOR_SUPPORTED)
|
||||||
list(APPEND srcs "temperature_sensor.c"
|
list(APPEND srcs "temperature_sensor.c"
|
||||||
"rtc_temperature_legacy.c")
|
"deprecated/rtc_temperature_legacy.c")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CONFIG_SOC_TWAI_SUPPORTED)
|
if(CONFIG_SOC_TWAI_SUPPORTED)
|
||||||
|
Reference in New Issue
Block a user