mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
6a0951ecb2
ESP32 lets the user choose from using Vref, Lookup Table, and Two-Point Calibration. In ESP32S2 only two-point calibration is supported. This commit support these changes in idf. Closes https://github.com/espressif/esp-idf/issues/5455
16 lines
402 B
CMake
16 lines
402 B
CMake
idf_build_get_property(target IDF_TARGET)
|
|
|
|
if(${target} STREQUAL "esp32")
|
|
idf_component_register(SRCS "esp_adc_cal_esp32.c"
|
|
INCLUDE_DIRS "include"
|
|
REQUIRES driver efuse)
|
|
|
|
elseif(${target} STREQUAL "esp32s2")
|
|
idf_component_register(SRCS "esp_adc_cal_esp32s2.c"
|
|
INCLUDE_DIRS "include"
|
|
REQUIRES driver efuse)
|
|
|
|
endif()
|
|
|
|
|