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