1
0
mirror of https://github.com/espressif/esp-idf synced 2025-03-20 22:49:08 -04:00

21 lines
507 B
CMake
Raw Normal View History

set(srcs)
set(include "include")
# I2C related source files
if(CONFIG_SOC_I2C_SUPPORTED)
list(APPEND srcs
"i2c_master.c"
"i2c_common.c"
)
if(CONFIG_SOC_I2C_SUPPORT_SLAVE)
list(APPEND srcs "i2c_slave.c")
endif()
endif()
idf_component_register(SRCS ${srcs}
INCLUDE_DIRS ${include}
PRIV_REQUIRES esp_driver_gpio esp_pm esp_ringbuf
LDFRAGMENTS "linker.lf"
)