From 04b277589868c399656d2d87b22911ffb9c7f4b1 Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 11 Apr 2012 18:12:03 +0000 Subject: [PATCH] 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 --- system/Kconfig | 16 ++++++++++++++ system/i2c/Kconfig | 46 +++++++++++++++++++++++++++++++++++++++++ system/readline/Kconfig | 27 ++++++++++++++++++++++++ 3 files changed, 89 insertions(+) diff --git a/system/Kconfig b/system/Kconfig index ae2bf3130..44bf5a2e6 100644 --- a/system/Kconfig +++ b/system/Kconfig @@ -2,3 +2,19 @@ # For a description of the syntax of this configuration file, # see misc/tools/kconfig-language.txt. # + +menu "Custom free memory command" +source "$APPSDIR/system/free/Kconfig" +endmenu + +menu "I2C tool" +source "$APPSDIR/system/i2c/Kconfig" +endmenu + +menu "FLASH Program Installation" +source "$APPSDIR/system/install/Kconfig" +endmenu + +menu "readline() support" +source "$APPSDIR/system/readline/Kconfig" +endmenu diff --git a/system/i2c/Kconfig b/system/i2c/Kconfig index ae2bf3130..8573720b8 100644 --- a/system/i2c/Kconfig +++ b/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 diff --git a/system/readline/Kconfig b/system/readline/Kconfig index ae2bf3130..11aedf0c3 100644 --- a/system/readline/Kconfig +++ b/system/readline/Kconfig @@ -2,3 +2,30 @@ # For a description of the syntax of this configuration file, # see misc/tools/kconfig-language.txt. # + +config READLINE_ECHO + bool "Echo character input" + default y + ---help--- + Echo received character input back via stdout. This is normal + behavior and should be selected unless the source of stdin input + already has local echo support or you need to suppress the back-channel + responses for any other reason. + +choice + prompt "Newline Options" + default EOL_IS_EITHER_CRLF + +config EOL_IS_CR + bool "EOL is CR" + +config EOL_IS_LF + bool "EOL is LF" + +config EOL_IS_BOTH_CRLF + bool "EOL is CR and LF" + +config EOL_IS_EITHER_CRLF + bool "EOL is CR or LF" + +endchoice