2019-12-26 02:25:24 -05:00
|
|
|
idf_build_get_property(target IDF_TARGET)
|
2018-01-19 00:22:08 -05:00
|
|
|
|
2020-07-09 08:55:52 -04:00
|
|
|
if(${target} STREQUAL "esp32")
|
|
|
|
idf_component_register(SRCS "esp_adc_cal_esp32.c"
|
|
|
|
INCLUDE_DIRS "include"
|
|
|
|
REQUIRES driver efuse)
|
|
|
|
|
|
|
|
elseif(${target} STREQUAL "esp32s2")
|
2020-11-10 01:51:08 -05:00
|
|
|
idf_component_register(SRCS "esp_adc_cal_esp32s2.c"
|
2019-04-28 03:38:23 -04:00
|
|
|
INCLUDE_DIRS "include"
|
2020-07-09 08:55:52 -04:00
|
|
|
REQUIRES driver efuse)
|
|
|
|
|
2020-12-22 23:29:57 -05:00
|
|
|
elseif(${target} STREQUAL "esp32c3")
|
|
|
|
idf_component_register(SRCS "esp_adc_cal_esp32c3.c"
|
|
|
|
INCLUDE_DIRS "include"
|
|
|
|
REQUIRES driver efuse)
|
2021-06-10 07:47:41 -04:00
|
|
|
|
|
|
|
elseif(${target} STREQUAL "esp32h2")
|
|
|
|
idf_component_register(SRCS "esp_adc_cal_esp32h2.c"
|
|
|
|
INCLUDE_DIRS "include"
|
|
|
|
REQUIRES driver efuse)
|
2020-07-09 08:55:52 -04:00
|
|
|
endif()
|