Documentation update; enabled I2C tool in stm32 nsh2 config

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4509 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2012-03-23 01:41:34 +00:00
parent bed32dd500
commit 773027083f
3 changed files with 36 additions and 0 deletions

View File

@ -656,6 +656,8 @@ Where <subdir> is one of the following:
Serial Debug output: USART1 Debug output: USART1
Console: NSH output: USART1 NSH output: USART1 (3)
----------- ----------------------- --------------------------------
I2C No I2C1
----------- ----------------------- --------------------------------
microSD Yes Yes
Support
----------- ----------------------- --------------------------------
@ -669,6 +671,7 @@ Where <subdir> is one of the following:
Built-in None apps/examples/nx
Apps apps/examples/nxhello
apps/examples/usbstorage (5)
apps/system/i2c
=========== ======================= ================================
(1) You will probably need to modify nsh/setenv.sh or nsh2/setenv.sh

View File

@ -48,6 +48,10 @@ CONFIGURED_APPS += examples/nx
CONFIGURED_APPS += examples/nxhello
CONFIGURED_APPS += examples/usbstorage
ifeq ($(CONFIG_I2C),y)
CONFIGURED_APPS += system/i2c
endif
# Applications configured as an NX built-in commands
ifeq ($(CONFIG_CAN),y)

View File

@ -287,6 +287,14 @@ CONFIG_CAN1_BAUD=250000
CONFIG_CAN_TSEG1=12
CONFIG_CAN_TSEG2=3
#
# I2C configuration
#
CONFIG_I2C=y
CONFIG_I2C_POLLED=y
CONFIG_I2C_TRANSFER=y
CONFIG_I2C_TRACE=n
#
# General build options
#
@ -410,6 +418,7 @@ CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_GRAPHICS=n
CONFIG_DEBUG_LCD=n
CONFIG_DEBUG_USB=n
CONFIG_DEBUG_I2C=n
CONFIG_DEBUG_SYMBOLS=n
CONFIG_DEBUG_CAN=n
CONFIG_HAVE_CXX=n
@ -1156,6 +1165,26 @@ CONFIG_NSH_MMCSDSPIPORTNO=0
CONFIG_NSH_MMCSDSLOTNO=0
CONFIG_NSH_MMCSDMINOR=0
#
# 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=2
#CONFIG_I2CTOOL_MINADDR
#CONFIG_I2CTOOL_MAXADDR
#CONFIG_I2CTOOL_MAXREGADDR
CONFIG_I2CTOOL_DEFFREQ=100000
#
# Settings for examples/usbserial
#