-
Notifications
You must be signed in to change notification settings - Fork 25
/
Kconfig
33 lines (28 loc) · 979 Bytes
/
Kconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
menu "I2Cbus"
config I2CBUS_LOG_ERRORS
bool "Log fail read/write operations (errors)"
depends on ! LOG_DEFAULT_LEVEL_NONE
default "y"
help
Log any read/write operation errors that might ocurr within I2Cbus library.
config I2CBUS_LOG_READWRITES
bool "Log successuful read/write operations (debug)"
depends on ! LOG_DEFAULT_LEVEL_NONE && ! LOG_DEFAULT_LEVEL_ERROR && ! LOG_DEFAULT_LEVEL_WARN
default "n"
help
Log all successuful read/write data, including port, slave address,
target register and the data written to. Useful for debugging.
choice
prompt "Log level"
depends on I2CBUS_LOG_READWRITES
default I2CBUS_LOG_RW_LEVEL_VERBOSE
help
Log level for successuful read/write operations. Levels depends on LOG_DEFAULT_LEVEL.
config I2CBUS_LOG_RW_LEVEL_INFO
bool "Info"
config I2CBUS_LOG_RW_LEVEL_DEBUG
bool "Debug"
config I2CBUS_LOG_RW_LEVEL_VERBOSE
bool "Verbose"
endchoice
endmenu