1# Emulator configuration options
2
3# Copyright 2020 Google LLC
4# SPDX-License-Identifier: Apache-2.0
5
6#
7# Emulator options
8#
9menuconfig EMUL
10	bool "Emulation drivers"
11	help
12	  Enable Emulation Driver Configuration
13	  These drivers are used to emulate hardware devices, to support testing
14	  of various subsystems. For example, it is possible to write an
15	  emulator for an I2C compass such that it appears on the I2C bus and
16	  can be used just like a real hardware device.
17
18	  Emulators often implement special features for testing. For example
19	  a compass may support returning bogus data if the I2C bus speed is
20	  too high, or may return invalid measurements if calibration has not
21	  yet been completed. This allows for testing that high-level code can
22	  handle these situations correctly. Test coverage can therefore
23	  approach 100% if all failure conditions are emulated.
24
25if EMUL
26
27config EMUL_INIT_PRIORITY
28	int "Init priority"
29	default 60
30	help
31	  Emulation device driver initialisation priority.
32
33module = EMUL
34module-str = emul
35source "subsys/logging/Kconfig.template.log_config"
36
37source "subsys/emul/espi/Kconfig"
38
39endif
40