2012-04-06 18:33:17 +02:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2015-06-28 16:14:53 +02:00
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
2012-04-06 18:33:17 +02:00
|
|
|
#
|
2012-04-11 20:12:03 +02:00
|
|
|
|
2012-04-14 22:01:08 +02:00
|
|
|
|
2015-04-07 21:23:39 +02:00
|
|
|
menuconfig SYSTEM_I2CTOOL
|
2018-09-03 17:29:56 +02:00
|
|
|
tristate "I2C tool"
|
2012-04-14 22:01:08 +02:00
|
|
|
default n
|
|
|
|
depends on I2C
|
2016-02-02 17:27:50 +01:00
|
|
|
select I2C_DRIVER
|
2012-04-14 22:01:08 +02:00
|
|
|
---help---
|
|
|
|
Enable support for the I2C tool.
|
|
|
|
|
2013-06-13 01:32:00 +02:00
|
|
|
if SYSTEM_I2CTOOL
|
2012-04-11 20:12:03 +02:00
|
|
|
|
|
|
|
config I2CTOOL_MINBUS
|
|
|
|
int "Minimum bus number"
|
|
|
|
default 0
|
|
|
|
---help---
|
|
|
|
Smallest bus index supported by the hardware (default 0).
|
|
|
|
|
|
|
|
config I2CTOOL_MAXBUS
|
|
|
|
int "Maximum bus number"
|
|
|
|
default 3
|
|
|
|
---help---
|
|
|
|
Largest bus index supported by the hardware (default 3)
|
|
|
|
|
|
|
|
config I2CTOOL_MINADDR
|
2012-04-12 23:52:04 +02:00
|
|
|
hex "Minimum I2C address"
|
2012-04-11 20:12:03 +02:00
|
|
|
default 0x03
|
|
|
|
---help---
|
2020-02-23 05:51:44 +01:00
|
|
|
Minimum 7-bit device address (default: 0x03)
|
2012-04-11 20:12:03 +02:00
|
|
|
|
|
|
|
config I2CTOOL_MAXADDR
|
2012-04-12 23:52:04 +02:00
|
|
|
hex "Maximum I2C address"
|
2012-04-11 20:12:03 +02:00
|
|
|
default 0x77
|
|
|
|
---help---
|
|
|
|
Largest 7-bit device address (default: 0x77)
|
|
|
|
|
|
|
|
config I2CTOOL_MAXREGADDR
|
2012-04-12 23:52:04 +02:00
|
|
|
hex "Maximum I2C register address"
|
2012-04-11 20:12:03 +02:00
|
|
|
default 0xff
|
|
|
|
---help---
|
|
|
|
Largest I2C register address (default: 0xff)
|
|
|
|
|
|
|
|
config I2CTOOL_DEFFREQ
|
|
|
|
int "Default I2C frequency"
|
2013-10-10 17:55:08 +02:00
|
|
|
default 400000
|
2012-04-11 20:12:03 +02:00
|
|
|
---help---
|
2013-10-10 17:55:08 +02:00
|
|
|
Default I2C frequency (default: 400000)
|
2013-06-13 01:32:00 +02:00
|
|
|
|
2016-02-02 17:27:50 +01:00
|
|
|
endif # SYSTEM_I2CTOOL
|