mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
548022fbe6
* All components which won't build (yet) on Linux are excluded. This enables switching to Linux in an application without explicitly setting COMPONENTS to main in the main CMakeLists.txt. * ESP Timer provides headers for Linux now * automatically disabling LWIP in Kconfig if it is not available doc(linux): brought section "Component Linux/Mock Support Overview" up to date
47 lines
1.4 KiB
CMake
47 lines
1.4 KiB
CMake
idf_build_get_property(target IDF_TARGET)
|
|
|
|
if(${target} STREQUAL "linux")
|
|
return() # This component is not supported by the POSIX/Linux simulator
|
|
endif()
|
|
|
|
set(includes "include" "interface" "${target}/include" "deprecated/include")
|
|
|
|
set(srcs "adc_cali.c"
|
|
"adc_cali_curve_fitting.c"
|
|
"deprecated/esp_adc_cal_common_legacy.c")
|
|
|
|
if(CONFIG_SOC_ADC_SUPPORTED)
|
|
list(APPEND srcs "adc_oneshot.c" "adc_common.c")
|
|
endif()
|
|
|
|
if(CONFIG_SOC_ADC_DMA_SUPPORTED)
|
|
list(APPEND srcs "adc_continuous.c")
|
|
if(CONFIG_SOC_ADC_MONITOR_SUPPORTED)
|
|
list(APPEND srcs "adc_monitor.c")
|
|
endif()
|
|
endif()
|
|
|
|
if(CONFIG_SOC_ADC_DIG_IIR_FILTER_SUPPORTED)
|
|
list(APPEND srcs "adc_filter.c")
|
|
endif()
|
|
|
|
# line fitting scheme
|
|
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/${target}/adc_cali_line_fitting.c")
|
|
list(APPEND srcs "${target}/adc_cali_line_fitting.c")
|
|
endif()
|
|
|
|
# curve fitting scheme coefficients
|
|
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/${target}/curve_fitting_coefficients.c")
|
|
list(APPEND srcs "${target}/curve_fitting_coefficients.c")
|
|
endif()
|
|
|
|
# legacy calibration driver
|
|
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/deprecated/${target}/esp_adc_cal_legacy.c")
|
|
list(APPEND srcs "deprecated/${target}/esp_adc_cal_legacy.c")
|
|
endif()
|
|
|
|
idf_component_register(SRCS ${srcs}
|
|
INCLUDE_DIRS ${includes}
|
|
PRIV_REQUIRES driver efuse
|
|
LDFRAGMENTS linker.lf)
|