2012-04-06 17:49:35 +02:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2012-04-06 18:45:52 +02:00
|
|
|
# see misc/tools/kconfig-language.txt.
|
2012-04-06 17:49:35 +02:00
|
|
|
#
|
2012-09-06 22:08:25 +02:00
|
|
|
|
2013-02-24 00:42:06 +01:00
|
|
|
comment "USB Device Controller Driver Options"
|
2012-09-13 16:14:18 +02:00
|
|
|
|
|
|
|
config USBDEV_ISOCHRONOUS
|
|
|
|
bool "Enable isochronous"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Build in extra support for isochronous endpoints
|
|
|
|
|
|
|
|
config USBDEV_DUALSPEED
|
|
|
|
bool "Enable high and full speed"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Hardware handles high and full speed operation (USB 2.0)
|
|
|
|
|
|
|
|
choice USBDEV_POWERED
|
|
|
|
prompt "Select USB device powered"
|
|
|
|
default USBDEV_SELFPOWERED
|
|
|
|
|
|
|
|
config USBDEV_SELFPOWERED
|
|
|
|
bool "Self powered"
|
|
|
|
---help---
|
|
|
|
Will cause USB features to indicate that the device is self-powered
|
|
|
|
|
|
|
|
config USBDEV_BUSPOWERED
|
|
|
|
bool "Bus powered"
|
|
|
|
---help---
|
|
|
|
Will cause USB features to indicate that the device is self-powered
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config USBDEV_MAXPOWER
|
|
|
|
int "Maximum power consumption in mA"
|
|
|
|
default 100
|
2013-04-12 16:38:52 +02:00
|
|
|
# depends on USBDEV_BUSPOWERED
|
2012-09-13 16:14:18 +02:00
|
|
|
---help---
|
2013-04-12 16:38:52 +02:00
|
|
|
Maximum power consumption in mA. This selection should only apply if
|
|
|
|
the device is bus powered (USBDEV_BUSPOWERED). It is, however, used
|
|
|
|
unconditionally in several USB device drivers.
|
2012-09-13 16:14:18 +02:00
|
|
|
|
|
|
|
config USBDEV_DMA
|
|
|
|
bool "Enable DMA methods"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Select this enable DMA-related methods in USB device controller driver
|
|
|
|
interface. These methods include the DMA buffer allocation methods:
|
|
|
|
allobuffer() and freebuffer().
|
|
|
|
|
|
|
|
The USB class driver allocates packet I/O buffers for data transfer by
|
|
|
|
calling the driver allocbuffer() and freebuffer() methods. Those methods
|
|
|
|
are only available if USBDEV_DMA is defined in the system configuration.
|
|
|
|
|
|
|
|
config USBDEV_DMAMEMORY
|
|
|
|
bool "Board DMA Allocation Hooks"
|
|
|
|
default n
|
|
|
|
depends on USBDEV_DMA
|
|
|
|
---help---
|
|
|
|
The USB class driver allocates packet I/O buffers for data transfer by
|
|
|
|
calling the driver allocbuffer() and freebuffer() methods. Those methods
|
|
|
|
are only available if USBDEV_DMA is defined in the system configuration.
|
|
|
|
|
|
|
|
If USBDEV_DMAMEMORY is also defined in the NuttX configuration, then
|
|
|
|
the driver implementations of the allocbuffer() and freebuffer()
|
|
|
|
methods may use board-specific usbdev_dma_alloc() and usbdev_dma_free().
|
|
|
|
If USBDEV_DMA and USBDEV_DMAMEMORY are both defined, then the board-
|
|
|
|
specific logic must provide the functions usbdev_dma_alloc() and
|
|
|
|
usbdev_dma_free(): usbdev_dma_alloc() will allocate DMA-capable
|
|
|
|
memory of the specified size; usbdev_dma_free() is the corresponding
|
|
|
|
function that will be called to free the DMA-capable memory.
|
|
|
|
|
|
|
|
config USBDEV_TRACE
|
|
|
|
bool "Enable USB tracing for debug"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enables USB tracing for debug
|
|
|
|
|
|
|
|
config USBDEV_TRACE_NRECORDS
|
|
|
|
int "Number of trace entries to remember"
|
2013-09-09 22:01:52 +02:00
|
|
|
default 128
|
2012-09-13 16:14:18 +02:00
|
|
|
depends on USBDEV_TRACE
|
|
|
|
---help---
|
|
|
|
Number of trace entries to remember
|
|
|
|
|
2013-02-15 15:37:37 +01:00
|
|
|
config USBDEV_TRACE_STRINGS
|
|
|
|
bool "Decode device controller events"
|
|
|
|
default n
|
2013-09-01 19:52:21 +02:00
|
|
|
depends on USBDEV_TRACE || DEBUG_USB
|
2013-02-15 15:37:37 +01:00
|
|
|
---help---
|
|
|
|
If USBDEV_TRACE_STRINGS is defined, then the USB device controller
|
|
|
|
driver must provide arrays of strings to support decoding of device-
|
|
|
|
specific trace events. These arrays of strings (and the type struct
|
|
|
|
trace_msg_t) are defined in include/nuttx/usb/usbdev_trace.h:
|
|
|
|
|
|
|
|
#ifdef CONFIG_USBDEV_TRACE_STRINGS
|
|
|
|
extern const struct trace_msg_t g_usb_trace_strings_deverror[];
|
|
|
|
extern const struct trace_msg_t g_usb_trace_strings_intdecode[];
|
|
|
|
#endif
|
|
|
|
|
2013-02-24 00:42:06 +01:00
|
|
|
comment "USB Device Class Driver Options"
|
2012-09-13 16:14:18 +02:00
|
|
|
|
2013-02-24 00:42:06 +01:00
|
|
|
config USBDEV_COMPOSITE
|
2012-04-13 16:27:44 +02:00
|
|
|
bool "USB composite device support"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enables USB composite device support
|
2012-09-06 22:08:25 +02:00
|
|
|
|
2012-04-13 16:27:44 +02:00
|
|
|
if USBDEV_COMPOSITE
|
2012-09-06 22:08:25 +02:00
|
|
|
|
2012-04-13 16:27:44 +02:00
|
|
|
#config COMPOSITE_IAD
|
|
|
|
# bool ""
|
|
|
|
# default n
|
|
|
|
# ---help---
|
|
|
|
# If one of the members of the composite has multiple interfaces
|
|
|
|
# (such as CDC/ACM), then an Interface Association Descriptor (IAD)
|
|
|
|
# will be necessary. Default: IAD will be used automatically if
|
|
|
|
# needed. It should not be necessary to set this.
|
|
|
|
|
|
|
|
config COMPOSITE_EP0MAXPACKET
|
|
|
|
int "Max packet size for endpoint 0"
|
|
|
|
default 64
|
|
|
|
---help---
|
|
|
|
Max packet size for endpoint 0
|
|
|
|
|
|
|
|
config COMPOSITE_VENDORID
|
|
|
|
hex "Composite vendor ID"
|
2013-09-07 18:12:02 +02:00
|
|
|
default 0x0000
|
|
|
|
|
2012-04-13 16:27:44 +02:00
|
|
|
config COMPOSITE_VENDORSTR
|
|
|
|
string "Composite vendor ID"
|
|
|
|
default "Nuttx"
|
|
|
|
---help---
|
|
|
|
The vendor ID code/string
|
|
|
|
|
|
|
|
config COMPOSITE_PRODUCTID
|
|
|
|
hex "Composite product id"
|
2013-09-07 18:12:02 +02:00
|
|
|
default 0x0000
|
|
|
|
|
2012-04-13 16:27:44 +02:00
|
|
|
config COMPOSITE_PRODUCTSTR
|
|
|
|
string "Composite product string"
|
|
|
|
default "Composite device"
|
|
|
|
---help---
|
|
|
|
The product ID code/string
|
|
|
|
|
|
|
|
config COMPOSITE_SERIALSTR
|
|
|
|
string "Composite serial string"
|
|
|
|
default "001"
|
|
|
|
---help---
|
|
|
|
Device serial number string
|
|
|
|
|
|
|
|
config COMPOSITE_CONFIGSTR
|
|
|
|
string "Configuration string"
|
|
|
|
default "Nuttx COMPOSITE config"
|
|
|
|
---help---
|
|
|
|
Configuration string
|
|
|
|
|
|
|
|
config COMPOSITE_VERSIONNO
|
|
|
|
string "Composite version number"
|
|
|
|
default ""
|
|
|
|
---help---
|
|
|
|
Interface version number.
|
|
|
|
endif
|
|
|
|
|
2013-02-24 00:42:06 +01:00
|
|
|
config PL2303
|
2013-01-29 14:30:10 +01:00
|
|
|
bool "Prolific PL2303 serial/USB converter emulation"
|
2012-04-13 16:27:44 +02:00
|
|
|
default n
|
2013-01-31 17:52:20 +01:00
|
|
|
select SERIAL_REMOVABLE
|
2012-04-13 16:27:44 +02:00
|
|
|
---help---
|
|
|
|
This logic emulates the Prolific PL2303 serial/USB converter
|
2012-09-06 22:08:25 +02:00
|
|
|
|
2012-04-13 16:27:44 +02:00
|
|
|
if PL2303
|
2013-01-27 20:17:56 +01:00
|
|
|
|
|
|
|
config PL2303_CONSOLE
|
|
|
|
bool "PL2303 console device"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Register the USB device as /dev/console so that is will be used
|
|
|
|
as the console device.
|
|
|
|
|
2012-04-13 16:27:44 +02:00
|
|
|
config PL2303_EPINTIN
|
2013-05-29 20:30:37 +02:00
|
|
|
int "Interrupt IN endpoint number"
|
2012-04-13 16:27:44 +02:00
|
|
|
default 1
|
|
|
|
|
|
|
|
config PL2303_EPBULKOUT
|
2013-05-29 20:30:37 +02:00
|
|
|
int "Bulk OUT endpoint number"
|
2012-04-13 16:27:44 +02:00
|
|
|
default 2
|
|
|
|
|
|
|
|
config PL2303_EPBULKIN
|
2013-05-29 20:30:37 +02:00
|
|
|
int "Bulk IN endpoint number"
|
2012-04-13 16:27:44 +02:00
|
|
|
default 3
|
|
|
|
|
|
|
|
config PL2303_EP0MAXPACKET
|
|
|
|
int "Packet and request buffer sizes"
|
|
|
|
default 64
|
|
|
|
|
|
|
|
config PL2303_NWRREQS
|
|
|
|
int "Number of read requests that can be in flight"
|
|
|
|
default 4
|
|
|
|
---help---
|
|
|
|
The number of read requests that can be in flight
|
|
|
|
|
|
|
|
config PL2303_NRDREQS
|
|
|
|
int "Number of write requests that can be in flight"
|
|
|
|
default 4
|
|
|
|
---help---
|
|
|
|
The number of write/read requests that can be in flight
|
|
|
|
|
2013-05-29 20:30:37 +02:00
|
|
|
config PL2303_BULKIN_REQLEN
|
|
|
|
int "Size of one write request buffer"
|
2013-09-06 02:00:16 +02:00
|
|
|
default 768 if USBDEV_DUALSPEED
|
|
|
|
default 96 if !USBDEV_DUALSPEED
|
2013-05-29 20:30:37 +02:00
|
|
|
---help---
|
|
|
|
Ideally, the BULKOUT request size should *not* be the same size as
|
|
|
|
the maxpacket size. That is because IN transfers of exactly the
|
|
|
|
maxpacket size will be followed by a NULL packet. The BULKOUT,
|
|
|
|
on the other hand, request buffer size is always the same as the
|
|
|
|
maxpacket size.
|
|
|
|
|
2012-04-13 16:27:44 +02:00
|
|
|
config PL2303_RXBUFSIZE
|
|
|
|
int "Receive buffer size"
|
|
|
|
default 256
|
|
|
|
---help---
|
|
|
|
Size of the serial receive/transmit buffers
|
|
|
|
|
|
|
|
config PL2303_TXBUFSIZE
|
2012-04-13 17:04:05 +02:00
|
|
|
int "Transmit buffer size"
|
2012-04-13 16:27:44 +02:00
|
|
|
default 256
|
|
|
|
---help---
|
|
|
|
Size of the serial receive/transmit buffers
|
|
|
|
|
|
|
|
config PL2303_VENDORID
|
|
|
|
hex "Vendor ID"
|
|
|
|
default 0x067b
|
|
|
|
|
|
|
|
config PL2303_PRODUCTID
|
|
|
|
hex "Product ID"
|
|
|
|
default 0x2303
|
|
|
|
|
|
|
|
config PL2303_VENDORSTR
|
|
|
|
string "Vendor string"
|
|
|
|
default "NuttX"
|
|
|
|
|
|
|
|
config PL2303_PRODUCTSTR
|
|
|
|
string "Product string"
|
2013-01-29 14:30:10 +01:00
|
|
|
default "PL2303 Emulation"
|
2012-04-13 16:27:44 +02:00
|
|
|
endif
|
|
|
|
|
2013-02-24 00:42:06 +01:00
|
|
|
config CDCACM
|
2012-04-13 16:27:44 +02:00
|
|
|
bool "USB Modem (CDC ACM) support"
|
|
|
|
default n
|
2013-01-31 17:52:20 +01:00
|
|
|
select SERIAL_REMOVABLE
|
2012-04-13 16:27:44 +02:00
|
|
|
---help---
|
|
|
|
Enables USB Modem (CDC ACM) support
|
2012-09-06 22:08:25 +02:00
|
|
|
|
2012-04-13 16:27:44 +02:00
|
|
|
if CDCACM
|
2013-01-27 20:17:56 +01:00
|
|
|
|
|
|
|
config CDCACM_CONSOLE
|
|
|
|
bool "CDC/ACM console device"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Register the USB device as /dev/console so that is will be used
|
|
|
|
as the console device.
|
|
|
|
|
2012-04-13 16:27:44 +02:00
|
|
|
config CDCACM_COMPOSITE
|
2013-01-27 20:17:56 +01:00
|
|
|
bool "CDC/ACM composite support"
|
2012-04-13 16:27:44 +02:00
|
|
|
default n
|
|
|
|
depends on USBDEV_COMPOSITE
|
|
|
|
---help---
|
|
|
|
Configure the CDC serial driver as part of a composite driver
|
2013-04-25 23:52:00 +02:00
|
|
|
(only if USBDEV_COMPOSITE is also defined)
|
2012-04-13 16:27:44 +02:00
|
|
|
|
|
|
|
config CDCACM_IFNOBASE
|
|
|
|
int "Offset the CDC/ACM interface numbers"
|
|
|
|
default 0
|
|
|
|
depends on CDCACM_COMPOSITE
|
|
|
|
---help---
|
2013-09-09 22:01:52 +02:00
|
|
|
If the CDC driver is part of a composite device, then this may need to
|
2012-04-13 16:27:44 +02:00
|
|
|
be defined to offset the CDC/ACM interface numbers so that they are
|
|
|
|
unique and contiguous. When used with the Mass Storage driver, the
|
|
|
|
correct value for this offset is zero.
|
|
|
|
|
|
|
|
config CDCACM_STRBASE
|
|
|
|
int "Offset the CDC/ACM string numbers"
|
|
|
|
default 0
|
|
|
|
depends on CDCACM_COMPOSITE
|
|
|
|
---help---
|
2013-09-09 22:01:52 +02:00
|
|
|
If the CDC driver is part of a composite device, then this may need to
|
2012-04-13 16:27:44 +02:00
|
|
|
be defined to offset the CDC/ACM string numbers so that they are
|
|
|
|
unique and contiguous. When used with the Mass Storage driver, the
|
|
|
|
correct value for this offset is four (this value actuallly only needs
|
|
|
|
to be defined if names are provided for the Notification interface,
|
2013-04-25 23:52:00 +02:00
|
|
|
config CDCACM_NOTIFSTR, or the data interface, CDCACM_DATAIFSTR).
|
2012-04-13 16:27:44 +02:00
|
|
|
|
|
|
|
config CDCACM_EP0MAXPACKET
|
|
|
|
int "Endpoint 0 max packet size"
|
|
|
|
default 64
|
|
|
|
---help---
|
|
|
|
Endpoint 0 max packet size. Default 64.
|
|
|
|
|
|
|
|
config CDCACM_EPINTIN
|
2013-05-29 20:30:37 +02:00
|
|
|
int "Interrupt IN endpoint number"
|
2013-01-28 02:44:45 +01:00
|
|
|
default 1
|
2012-04-13 16:27:44 +02:00
|
|
|
---help---
|
|
|
|
The logical 7-bit address of a hardware endpoint that supports
|
2013-01-28 02:44:45 +01:00
|
|
|
interrupt IN operation. Default 1.
|
2012-04-13 16:27:44 +02:00
|
|
|
|
|
|
|
config CDCACM_EPINTIN_FSSIZE
|
2013-05-29 20:30:37 +02:00
|
|
|
int "Interupt IN full speed MAXPACKET size"
|
2012-04-13 16:27:44 +02:00
|
|
|
default 64
|
|
|
|
---help---
|
|
|
|
Max package size for the interrupt IN endpoint if full speed mode.
|
|
|
|
Default 64.
|
|
|
|
|
|
|
|
config CDCACM_EPINTIN_HSSIZE
|
2013-05-29 20:30:37 +02:00
|
|
|
int "Interupt IN high speed MAXPACKET size"
|
2012-04-13 16:27:44 +02:00
|
|
|
default 64
|
|
|
|
---help---
|
|
|
|
Max package size for the interrupt IN endpoint if high speed mode.
|
|
|
|
Default 64.
|
|
|
|
|
|
|
|
config CDCACM_EPBULKOUT
|
2013-05-29 20:30:37 +02:00
|
|
|
int "Bulk OUT endpoint number"
|
2013-01-28 02:44:45 +01:00
|
|
|
default 3
|
2012-04-13 16:27:44 +02:00
|
|
|
---help---
|
|
|
|
The logical 7-bit address of a hardware endpoint that supports
|
2013-01-28 02:44:45 +01:00
|
|
|
bulk OUT operation. Default: 3
|
2012-04-13 16:27:44 +02:00
|
|
|
|
|
|
|
config CDCACM_EPBULKOUT_FSSIZE
|
2013-05-29 20:30:37 +02:00
|
|
|
int "Bulk OUT full speed MAXPACKET size"
|
2012-04-13 16:27:44 +02:00
|
|
|
default 64
|
|
|
|
---help---
|
|
|
|
Max package size for the bulk OUT endpoint if full speed mode.
|
|
|
|
Default 64.
|
|
|
|
|
|
|
|
config CDCACM_EPBULKOUT_HSSIZE
|
2013-05-29 20:30:37 +02:00
|
|
|
int "Bulk OUT out high speed MAXPACKET size"
|
2012-04-13 16:27:44 +02:00
|
|
|
default 512
|
|
|
|
---help---
|
|
|
|
Max package size for the bulk OUT endpoint if high speed mode.
|
|
|
|
Default 512.
|
|
|
|
|
|
|
|
config CDCACM_EPBULKIN
|
2013-05-29 20:30:37 +02:00
|
|
|
int "Bulk IN endpoint number"
|
2013-01-28 02:44:45 +01:00
|
|
|
default 2
|
2012-04-13 16:27:44 +02:00
|
|
|
---help---
|
|
|
|
The logical 7-bit address of a hardware endpoint that supports
|
2013-01-28 02:44:45 +01:00
|
|
|
bulk IN operation. Default: 2
|
2012-04-13 16:27:44 +02:00
|
|
|
|
|
|
|
config CDCACM_EPBULKIN_FSSIZE
|
2013-05-29 20:30:37 +02:00
|
|
|
int "Bulk IN full speed MAXPACKET size"
|
2012-04-13 16:27:44 +02:00
|
|
|
default 64
|
|
|
|
---help---
|
|
|
|
Max package size for the bulk IN endpoint if full speed mode.
|
|
|
|
Default 64.
|
|
|
|
|
|
|
|
config CDCACM_EPBULKIN_HSSIZE
|
2013-05-29 20:30:37 +02:00
|
|
|
int "Bulk IN high speed MAXPACKET size"
|
2012-04-13 16:27:44 +02:00
|
|
|
default 512
|
|
|
|
---help---
|
|
|
|
Max package size for the bulk IN endpoint if high speed mode.
|
|
|
|
Default 512.
|
|
|
|
|
|
|
|
config CDCACM_NWRREQS
|
|
|
|
int "Number of read requests that can be in flight"
|
|
|
|
default 4
|
|
|
|
---help---
|
|
|
|
The number of read requests that can be in flight
|
|
|
|
|
|
|
|
config CDCACM_NRDREQS
|
|
|
|
int "Number of write requests that can be in flight"
|
|
|
|
default 4
|
|
|
|
---help---
|
|
|
|
The number of write/read requests that can be in flight
|
|
|
|
|
2013-05-29 20:30:37 +02:00
|
|
|
config CDCACM_BULKIN_REQLEN
|
|
|
|
int "Size of one write request buffer"
|
2013-09-06 02:00:16 +02:00
|
|
|
default 768 if USBDEV_DUALSPEED
|
|
|
|
default 96 if !USBDEV_DUALSPEED
|
2013-05-29 20:30:37 +02:00
|
|
|
---help---
|
|
|
|
Ideally, the BULKOUT request size should *not* be the same size as
|
|
|
|
the maxpacket size. That is because IN transfers of exactly the
|
|
|
|
maxpacket size will be followed by a NULL packet. The BULKOUT,
|
|
|
|
on the other hand, request buffer size is always the same as the
|
|
|
|
maxpacket size.
|
|
|
|
|
2012-04-13 16:27:44 +02:00
|
|
|
config CDCACM_RXBUFSIZE
|
|
|
|
int "Receive buffer size"
|
|
|
|
default 256
|
|
|
|
---help---
|
|
|
|
Size of the serial receive/transmit buffers
|
|
|
|
|
|
|
|
config CDCACM_TXBUFSIZE
|
2013-01-28 02:44:45 +01:00
|
|
|
int "Transmit buffer size"
|
2012-04-13 16:27:44 +02:00
|
|
|
default 256
|
|
|
|
---help---
|
|
|
|
Size of the serial receive/transmit buffers
|
|
|
|
|
|
|
|
config CDCACM_VENDORID
|
|
|
|
hex "Vendor ID"
|
|
|
|
default 0x0525
|
|
|
|
---help---
|
|
|
|
The vendor ID code/string. Default 0x0525 and "NuttX"
|
|
|
|
0x0525 is the Netchip vendor and should not be used in any
|
|
|
|
products. This default VID was selected for compatibility with
|
|
|
|
the Linux CDC ACM default VID.
|
|
|
|
|
|
|
|
config CDCACM_PRODUCTID
|
|
|
|
hex "Product ID"
|
|
|
|
default 0xa4a7
|
|
|
|
---help---
|
|
|
|
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_VENDORSTR
|
|
|
|
string "Vendor string"
|
|
|
|
default "NuttX"
|
|
|
|
|
|
|
|
config CDCACM_PRODUCTSTR
|
|
|
|
string "Product string"
|
2013-01-29 14:30:10 +01:00
|
|
|
default "CDC/ACM Serial"
|
2012-04-13 16:27:44 +02:00
|
|
|
endif
|
|
|
|
|
2013-02-24 00:42:06 +01:00
|
|
|
config USBMSC
|
2012-04-13 16:27:44 +02:00
|
|
|
bool "USB Mass storage class device"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
References:
|
|
|
|
"Universal Serial Bus Mass Storage Class, Specification Overview,"
|
|
|
|
Revision 1.2, USB Implementer's Forum, June 23, 2003.
|
|
|
|
|
|
|
|
"Universal Serial Bus Mass Storage Class, Bulk-Only Transport,"
|
|
|
|
Revision 1.0, USB Implementer's Forum, September 31, 1999.
|
|
|
|
|
|
|
|
"SCSI Primary Commands - 3 (SPC-3)," American National Standard
|
|
|
|
for Information Technology, May 4, 2005
|
|
|
|
|
|
|
|
"SCSI Primary Commands - 4 (SPC-4)," American National Standard
|
|
|
|
for Information Technology, July 19, 2008
|
|
|
|
|
|
|
|
"SCSI Block Commands -2 (SBC-2)," American National Standard
|
|
|
|
for Information Technology, November 13, 2004
|
|
|
|
|
|
|
|
"SCSI Multimedia Commands - 3 (MMC-3)," American National Standard
|
|
|
|
for Information Technology, November 12, 2001
|
|
|
|
|
|
|
|
if USBMSC
|
|
|
|
config USBMSC_COMPOSITE
|
|
|
|
bool "Mass storage composite support"
|
|
|
|
default n
|
|
|
|
depends on USBDEV_COMPOSITE
|
|
|
|
---help---
|
|
|
|
Configure the mass storage driver as part of a composite driver
|
2013-04-25 23:52:00 +02:00
|
|
|
(only if USBDEV_COMPOSITE is also defined)
|
2012-04-13 16:27:44 +02:00
|
|
|
|
|
|
|
config USBMSC_IFNOBASE
|
|
|
|
int "Offset the mass storage interface number"
|
|
|
|
default 2
|
|
|
|
depends on USBMSC_COMPOSITE
|
|
|
|
---help---
|
2013-09-09 22:01:52 +02:00
|
|
|
If the CDC driver is part of a composite device, then this may need to
|
2012-04-13 16:27:44 +02:00
|
|
|
be defined to offset the mass storage interface number so that it is
|
|
|
|
unique and contiguous. When used with the CDC/ACM driver, the
|
|
|
|
correct value for this offset is two (because of the two CDC/ACM
|
|
|
|
interfaces that will precede it).
|
|
|
|
|
|
|
|
config USBMSC_STRBASE
|
|
|
|
int "Offset the mass storage string numbers"
|
|
|
|
default 2
|
|
|
|
depends on USBMSC_COMPOSITE
|
|
|
|
---help---
|
2013-09-09 22:01:52 +02:00
|
|
|
If the CDC driver is part of a composite device, then this may need to
|
2012-04-13 16:27:44 +02:00
|
|
|
be defined to offset the mass storage string numbers so that they are
|
|
|
|
unique and contiguous. When used with the CDC/ACM driver, the
|
|
|
|
correct value for this offset is four (or perhaps 5 or 6, depending
|
2013-04-25 23:52:00 +02:00
|
|
|
on if CDCACM_NOTIFSTR or CDCACM_DATAIFSTR are defined).
|
2012-04-13 16:27:44 +02:00
|
|
|
|
|
|
|
config USBMSC_EP0MAXPACKET
|
2012-04-13 17:04:05 +02:00
|
|
|
int "Max packet size for endpoint 0"
|
2012-04-13 16:27:44 +02:00
|
|
|
default 64
|
|
|
|
---help---
|
|
|
|
Max packet size for endpoint 0
|
|
|
|
|
|
|
|
config USBMSC_EPBULKOUT
|
2013-05-29 20:30:37 +02:00
|
|
|
int "Bulk OUT endpoint number"
|
2013-09-06 21:07:29 +02:00
|
|
|
default 2
|
2012-04-13 16:27:44 +02:00
|
|
|
---help---
|
|
|
|
The logical 7-bit address of a hardware endpoints that support
|
|
|
|
bulk OUT and IN operations
|
|
|
|
|
|
|
|
config USBMSC_EPBULKIN
|
2013-05-29 20:30:37 +02:00
|
|
|
int "Bulk IN endpoint number"
|
2013-09-06 21:07:29 +02:00
|
|
|
default 3
|
2012-04-13 16:27:44 +02:00
|
|
|
---help---
|
|
|
|
The logical 7-bit address of a hardware endpoints that support
|
|
|
|
bulk OUT and IN operations
|
|
|
|
|
|
|
|
config USBMSC_NWRREQS
|
|
|
|
int "The number of write requests that can be in flight"
|
|
|
|
default 4
|
|
|
|
---help---
|
|
|
|
The number of write/read requests that can be in flight
|
|
|
|
config USBMSC_NRDREQS
|
|
|
|
int "The number of read requests that can be in flight"
|
|
|
|
default 4
|
|
|
|
---help---
|
|
|
|
The number of write/read requests that can be in flight
|
|
|
|
|
|
|
|
config USBMSC_BULKINREQLEN
|
|
|
|
int "Bulk in request size"
|
|
|
|
default 512
|
|
|
|
|
|
|
|
config USBMSC_BULKOUTREQLEN
|
|
|
|
int "Bulk out request size"
|
|
|
|
default 512
|
|
|
|
---help---
|
|
|
|
The size of the buffer in each write/read request. This
|
|
|
|
value needs to be at least as large as the endpoint
|
|
|
|
maxpacket and ideally as large as a block device sector.
|
|
|
|
|
|
|
|
config USBMSC_VENDORID
|
2013-09-06 21:07:29 +02:00
|
|
|
hex "Mass storage Vendor ID"
|
2013-09-07 18:12:02 +02:00
|
|
|
default 0x584e
|
|
|
|
---help---
|
|
|
|
The vendor ID (VID). The value here is bogus. You should not use
|
|
|
|
it in any commercial products! You must go through the proper
|
|
|
|
channels to request a vendor ID for your company if you do not
|
|
|
|
already have one!
|
|
|
|
|
2012-04-13 16:27:44 +02:00
|
|
|
config USBMSC_VENDORSTR
|
2013-09-06 21:07:29 +02:00
|
|
|
string "Mass storage vendor string"
|
2012-04-13 16:27:44 +02:00
|
|
|
default "Nuttx"
|
|
|
|
---help---
|
|
|
|
The vendor ID code/string
|
|
|
|
|
|
|
|
config USBMSC_PRODUCTID
|
2013-09-06 21:07:29 +02:00
|
|
|
hex "Mass storage Product ID"
|
2013-09-07 18:12:02 +02:00
|
|
|
default 0x5342
|
|
|
|
---help---
|
|
|
|
The product ID (PID).
|
2012-04-13 16:27:44 +02:00
|
|
|
|
|
|
|
config USBMSC_PRODUCTSTR
|
2013-01-29 14:30:10 +01:00
|
|
|
string "Mass storage product string"
|
|
|
|
default "Mass Storage"
|
2012-04-13 16:27:44 +02:00
|
|
|
|
2012-09-11 00:26:37 +02:00
|
|
|
config USBMSC_VERSIONNO
|
|
|
|
hex "USB MSC Version Number"
|
|
|
|
default "0x399"
|
|
|
|
|
2012-04-13 16:27:44 +02:00
|
|
|
config USBMSC_REMOVABLE
|
2013-09-06 21:07:29 +02:00
|
|
|
bool "Mass storage remove able"
|
2012-04-13 16:27:44 +02:00
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Select if the media is removable
|
|
|
|
USB Composite Device Configuration
|
|
|
|
endif
|