mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-02 02:02:41 +00:00
This emulator supports enable functionality to start up the device and read a few samples. It connects itself to any BMI160 device it finds in the device tree. The SPI emulation controller driver is used to direct SPI messages from the BMI160 driver to the BMI160 emulator. Add a few more definitions to the header file, as needed. Signed-off-by: Simon Glass <sjg@chromium.org>
7 lines
318 B
CMake
7 lines
318 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Once we have more than 10 devices we should consider splitting them into
|
|
# subdirectories to match the drivers/ structure.
|
|
zephyr_include_directories_ifdef(CONFIG_EMUL_BMI160 ${ZEPHYR_BASE}/drivers/sensor/bmi160)
|
|
zephyr_library_sources_ifdef(CONFIG_EMUL_BMI160 emul_bmi160.c)
|