Fix CDC/ACM alternate interface number (from Antti)
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4589 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
826fbf66c8
commit
41f3401979
97
Kconfig
97
Kconfig
|
@ -18,100 +18,123 @@ comment "General build options"
|
|||
config RRLOAD_BINARY
|
||||
bool "rrload binary format"
|
||||
default n
|
||||
---help---
|
||||
Create nuttx.rr in the rrload binary format used with
|
||||
BSPs from www.ridgerun.com using the tools/mkimage.sh script.
|
||||
|
||||
config INTELHEX_BINARY
|
||||
bool "Intel HEX binary format"
|
||||
default n
|
||||
---help---
|
||||
Create the nuttx.hex in the Intel HEX binary format that is
|
||||
used with many different loaders. This option will use the GNU objcopy program
|
||||
and should not be selected if you are not using the GNU toolchain.
|
||||
|
||||
config MOTOROLA_SREC
|
||||
bool "Motorola S-Record binary format"
|
||||
default n
|
||||
---help---
|
||||
Create the nuttx.srec in the Motorola S-Record binary format that is
|
||||
used with many different loaders. This option will use the GNU objcopy program
|
||||
and should not be selected if you are not using the GNU toolchain.
|
||||
|
||||
config RAW_BINARY
|
||||
bool "raw binary format"
|
||||
bool "Raw binary format"
|
||||
default n
|
||||
---help---
|
||||
Create the nuttx.bin in the raw binary format that is used with many
|
||||
different loaders using the GNU objcopy program. This option
|
||||
should not be selected if you are not using the GNU toolchain.
|
||||
|
||||
comment "General debug options"
|
||||
|
||||
config DEBUG
|
||||
bool "enable debug"
|
||||
bool "Enable debug output"
|
||||
default n
|
||||
---help---
|
||||
enables built-in debug options
|
||||
|
||||
if DEBUG
|
||||
config DEBUG_VERBOSE
|
||||
bool "enable debug verbose"
|
||||
bool "Enable debug verbose output"
|
||||
default n
|
||||
---help---
|
||||
enables verbose debug output
|
||||
|
||||
config DEBUG_ENABLE
|
||||
bool "enable debug interface"
|
||||
bool "Enable debug controls"
|
||||
default n
|
||||
---help---
|
||||
Support an interface to enable or disable debug output.
|
||||
|
||||
config DEBUG_SYMBOLS
|
||||
bool "enable debug symbols"
|
||||
default n
|
||||
---help---
|
||||
build without optimization and with
|
||||
debug symbols (needed for use with a debugger).
|
||||
|
||||
config DEBUG_SCHED
|
||||
bool "enable debug sched"
|
||||
bool "Enable scheduler debug output"
|
||||
default n
|
||||
---help---
|
||||
enable OS debug output (disabled by
|
||||
default)
|
||||
Enable OS debug output (disabled by default)
|
||||
|
||||
config DEBUG_MM
|
||||
bool "enable debug mm"
|
||||
bool "Enable memory manager debug output"
|
||||
default n
|
||||
---help---
|
||||
enable memory management debug output
|
||||
(disabled by default)
|
||||
Enable memory management debug output (disabled by default)
|
||||
|
||||
config DEBUG_NET
|
||||
bool "enable debug net"
|
||||
bool "Enable network debug output"
|
||||
default n
|
||||
---help---
|
||||
enable network debug output (disabled
|
||||
by default)
|
||||
Enable network debug output (disabled by default)
|
||||
|
||||
config DEBUG_USB
|
||||
bool "enable debug usb"
|
||||
bool "Enable USB debug output"
|
||||
default n
|
||||
---help---
|
||||
enable usb debug output (disabled by
|
||||
default)
|
||||
Enable usb debug output (disabled by default)
|
||||
|
||||
config DEBUG_FS
|
||||
bool "enable debug fs"
|
||||
bool "Enable file system debug output"
|
||||
default n
|
||||
---help---
|
||||
enable filesystem debug output (disabled
|
||||
by default)
|
||||
Enable file system debug output (disabled by default)
|
||||
|
||||
config DEBUG_LIB
|
||||
bool "enable debug lib"
|
||||
bool "Enable C library debug output"
|
||||
default n
|
||||
---help---
|
||||
enable C library debug output (disabled
|
||||
by default)
|
||||
Enable C library debug output (disabled by default)
|
||||
|
||||
config DEBUG_BINFMT
|
||||
bool "enable debug binfmt"
|
||||
bool "Enable binary loader debug output"
|
||||
default n
|
||||
---help---
|
||||
enable binary loader debug output (disabled
|
||||
by default)
|
||||
Enable binary loader debug output (disabled by default)
|
||||
|
||||
config DEBUG_GRAPHICS
|
||||
bool "enable debug graphics"
|
||||
bool "Enable graphics debug output"
|
||||
default n
|
||||
---help---
|
||||
enable NX graphics debug output
|
||||
(disabled by default)
|
||||
Enable NX graphics debug output (disabled by default)
|
||||
|
||||
config DEBUG_I2C
|
||||
bool "Enable I2C debug output"
|
||||
default n
|
||||
---help---
|
||||
Enable I2C driver debug output (disabled by default)
|
||||
|
||||
config DEBUG_SPI
|
||||
bool "Enable SPI debug output"
|
||||
default n
|
||||
---help---
|
||||
Enable I2C driver debug output (disabled by default)
|
||||
|
||||
endif
|
||||
|
||||
config DEBUG_SYMBOLS
|
||||
bool "Enable debug symbols"
|
||||
default n
|
||||
---help---
|
||||
Build without optimization and with debug symbols (needed
|
||||
for use with a debugger).
|
||||
endmenu
|
||||
|
||||
menu "System Type"
|
||||
|
@ -137,6 +160,10 @@ menu "File systems"
|
|||
source fs/Kconfig
|
||||
endmenu
|
||||
|
||||
menu "Memory management"
|
||||
source mm/Kconfig
|
||||
endmenu
|
||||
|
||||
menu "Library routines"
|
||||
source lib/Kconfig
|
||||
source libxx/Kconfig
|
||||
|
|
|
@ -712,7 +712,7 @@ CONFIG_PL2303_TXBUFSIZE=512
|
|||
# products. This default VID was selected for compatibility with
|
||||
# the Linux CDC ACM default VID.
|
||||
# CONFIG_CDCACM_PRODUCTID and CONFIG_CDCACM_PRODUCTSTR
|
||||
# The product ID code/string. Default 0xara7 and "CDC/ACM Serial"
|
||||
# The product ID code/string. Default 0xa4a7 and "CDC/ACM Serial"
|
||||
# 0xa4a7 was selected for compatibility with the Linux CDC ACM
|
||||
# default PID.
|
||||
# CONFIG_CDCACM_RXBUFSIZE and CONFIG_CDCACM_TXBUFSIZE
|
||||
|
|
|
@ -647,7 +647,7 @@ CONFIG_USBMSC_REMOVABLE=y
|
|||
# products. This default VID was selected for compatibility with
|
||||
# the Linux CDC ACM default VID.
|
||||
# CONFIG_CDCACM_PRODUCTID and CONFIG_CDCACM_PRODUCTSTR
|
||||
# The product ID code/string. Default 0xara7 and "CDC/ACM Serial"
|
||||
# The product ID code/string. Default 0xa4a7 and "CDC/ACM Serial"
|
||||
# 0xa4a7 was selected for compatibility with the Linux CDC ACM
|
||||
# default PID.
|
||||
# CONFIG_CDCACM_RXBUFSIZE and CONFIG_CDCACM_TXBUFSIZE
|
||||
|
|
|
@ -931,7 +931,7 @@ CONFIG_PL2303_TXBUFSIZE=512
|
|||
# products. This default VID was selected for compatibility with
|
||||
# the Linux CDC ACM default VID.
|
||||
# CONFIG_CDCACM_PRODUCTID and CONFIG_CDCACM_PRODUCTSTR
|
||||
# The product ID code/string. Default 0xara7 and "CDC/ACM Serial"
|
||||
# The product ID code/string. Default 0xa4a7 and "CDC/ACM Serial"
|
||||
# 0xa4a7 was selected for compatibility with the Linux CDC ACM
|
||||
# default PID.
|
||||
# CONFIG_CDCACM_RXBUFSIZE and CONFIG_CDCACM_TXBUFSIZE
|
||||
|
|
|
@ -931,7 +931,7 @@ CONFIG_PL2303_TXBUFSIZE=512
|
|||
# products. This default VID was selected for compatibility with
|
||||
# the Linux CDC ACM default VID.
|
||||
# CONFIG_CDCACM_PRODUCTID and CONFIG_CDCACM_PRODUCTSTR
|
||||
# The product ID code/string. Default 0xara7 and "CDC/ACM Serial"
|
||||
# The product ID code/string. Default 0xa4a7 and "CDC/ACM Serial"
|
||||
# 0xa4a7 was selected for compatibility with the Linux CDC ACM
|
||||
# default PID.
|
||||
# CONFIG_CDCACM_RXBUFSIZE and CONFIG_CDCACM_TXBUFSIZE
|
||||
|
|
|
@ -933,7 +933,7 @@ CONFIG_PL2303_TXBUFSIZE=512
|
|||
# products. This default VID was selected for compatibility with
|
||||
# the Linux CDC ACM default VID.
|
||||
# CONFIG_CDCACM_PRODUCTID and CONFIG_CDCACM_PRODUCTSTR
|
||||
# The product ID code/string. Default 0xara7 and "CDC/ACM Serial"
|
||||
# The product ID code/string. Default 0xa4a7 and "CDC/ACM Serial"
|
||||
# 0xa4a7 was selected for compatibility with the Linux CDC ACM
|
||||
# default PID.
|
||||
# CONFIG_CDCACM_RXBUFSIZE and CONFIG_CDCACM_TXBUFSIZE
|
||||
|
|
|
@ -823,7 +823,7 @@ CONFIG_USBMSC_REMOVABLE=y
|
|||
# products. This default VID was selected for compatibility with
|
||||
# the Linux CDC ACM default VID.
|
||||
# CONFIG_CDCACM_PRODUCTID and CONFIG_CDCACM_PRODUCTSTR
|
||||
# The product ID code/string. Default 0xara7 and "CDC/ACM Serial"
|
||||
# The product ID code/string. Default 0xa4a7 and "CDC/ACM Serial"
|
||||
# 0xa4a7 was selected for compatibility with the Linux CDC ACM
|
||||
# default PID.
|
||||
# CONFIG_CDCACM_RXBUFSIZE and CONFIG_CDCACM_TXBUFSIZE
|
||||
|
|
|
@ -838,7 +838,7 @@ CONFIG_PL2303_TXBUFSIZE=512
|
|||
# products. This default VID was selected for compatibility with
|
||||
# the Linux CDC ACM default VID.
|
||||
# CONFIG_CDCACM_PRODUCTID and CONFIG_CDCACM_PRODUCTSTR
|
||||
# The product ID code/string. Default 0xara7 and "CDC/ACM Serial"
|
||||
# The product ID code/string. Default 0xa4a7 and "CDC/ACM Serial"
|
||||
# 0xa4a7 was selected for compatibility with the Linux CDC ACM
|
||||
# default PID.
|
||||
# CONFIG_CDCACM_RXBUFSIZE and CONFIG_CDCACM_TXBUFSIZE
|
||||
|
|
|
@ -746,7 +746,7 @@ CONFIG_PL2303_TXBUFSIZE=512
|
|||
# products. This default VID was selected for compatibility with
|
||||
# the Linux CDC ACM default VID.
|
||||
# CONFIG_CDCACM_PRODUCTID and CONFIG_CDCACM_PRODUCTSTR
|
||||
# The product ID code/string. Default 0xara7 and "CDC/ACM Serial"
|
||||
# The product ID code/string. Default 0xa4a7 and "CDC/ACM Serial"
|
||||
# 0xa4a7 was selected for compatibility with the Linux CDC ACM
|
||||
# default PID.
|
||||
# CONFIG_CDCACM_RXBUFSIZE and CONFIG_CDCACM_TXBUFSIZE
|
||||
|
|
|
@ -945,7 +945,7 @@ CONFIG_PL2303_TXBUFSIZE=512
|
|||
# products. This default VID was selected for compatibility with
|
||||
# the Linux CDC ACM default VID.
|
||||
# CONFIG_CDCACM_PRODUCTID and CONFIG_CDCACM_PRODUCTSTR
|
||||
# The product ID code/string. Default 0xara7 and "CDC/ACM Serial"
|
||||
# The product ID code/string. Default 0xa4a7 and "CDC/ACM Serial"
|
||||
# 0xa4a7 was selected for compatibility with the Linux CDC ACM
|
||||
# default PID.
|
||||
# CONFIG_CDCACM_RXBUFSIZE and CONFIG_CDCACM_TXBUFSIZE
|
||||
|
|
|
@ -897,7 +897,7 @@ CONFIG_PL2303_TXBUFSIZE=512
|
|||
# products. This default VID was selected for compatibility with
|
||||
# the Linux CDC ACM default VID.
|
||||
# CONFIG_CDCACM_PRODUCTID and CONFIG_CDCACM_PRODUCTSTR
|
||||
# The product ID code/string. Default 0xara7 and "CDC/ACM Serial"
|
||||
# The product ID code/string. Default 0xa4a7 and "CDC/ACM Serial"
|
||||
# 0xa4a7 was selected for compatibility with the Linux CDC ACM
|
||||
# default PID.
|
||||
# CONFIG_CDCACM_RXBUFSIZE and CONFIG_CDCACM_TXBUFSIZE
|
||||
|
|
|
@ -762,7 +762,7 @@ CONFIG_PL2303_TXBUFSIZE=512
|
|||
# products. This default VID was selected for compatibility with
|
||||
# the Linux CDC ACM default VID.
|
||||
# CONFIG_CDCACM_PRODUCTID and CONFIG_CDCACM_PRODUCTSTR
|
||||
# The product ID code/string. Default 0xara7 and "CDC/ACM Serial"
|
||||
# The product ID code/string. Default 0xa4a7 and "CDC/ACM Serial"
|
||||
# 0xa4a7 was selected for compatibility with the Linux CDC ACM
|
||||
# default PID.
|
||||
# CONFIG_CDCACM_RXBUFSIZE and CONFIG_CDCACM_TXBUFSIZE
|
||||
|
|
|
@ -760,7 +760,7 @@ CONFIG_PL2303_TXBUFSIZE=512
|
|||
# products. This default VID was selected for compatibility with
|
||||
# the Linux CDC ACM default VID.
|
||||
# CONFIG_CDCACM_PRODUCTID and CONFIG_CDCACM_PRODUCTSTR
|
||||
# The product ID code/string. Default 0xara7 and "CDC/ACM Serial"
|
||||
# The product ID code/string. Default 0xa4a7 and "CDC/ACM Serial"
|
||||
# 0xa4a7 was selected for compatibility with the Linux CDC ACM
|
||||
# default PID.
|
||||
# CONFIG_CDCACM_RXBUFSIZE and CONFIG_CDCACM_TXBUFSIZE
|
||||
|
|
|
@ -106,9 +106,9 @@
|
|||
|
||||
#define CDCACM_NINTERFACES (2) /* Number of interfaces in the configuration */
|
||||
#define CDCACM_NOTIFID (CONFIG_CDCACM_IFNOBASE+0)
|
||||
#define CDCACM_NOTALTIFID CDCACM_NOTIFID
|
||||
#define CDCACM_NOTALTIFID (0)
|
||||
#define CDCACM_DATAIFID (CONFIG_CDCACM_IFNOBASE+1)
|
||||
#define CDCACM_DATAALTIFID CDCACM_DATAIFID
|
||||
#define CDCACM_DATAALTIFID (0)
|
||||
|
||||
/* Configuration descriptor values */
|
||||
|
||||
|
|
22
mm/Kconfig
22
mm/Kconfig
|
@ -2,3 +2,25 @@
|
|||
# For a description of the syntax of this configuration file,
|
||||
# see misc/tools/kconfig-language.txt.
|
||||
#
|
||||
|
||||
config MM_REGIONS
|
||||
int "Number of memory regions"
|
||||
default 1
|
||||
---help---
|
||||
If the architecture includes multiple, non-contiguous regions of
|
||||
memory to allocate from, this specifies the number of memory regions
|
||||
that the memory manager must handle and enables the API
|
||||
mm_addregion(start, end);
|
||||
|
||||
config MM_SMALL
|
||||
bool "Small memory model"
|
||||
default n
|
||||
---help---
|
||||
Each memory allocation has a small allocation overhead. The size
|
||||
of that overhead is normally determined by the "width" of the
|
||||
address support by the MCU. MCUs that support 16-bit addressability
|
||||
have smaller overhead than devices that support 32-bit addressability.
|
||||
However, there are many MCUs that support 32-bit addressability *but*
|
||||
have internal SRAM of size less than or equal to 64Kb. In this case,
|
||||
CONFIG_MM_SMALL can be defined so that those MCUs will also benefit
|
||||
from the smaller, 16-bit-based allocation overhead.
|
||||
|
|
Loading…
Reference in New Issue