blob: 9bc75d961c0238b7611a04f09294b7823c293787 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
menuconfig I2C_MOCK
bool "Mock implementation of an I2C device"
default y
depends on DT_HAS_CROS_I2C_MOCK_ENABLED
depends on I2C_EMUL
help
Enable the I2C mock. This driver is a pure mock and does nothing by
default. It is used to test common i2c code. Mock API is available in
zephyr/include/emul/i2c_mock.h
if I2C_MOCK
module = I2C_MOCK
module-str = i2c_mock
source "subsys/logging/Kconfig.template.log_config"
endif # I2C_MOCK
|