summaryrefslogtreecommitdiff
path: root/nuttx/configs/stm3240g-eval/ostest
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-01-24 14:34:24 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-01-24 14:34:24 +0000
commitb4b6ea430cde3670d7f069311576abf9c725024c (patch)
tree861d652704f07e4e2880222e7844cfeec5adf132 /nuttx/configs/stm3240g-eval/ostest
parent58a755a096e3c671096f7477320d0f5304415ec1 (diff)
downloadpx4-nuttx-b4b6ea430cde3670d7f069311576abf9c725024c.tar.gz
px4-nuttx-b4b6ea430cde3670d7f069311576abf9c725024c.tar.bz2
px4-nuttx-b4b6ea430cde3670d7f069311576abf9c725024c.zip
Enable the I2C tool in the STM3240G-EVAL NSH configuration
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4328 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/stm3240g-eval/ostest')
-rwxr-xr-xnuttx/configs/stm3240g-eval/ostest/defconfig27
1 files changed, 27 insertions, 0 deletions
diff --git a/nuttx/configs/stm3240g-eval/ostest/defconfig b/nuttx/configs/stm3240g-eval/ostest/defconfig
index 8c56c86c3..32e64d7d8 100755
--- a/nuttx/configs/stm3240g-eval/ostest/defconfig
+++ b/nuttx/configs/stm3240g-eval/ostest/defconfig
@@ -325,6 +325,14 @@ CONFIG_STM32_PHYSR_FULLDUPLEX=0x0004
CONFIG_STM32_ETH_PTP=n
#
+# I2C configuration
+#
+CONFIG_I2C=n
+CONFIG_I2C_POLLED=y
+CONFIG_I2C_TRANSFER=y
+CONFIG_I2C_TRACE=n
+
+#
# General build options
#
# CONFIG_RRLOAD_BINARY - make the rrload binary format used with
@@ -1369,6 +1377,25 @@ CONFIG_EXAMPLE_BUTTONS_NAME1="Left/Right"
CONFIG_EXAMPLE_BUTTONS_NAME2="Up/Down"
#
+# I2C tool settings
+#
+# CONFIG_I2CTOOL_BUILTIN - Build the tools as an NSH built-in command
+# CONFIG_I2CTOOL_MINBUS - Smallest bus index supported by the hardware (default 0).
+# CONFIG_I2CTOOL_MAXBUS - Largest bus index supported by the hardware (default 3)
+# CONFIG_I2CTOOL_MINADDR - Minium device address (default: 0x03)
+# CONFIG_I2CTOOL_MAXADDR - Largest device address (default: 0x77)
+# CONFIG_I2CTOOL_MAXREGADDR - Largest register address (default: 0xff)
+# CONFIG_I2CTOOL_DEFFREQ - Default frequency (default: 1000000)
+#
+CONFIG_I2CTOOL_BUILTIN=y
+CONFIG_I2CTOOL_MINBUS=1
+CONFIG_I2CTOOL_MAXBUS=3
+#CONFIG_I2CTOOL_MINADDR
+#CONFIG_I2CTOOL_MAXADDR
+#CONFIG_I2CTOOL_MAXREGADDR
+CONFIG_I2CTOOL_DEFFREQ=100000
+
+#
# Settings for examples/usbserial
#
# CONFIG_EXAMPLES_USBSERIAL_INONLY