mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
esp_adc: support h2 oneshot mode and continuous mode
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user