esp_adc: support h2 oneshot mode and continuous mode

This commit is contained in:
Armando
2023-02-23 11:48:31 +08:00
parent aa892a18a3
commit d0e4d36fb6
47 changed files with 1176 additions and 99 deletions
-15
View File
@@ -1,8 +1,3 @@
if(IDF_TARGET STREQUAL "esp32h2")
# TODO : IDF-6214
return()
endif()
idf_build_get_property(target IDF_TARGET)
set(includes "include" "interface" "${target}/include" "deprecated/include")
@@ -36,16 +31,6 @@ if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/deprecated/${target}/esp_adc_cal_legacy.c
list(APPEND srcs "deprecated/${target}/esp_adc_cal_legacy.c")
endif()
# ESP32H2-TODO
if(CONFIG_IDF_TARGET_ESP32H2)
# TODO: IDF-6214
list(REMOVE_ITEM srcs
"adc_cali_curve_fitting.c"
"adc_oneshot.c"
"adc_common.c"
)
endif()
idf_component_register(SRCS ${srcs}
INCLUDE_DIRS ${includes}
PRIV_REQUIRES driver efuse