summaryrefslogtreecommitdiff
path: root/apps/system/i2c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-04-11 18:12:03 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-04-11 18:12:03 +0000
commit7d770cc270d1e3f73899309ca4a2ac9a1739ffcc (patch)
treec6ed698ba446d8c202e564579ce0802d34a61979 /apps/system/i2c
parent36e82d637fffd680dfa0e4bbb245231640ac0ba1 (diff)
downloadnuttx-7d770cc270d1e3f73899309ca4a2ac9a1739ffcc.tar.gz
nuttx-7d770cc270d1e3f73899309ca4a2ac9a1739ffcc.tar.bz2
nuttx-7d770cc270d1e3f73899309ca4a2ac9a1739ffcc.zip
Correction to the ZLP fix for the STM32 F4 OTG FS driver
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4591 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/system/i2c')
-rw-r--r--apps/system/i2c/Kconfig46
1 files changed, 46 insertions, 0 deletions
diff --git a/apps/system/i2c/Kconfig b/apps/system/i2c/Kconfig
index ae2bf3130..8573720b8 100644
--- a/apps/system/i2c/Kconfig
+++ b/apps/system/i2c/Kconfig
@@ -2,3 +2,49 @@
# For a description of the syntax of this configuration file,
# see misc/tools/kconfig-language.txt.
#
+
+#if I2C
+config I2CTOOL_BUILTIN
+ int "NSH built-in command"
+ default y
+ depends on NSH_BUILTIN_APPS
+ ---help---
+ Build the tools as an NSH built-in command
+
+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
+ int "Minimum I2C address"
+ default 0x03
+ ---help---
+ Minium 7-bit device address (default: 0x03)
+
+config I2CTOOL_MAXADDR
+ int "Maximum I2C address"
+ default 0x77
+ ---help---
+ Largest 7-bit device address (default: 0x77)
+
+config I2CTOOL_MAXREGADDR
+ int "Maximum I2C register address"
+ default 0xff
+ ---help---
+ Largest I2C register address (default: 0xff)
+
+config I2CTOOL_DEFFREQ
+ int "Default I2C frequency"
+ default 4000000
+ ---help---
+ Default I2C frequency (default: 4000000)
+
+#endif \ No newline at end of file