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
This commit is contained in:
parent
066ab944c4
commit
3be4d1cf4d
@ -326,6 +326,14 @@ CONFIG_STM32_PHYSR_FULLDUPLEX=0x0004
|
||||
CONFIG_STM32_ETH_PTP=n
|
||||
CONFIG_STM32_ETHMAC_REGDEBUG=n
|
||||
|
||||
#
|
||||
# I2C configuration
|
||||
#
|
||||
CONFIG_I2C=n
|
||||
CONFIG_I2C_POLLED=y
|
||||
CONFIG_I2C_TRANSFER=y
|
||||
CONFIG_I2C_TRACE=n
|
||||
|
||||
#
|
||||
# General build options
|
||||
#
|
||||
@ -1174,6 +1182,25 @@ 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=3
|
||||
#CONFIG_I2CTOOL_MINADDR
|
||||
#CONFIG_I2CTOOL_MAXADDR
|
||||
#CONFIG_I2CTOOL_MAXREGADDR
|
||||
CONFIG_I2CTOOL_DEFFREQ=100000
|
||||
|
||||
#
|
||||
# Settings for examples/usbserial
|
||||
#
|
||||
|
@ -326,6 +326,14 @@ CONFIG_STM32_PHYSR_FULLDUPLEX=0x0004
|
||||
CONFIG_STM32_ETH_PTP=n
|
||||
CONFIG_STM32_ETHMAC_REGDEBUG=n
|
||||
|
||||
#
|
||||
# I2C configuration
|
||||
#
|
||||
CONFIG_I2C=n
|
||||
CONFIG_I2C_POLLED=y
|
||||
CONFIG_I2C_TRANSFER=y
|
||||
CONFIG_I2C_TRACE=n
|
||||
|
||||
#
|
||||
# General build options
|
||||
#
|
||||
@ -1167,6 +1175,25 @@ 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=3
|
||||
#CONFIG_I2CTOOL_MINADDR
|
||||
#CONFIG_I2CTOOL_MAXADDR
|
||||
#CONFIG_I2CTOOL_MAXREGADDR
|
||||
CONFIG_I2CTOOL_DEFFREQ=100000
|
||||
|
||||
#
|
||||
# Settings for examples/usbserial
|
||||
#
|
||||
|
@ -62,3 +62,6 @@ ifeq ($(CONFIG_CAN),y)
|
||||
CONFIGURED_APPS += examples/can
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_I2C),y)
|
||||
CONFIGURED_APPS += system/i2c
|
||||
endif
|
||||
|
@ -155,7 +155,7 @@ CONFIG_STM32_USART2=n
|
||||
CONFIG_STM32_USART3=y
|
||||
CONFIG_STM32_UART4=n
|
||||
CONFIG_STM32_UART5=n
|
||||
CONFIG_STM32_I2C1=n
|
||||
CONFIG_STM32_I2C1=y
|
||||
CONFIG_STM32_I2C2=n
|
||||
CONFIG_STM32_I2C3=n
|
||||
CONFIG_STM32_CAN1=n
|
||||
@ -328,6 +328,14 @@ CONFIG_STM32_PHYSR_FULLDUPLEX=0x0004
|
||||
CONFIG_STM32_ETH_PTP=n
|
||||
CONFIG_STM32_ETHMAC_REGDEBUG=n
|
||||
|
||||
#
|
||||
# I2C configuration
|
||||
#
|
||||
CONFIG_I2C=y
|
||||
CONFIG_I2C_POLLED=y
|
||||
CONFIG_I2C_TRANSFER=y
|
||||
CONFIG_I2C_TRACE=n
|
||||
|
||||
#
|
||||
# ADC configuration
|
||||
#
|
||||
@ -489,6 +497,7 @@ CONFIG_DEBUG_RTC=n
|
||||
CONFIG_DEBUG_ANALOG=n
|
||||
CONFIG_DEBUG_PWM=n
|
||||
CONFIG_DEBUG_CAN=n
|
||||
CONFIG_DEBUG_I2C=n
|
||||
CONFIG_HAVE_CXX=y
|
||||
CONFIG_MM_REGIONS=2
|
||||
CONFIG_ARCH_LOWPUTC=y
|
||||
@ -1210,6 +1219,25 @@ 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=3
|
||||
#CONFIG_I2CTOOL_MINADDR
|
||||
#CONFIG_I2CTOOL_MAXADDR
|
||||
#CONFIG_I2CTOOL_MAXREGADDR
|
||||
CONFIG_I2CTOOL_DEFFREQ=100000
|
||||
|
||||
#
|
||||
# Settings for examples/usbserial
|
||||
#
|
||||
|
@ -324,6 +324,14 @@ CONFIG_STM32_PHYSR_MODE=0x0004
|
||||
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
|
||||
#
|
||||
@ -1368,6 +1376,25 @@ CONFIG_EXAMPLE_BUTTONS_NAME0="Key/Select"
|
||||
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
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user