2020-08-08 08:15:27 -04:00
|
|
|
set(srcs
|
2020-09-25 01:57:52 -04:00
|
|
|
"adc_periph.c"
|
|
|
|
"dac_periph.c"
|
2022-04-28 05:44:59 -04:00
|
|
|
"dport_access.c"
|
2020-09-25 01:57:52 -04:00
|
|
|
"gpio_periph.c"
|
2022-05-17 01:47:14 -04:00
|
|
|
"sdm_periph.c"
|
2020-09-25 01:57:52 -04:00
|
|
|
"i2c_periph.c"
|
|
|
|
"i2s_periph.c"
|
|
|
|
"interrupts.c"
|
2021-08-04 08:11:31 -04:00
|
|
|
"lcd_periph.c"
|
2020-09-25 01:57:52 -04:00
|
|
|
"ledc_periph.c"
|
2021-02-25 05:55:30 -05:00
|
|
|
"mcpwm_periph.c"
|
2020-10-09 04:41:41 -04:00
|
|
|
"pcnt_periph.c"
|
|
|
|
"rmt_periph.c"
|
2020-09-25 01:57:52 -04:00
|
|
|
"rtc_io_periph.c"
|
|
|
|
"sdio_slave_periph.c"
|
|
|
|
"sdmmc_periph.c"
|
|
|
|
"spi_periph.c"
|
2020-10-13 23:46:30 -04:00
|
|
|
"timer_periph.c"
|
2022-10-27 06:22:52 -04:00
|
|
|
"twai_periph.c"
|
2020-09-25 01:57:52 -04:00
|
|
|
"touch_sensor_periph.c"
|
|
|
|
"uart_periph.c")
|
2020-01-07 23:50:03 -05:00
|
|
|
|
|
|
|
add_prefix(srcs "${CMAKE_CURRENT_LIST_DIR}/" "${srcs}")
|
|
|
|
|
|
|
|
target_sources(${COMPONENT_LIB} PRIVATE "${srcs}")
|
|
|
|
target_include_directories(${COMPONENT_LIB} PUBLIC . include)
|
2022-04-28 05:44:59 -04:00
|
|
|
|
|
|
|
#esp_dport_access_reg_read is added as an undefined symbol because otherwise
|
|
|
|
#the linker can ignore dport_access.c as it would no other files depending on any symbols in it.
|
|
|
|
set_property(TARGET ${COMPONENT_LIB} APPEND PROPERTY INTERFACE_LINK_LIBRARIES "-u esp_dport_access_reg_read")
|