mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
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:
@@ -18,100 +18,123 @@ comment "General build options"
|
|||||||
config RRLOAD_BINARY
|
config RRLOAD_BINARY
|
||||||
bool "rrload binary format"
|
bool "rrload binary format"
|
||||||
default n
|
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
|
config INTELHEX_BINARY
|
||||||
bool "Intel HEX binary format"
|
bool "Intel HEX binary format"
|
||||||
default n
|
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
|
config MOTOROLA_SREC
|
||||||
bool "Motorola S-Record binary format"
|
bool "Motorola S-Record binary format"
|
||||||
default n
|
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
|
config RAW_BINARY
|
||||||
bool "raw binary format"
|
bool "Raw binary format"
|
||||||
default n
|
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"
|
comment "General debug options"
|
||||||
|
|
||||||
config DEBUG
|
config DEBUG
|
||||||
bool "enable debug"
|
bool "Enable debug output"
|
||||||
default n
|
default n
|
||||||
---help---
|
---help---
|
||||||
enables built-in debug options
|
enables built-in debug options
|
||||||
|
|
||||||
if DEBUG
|
if DEBUG
|
||||||
config DEBUG_VERBOSE
|
config DEBUG_VERBOSE
|
||||||
bool "enable debug verbose"
|
bool "Enable debug verbose output"
|
||||||
default n
|
default n
|
||||||
---help---
|
---help---
|
||||||
enables verbose debug output
|
enables verbose debug output
|
||||||
|
|
||||||
config DEBUG_ENABLE
|
config DEBUG_ENABLE
|
||||||
bool "enable debug interface"
|
bool "Enable debug controls"
|
||||||
default n
|
default n
|
||||||
---help---
|
---help---
|
||||||
Support an interface to enable or disable debug output.
|
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
|
config DEBUG_SCHED
|
||||||
bool "enable debug sched"
|
bool "Enable scheduler debug output"
|
||||||
default n
|
default n
|
||||||
---help---
|
---help---
|
||||||
enable OS debug output (disabled by
|
Enable OS debug output (disabled by default)
|
||||||
default)
|
|
||||||
|
|
||||||
config DEBUG_MM
|
config DEBUG_MM
|
||||||
bool "enable debug mm"
|
bool "Enable memory manager debug output"
|
||||||
default n
|
default n
|
||||||
---help---
|
---help---
|
||||||
enable memory management debug output
|
Enable memory management debug output (disabled by default)
|
||||||
(disabled by default)
|
|
||||||
|
|
||||||
config DEBUG_NET
|
config DEBUG_NET
|
||||||
bool "enable debug net"
|
bool "Enable network debug output"
|
||||||
default n
|
default n
|
||||||
---help---
|
---help---
|
||||||
enable network debug output (disabled
|
Enable network debug output (disabled by default)
|
||||||
by default)
|
|
||||||
|
|
||||||
config DEBUG_USB
|
config DEBUG_USB
|
||||||
bool "enable debug usb"
|
bool "Enable USB debug output"
|
||||||
default n
|
default n
|
||||||
---help---
|
---help---
|
||||||
enable usb debug output (disabled by
|
Enable usb debug output (disabled by default)
|
||||||
default)
|
|
||||||
|
|
||||||
config DEBUG_FS
|
config DEBUG_FS
|
||||||
bool "enable debug fs"
|
bool "Enable file system debug output"
|
||||||
default n
|
default n
|
||||||
---help---
|
---help---
|
||||||
enable filesystem debug output (disabled
|
Enable file system debug output (disabled by default)
|
||||||
by default)
|
|
||||||
|
|
||||||
config DEBUG_LIB
|
config DEBUG_LIB
|
||||||
bool "enable debug lib"
|
bool "Enable C library debug output"
|
||||||
default n
|
default n
|
||||||
---help---
|
---help---
|
||||||
enable C library debug output (disabled
|
Enable C library debug output (disabled by default)
|
||||||
by default)
|
|
||||||
|
|
||||||
config DEBUG_BINFMT
|
config DEBUG_BINFMT
|
||||||
bool "enable debug binfmt"
|
bool "Enable binary loader debug output"
|
||||||
default n
|
default n
|
||||||
---help---
|
---help---
|
||||||
enable binary loader debug output (disabled
|
Enable binary loader debug output (disabled by default)
|
||||||
by default)
|
|
||||||
|
|
||||||
config DEBUG_GRAPHICS
|
config DEBUG_GRAPHICS
|
||||||
bool "enable debug graphics"
|
bool "Enable graphics debug output"
|
||||||
default n
|
default n
|
||||||
---help---
|
---help---
|
||||||
enable NX graphics debug output
|
Enable NX graphics debug output (disabled by default)
|
||||||
(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
|
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
|
endmenu
|
||||||
|
|
||||||
menu "System Type"
|
menu "System Type"
|
||||||
@@ -137,6 +160,10 @@ menu "File systems"
|
|||||||
source fs/Kconfig
|
source fs/Kconfig
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
|
menu "Memory management"
|
||||||
|
source mm/Kconfig
|
||||||
|
endmenu
|
||||||
|
|
||||||
menu "Library routines"
|
menu "Library routines"
|
||||||
source lib/Kconfig
|
source lib/Kconfig
|
||||||
source libxx/Kconfig
|
source libxx/Kconfig
|
||||||
|
|||||||
@@ -712,7 +712,7 @@ CONFIG_PL2303_TXBUFSIZE=512
|
|||||||
# products. This default VID was selected for compatibility with
|
# products. This default VID was selected for compatibility with
|
||||||
# the Linux CDC ACM default VID.
|
# the Linux CDC ACM default VID.
|
||||||
# CONFIG_CDCACM_PRODUCTID and CONFIG_CDCACM_PRODUCTSTR
|
# 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
|
# 0xa4a7 was selected for compatibility with the Linux CDC ACM
|
||||||
# default PID.
|
# default PID.
|
||||||
# CONFIG_CDCACM_RXBUFSIZE and CONFIG_CDCACM_TXBUFSIZE
|
# CONFIG_CDCACM_RXBUFSIZE and CONFIG_CDCACM_TXBUFSIZE
|
||||||
|
|||||||
@@ -647,7 +647,7 @@ CONFIG_USBMSC_REMOVABLE=y
|
|||||||
# products. This default VID was selected for compatibility with
|
# products. This default VID was selected for compatibility with
|
||||||
# the Linux CDC ACM default VID.
|
# the Linux CDC ACM default VID.
|
||||||
# CONFIG_CDCACM_PRODUCTID and CONFIG_CDCACM_PRODUCTSTR
|
# 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
|
# 0xa4a7 was selected for compatibility with the Linux CDC ACM
|
||||||
# default PID.
|
# default PID.
|
||||||
# CONFIG_CDCACM_RXBUFSIZE and CONFIG_CDCACM_TXBUFSIZE
|
# CONFIG_CDCACM_RXBUFSIZE and CONFIG_CDCACM_TXBUFSIZE
|
||||||
|
|||||||
@@ -931,7 +931,7 @@ CONFIG_PL2303_TXBUFSIZE=512
|
|||||||
# products. This default VID was selected for compatibility with
|
# products. This default VID was selected for compatibility with
|
||||||
# the Linux CDC ACM default VID.
|
# the Linux CDC ACM default VID.
|
||||||
# CONFIG_CDCACM_PRODUCTID and CONFIG_CDCACM_PRODUCTSTR
|
# 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
|
# 0xa4a7 was selected for compatibility with the Linux CDC ACM
|
||||||
# default PID.
|
# default PID.
|
||||||
# CONFIG_CDCACM_RXBUFSIZE and CONFIG_CDCACM_TXBUFSIZE
|
# CONFIG_CDCACM_RXBUFSIZE and CONFIG_CDCACM_TXBUFSIZE
|
||||||
|
|||||||
@@ -931,7 +931,7 @@ CONFIG_PL2303_TXBUFSIZE=512
|
|||||||
# products. This default VID was selected for compatibility with
|
# products. This default VID was selected for compatibility with
|
||||||
# the Linux CDC ACM default VID.
|
# the Linux CDC ACM default VID.
|
||||||
# CONFIG_CDCACM_PRODUCTID and CONFIG_CDCACM_PRODUCTSTR
|
# 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
|
# 0xa4a7 was selected for compatibility with the Linux CDC ACM
|
||||||
# default PID.
|
# default PID.
|
||||||
# CONFIG_CDCACM_RXBUFSIZE and CONFIG_CDCACM_TXBUFSIZE
|
# CONFIG_CDCACM_RXBUFSIZE and CONFIG_CDCACM_TXBUFSIZE
|
||||||
|
|||||||
@@ -933,7 +933,7 @@ CONFIG_PL2303_TXBUFSIZE=512
|
|||||||
# products. This default VID was selected for compatibility with
|
# products. This default VID was selected for compatibility with
|
||||||
# the Linux CDC ACM default VID.
|
# the Linux CDC ACM default VID.
|
||||||
# CONFIG_CDCACM_PRODUCTID and CONFIG_CDCACM_PRODUCTSTR
|
# 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
|
# 0xa4a7 was selected for compatibility with the Linux CDC ACM
|
||||||
# default PID.
|
# default PID.
|
||||||
# CONFIG_CDCACM_RXBUFSIZE and CONFIG_CDCACM_TXBUFSIZE
|
# CONFIG_CDCACM_RXBUFSIZE and CONFIG_CDCACM_TXBUFSIZE
|
||||||
|
|||||||
@@ -823,7 +823,7 @@ CONFIG_USBMSC_REMOVABLE=y
|
|||||||
# products. This default VID was selected for compatibility with
|
# products. This default VID was selected for compatibility with
|
||||||
# the Linux CDC ACM default VID.
|
# the Linux CDC ACM default VID.
|
||||||
# CONFIG_CDCACM_PRODUCTID and CONFIG_CDCACM_PRODUCTSTR
|
# 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
|
# 0xa4a7 was selected for compatibility with the Linux CDC ACM
|
||||||
# default PID.
|
# default PID.
|
||||||
# CONFIG_CDCACM_RXBUFSIZE and CONFIG_CDCACM_TXBUFSIZE
|
# CONFIG_CDCACM_RXBUFSIZE and CONFIG_CDCACM_TXBUFSIZE
|
||||||
|
|||||||
@@ -838,7 +838,7 @@ CONFIG_PL2303_TXBUFSIZE=512
|
|||||||
# products. This default VID was selected for compatibility with
|
# products. This default VID was selected for compatibility with
|
||||||
# the Linux CDC ACM default VID.
|
# the Linux CDC ACM default VID.
|
||||||
# CONFIG_CDCACM_PRODUCTID and CONFIG_CDCACM_PRODUCTSTR
|
# 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
|
# 0xa4a7 was selected for compatibility with the Linux CDC ACM
|
||||||
# default PID.
|
# default PID.
|
||||||
# CONFIG_CDCACM_RXBUFSIZE and CONFIG_CDCACM_TXBUFSIZE
|
# CONFIG_CDCACM_RXBUFSIZE and CONFIG_CDCACM_TXBUFSIZE
|
||||||
|
|||||||
@@ -746,7 +746,7 @@ CONFIG_PL2303_TXBUFSIZE=512
|
|||||||
# products. This default VID was selected for compatibility with
|
# products. This default VID was selected for compatibility with
|
||||||
# the Linux CDC ACM default VID.
|
# the Linux CDC ACM default VID.
|
||||||
# CONFIG_CDCACM_PRODUCTID and CONFIG_CDCACM_PRODUCTSTR
|
# 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
|
# 0xa4a7 was selected for compatibility with the Linux CDC ACM
|
||||||
# default PID.
|
# default PID.
|
||||||
# CONFIG_CDCACM_RXBUFSIZE and CONFIG_CDCACM_TXBUFSIZE
|
# CONFIG_CDCACM_RXBUFSIZE and CONFIG_CDCACM_TXBUFSIZE
|
||||||
|
|||||||
@@ -945,7 +945,7 @@ CONFIG_PL2303_TXBUFSIZE=512
|
|||||||
# products. This default VID was selected for compatibility with
|
# products. This default VID was selected for compatibility with
|
||||||
# the Linux CDC ACM default VID.
|
# the Linux CDC ACM default VID.
|
||||||
# CONFIG_CDCACM_PRODUCTID and CONFIG_CDCACM_PRODUCTSTR
|
# 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
|
# 0xa4a7 was selected for compatibility with the Linux CDC ACM
|
||||||
# default PID.
|
# default PID.
|
||||||
# CONFIG_CDCACM_RXBUFSIZE and CONFIG_CDCACM_TXBUFSIZE
|
# CONFIG_CDCACM_RXBUFSIZE and CONFIG_CDCACM_TXBUFSIZE
|
||||||
|
|||||||
@@ -897,7 +897,7 @@ CONFIG_PL2303_TXBUFSIZE=512
|
|||||||
# products. This default VID was selected for compatibility with
|
# products. This default VID was selected for compatibility with
|
||||||
# the Linux CDC ACM default VID.
|
# the Linux CDC ACM default VID.
|
||||||
# CONFIG_CDCACM_PRODUCTID and CONFIG_CDCACM_PRODUCTSTR
|
# 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
|
# 0xa4a7 was selected for compatibility with the Linux CDC ACM
|
||||||
# default PID.
|
# default PID.
|
||||||
# CONFIG_CDCACM_RXBUFSIZE and CONFIG_CDCACM_TXBUFSIZE
|
# CONFIG_CDCACM_RXBUFSIZE and CONFIG_CDCACM_TXBUFSIZE
|
||||||
|
|||||||
@@ -762,7 +762,7 @@ CONFIG_PL2303_TXBUFSIZE=512
|
|||||||
# products. This default VID was selected for compatibility with
|
# products. This default VID was selected for compatibility with
|
||||||
# the Linux CDC ACM default VID.
|
# the Linux CDC ACM default VID.
|
||||||
# CONFIG_CDCACM_PRODUCTID and CONFIG_CDCACM_PRODUCTSTR
|
# 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
|
# 0xa4a7 was selected for compatibility with the Linux CDC ACM
|
||||||
# default PID.
|
# default PID.
|
||||||
# CONFIG_CDCACM_RXBUFSIZE and CONFIG_CDCACM_TXBUFSIZE
|
# CONFIG_CDCACM_RXBUFSIZE and CONFIG_CDCACM_TXBUFSIZE
|
||||||
|
|||||||
@@ -760,7 +760,7 @@ CONFIG_PL2303_TXBUFSIZE=512
|
|||||||
# products. This default VID was selected for compatibility with
|
# products. This default VID was selected for compatibility with
|
||||||
# the Linux CDC ACM default VID.
|
# the Linux CDC ACM default VID.
|
||||||
# CONFIG_CDCACM_PRODUCTID and CONFIG_CDCACM_PRODUCTSTR
|
# 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
|
# 0xa4a7 was selected for compatibility with the Linux CDC ACM
|
||||||
# default PID.
|
# default PID.
|
||||||
# CONFIG_CDCACM_RXBUFSIZE and CONFIG_CDCACM_TXBUFSIZE
|
# CONFIG_CDCACM_RXBUFSIZE and CONFIG_CDCACM_TXBUFSIZE
|
||||||
|
|||||||
@@ -106,9 +106,9 @@
|
|||||||
|
|
||||||
#define CDCACM_NINTERFACES (2) /* Number of interfaces in the configuration */
|
#define CDCACM_NINTERFACES (2) /* Number of interfaces in the configuration */
|
||||||
#define CDCACM_NOTIFID (CONFIG_CDCACM_IFNOBASE+0)
|
#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_DATAIFID (CONFIG_CDCACM_IFNOBASE+1)
|
||||||
#define CDCACM_DATAALTIFID CDCACM_DATAIFID
|
#define CDCACM_DATAALTIFID (0)
|
||||||
|
|
||||||
/* Configuration descriptor values */
|
/* Configuration descriptor values */
|
||||||
|
|
||||||
|
|||||||
+22
@@ -2,3 +2,25 @@
|
|||||||
# For a description of the syntax of this configuration file,
|
# For a description of the syntax of this configuration file,
|
||||||
# see misc/tools/kconfig-language.txt.
|
# 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.
|
||||||
|
|||||||
Reference in New Issue
Block a user