driver: move deprecated drivers into single folder

pull/8755/head
morris 2022-03-21 10:57:58 +08:00
rodzic fe13b2ed50
commit 31f9915603
4 zmienionych plików z 5 dodań i 3 usunięć

Wyświetl plik

@ -3,7 +3,6 @@ idf_build_get_property(target IDF_TARGET)
set(srcs
"gpio.c"
"gptimer.c"
"timer_legacy.c"
"i2c.c"
"ledc.c"
"legacy_new_driver_coexist.c"
@ -19,6 +18,9 @@ set(srcs
"spi_bus_lock.c"
"uart.c")
# deprecated source files
list(APPEND srcs "deprecated/timer_legacy.c")
set(includes "include" "deprecated")
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${target}/include")
list(APPEND includes "${target}/include")
@ -51,7 +53,7 @@ if(CONFIG_SOC_RMT_SUPPORTED)
endif()
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()
if(CONFIG_SOC_SDMMC_HOST_SUPPORTED)
@ -64,7 +66,7 @@ endif()
if(CONFIG_SOC_TEMP_SENSOR_SUPPORTED)
list(APPEND srcs "temperature_sensor.c"
"rtc_temperature_legacy.c")
"deprecated/rtc_temperature_legacy.c")
endif()
if(CONFIG_SOC_TWAI_SUPPORTED)