feat(adc): use soc_caps to decide which files to be included

This commit is contained in:
Armando
2023-07-05 11:45:48 +08:00
parent 070040c444
commit d9e25c305a
2 changed files with 8 additions and 4 deletions
+4 -2
View File
@@ -40,8 +40,6 @@ if(NOT BOOTLOADER_BUILD)
"gpio_hal.c"
"uart_hal.c"
"uart_hal_iram.c"
"adc_hal_common.c"
"adc_oneshot_hal.c"
"${target}/clk_tree_hal.c")
if(NOT CONFIG_APP_BUILD_TYPE_PURE_RAM_APP)
@@ -110,6 +108,10 @@ if(NOT BOOTLOADER_BUILD)
list(APPEND srcs "parlio_hal.c")
endif()
if(CONFIG_SOC_ADC_SUPPORTED)
list(APPEND srcs "adc_hal_common.c" "adc_oneshot_hal.c")
endif()
if(CONFIG_SOC_ADC_DMA_SUPPORTED)
list(APPEND srcs "adc_hal.c")
endif()