blob: 6c98a3273922253fe98c96bbfc164324395f7a02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# Copyright 2021 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
DT_COMPAT_I2C_MOCK := cros,i2c-mock
menuconfig I2C_MOCK
bool "Mock implementation of an I2C device"
default $(dt_compat_enabled,$(DT_COMPAT_I2C_MOCK))
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
|