mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-15 14:27:09 +00:00
Add I2C and SPI bus communication routines in separate files, and register one or the other as read/write callbacks based on bus selection in DTS. This commit is fixing issue #22348 as well, as the SPI part is handling in the proper way the CS GPIO part. Signed-off-by: Armando Visconti <armando.visconti@st.com>
9 lines
293 B
CMake
9 lines
293 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
zephyr_library()
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_LIS2DH lis2dh.c)
|
|
zephyr_library_sources_ifdef(CONFIG_LIS2DH lis2dh_i2c.c)
|
|
zephyr_library_sources_ifdef(CONFIG_LIS2DH lis2dh_spi.c)
|
|
zephyr_library_sources_ifdef(CONFIG_LIS2DH_TRIGGER lis2dh_trigger.c)
|