2021-06-09 22:22:35 -04:00
|
|
|
set(srcs
|
|
|
|
"adc_periph.c"
|
2021-08-27 00:18:12 -04:00
|
|
|
"dedic_gpio_periph.c"
|
2021-06-09 22:22:35 -04:00
|
|
|
"gdma_periph.c"
|
|
|
|
"gpio_periph.c"
|
2022-05-17 01:47:14 -04:00
|
|
|
"sdm_periph.c"
|
2021-06-09 22:22:35 -04:00
|
|
|
"interrupts.c"
|
|
|
|
"spi_periph.c"
|
|
|
|
"ledc_periph.c"
|
|
|
|
"rmt_periph.c"
|
|
|
|
"i2s_periph.c"
|
|
|
|
"i2c_periph.c"
|
|
|
|
"uart_periph.c"
|
2022-06-14 02:50:35 -04:00
|
|
|
"temperature_sensor_periph.c"
|
2021-06-09 22:22:35 -04:00
|
|
|
"timer_periph.c")
|
|
|
|
|
|
|
|
add_prefix(srcs "${CMAKE_CURRENT_LIST_DIR}/" "${srcs}")
|
|
|
|
|
|
|
|
target_sources(${COMPONENT_LIB} PRIVATE "${srcs}")
|
2021-09-02 08:48:39 -04:00
|
|
|
|
2021-11-16 07:15:12 -05:00
|
|
|
set(inc_path "." "include")
|
|
|
|
|
2021-09-02 08:48:39 -04:00
|
|
|
if(target STREQUAL "esp32h2")
|
|
|
|
if(CONFIG_IDF_TARGET_ESP32H2_BETA_VERSION_1)
|
2021-11-16 07:15:12 -05:00
|
|
|
list(APPEND inc_path "include/rev1")
|
2021-09-02 08:48:39 -04:00
|
|
|
elseif(CONFIG_IDF_TARGET_ESP32H2_BETA_VERSION_2)
|
2021-11-16 07:15:12 -05:00
|
|
|
list(APPEND inc_path "include/rev2")
|
2021-09-02 08:48:39 -04:00
|
|
|
endif()
|
|
|
|
endif()
|
2021-11-16 07:15:12 -05:00
|
|
|
|
|
|
|
target_include_directories(${COMPONENT_LIB} PUBLIC ${inc_path})
|