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