zephyr/subsys/emul/Kconfig
Simon Glass 442f38d610 emul: Add an emulator for the Bosch BMI160 accelerometer
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>
2020-10-05 15:33:00 -04:00

41 lines
1.1 KiB
Plaintext

# Emulator configuration options
# Copyright 2020 Google LLC
# SPDX-License-Identifier: Apache-2.0
#
# Emulator options
#
menuconfig EMUL
bool "Emulation drivers"
help
Enable Emulation Driver Configuration
These drivers are used to emulate hardware devices, to support testing
of various subsystems. For example, it is possible to write an
emulator for an I2C compass such that it appears on the I2C bus and
can be used just like a real hardware device.
Emulators often implement special features for testing. For example
a compass may support returning bogus data if the I2C bus speed is
too high, or may return invalid measurements if calibration has not
yet been completed. This allows for testing that high-level code can
handle these situations correctly. Test coverage can therefore
approach 100% if all failure conditions are emulated.
if EMUL
config EMUL_INIT_PRIORITY
int "Init priority"
default 60
help
Emulation device driver initialisation priority.
module = EMUL
module-str = emul
source "subsys/logging/Kconfig.template.log_config"
source "subsys/emul/i2c/Kconfig"
source "subsys/emul/spi/Kconfig"
endif