mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
21 lines
507 B
CMake
21 lines
507 B
CMake
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"
|
|
)
|