2018-02-23 19:02:02 +08:00
|
|
|
# Kconfig - I2C Slave configuration options
|
|
|
|
|
|
|
|
#
|
|
|
|
# Copyright (c) 2017 BayLibre, SAS
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# I2C options
|
|
|
|
#
|
|
|
|
menuconfig I2C_SLAVE
|
|
|
|
bool "I2C Slave Drivers"
|
|
|
|
help
|
|
|
|
Enable I2C Slave Driver Configuration
|
|
|
|
|
|
|
|
if I2C_SLAVE
|
|
|
|
|
|
|
|
config I2C_SLAVE_INIT_PRIORITY
|
|
|
|
int "Init priority"
|
|
|
|
default 60
|
|
|
|
help
|
|
|
|
I2C Slave device driver initialization priority.
|
|
|
|
|
2018-09-18 02:24:08 +08:00
|
|
|
config LOG_I2C_SLAVE_LEVEL
|
2018-02-23 19:02:02 +08:00
|
|
|
int "I2C Slave log level"
|
2018-09-18 02:24:08 +08:00
|
|
|
depends on LOG
|
2018-02-23 19:02:02 +08:00
|
|
|
default 0
|
|
|
|
help
|
|
|
|
Sets log level for I2C drivers.
|
|
|
|
Levels are:
|
|
|
|
- 0 OFF, do not write
|
2018-09-18 02:24:08 +08:00
|
|
|
- 1 ERROR, only write LOG_ERR
|
|
|
|
- 2 WARNING, write LOG_WRN in addition to previous level
|
|
|
|
- 3 INFO, write LOG_INF in addition to previous levels
|
|
|
|
- 4 DEBUG, write LOG_DBG in addition to previous levels
|
2018-02-23 19:02:02 +08:00
|
|
|
|
|
|
|
source "drivers/i2c/slave/Kconfig.eeprom"
|
|
|
|
|
|
|
|
endif # I2C_SLAVE
|