mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
USB bulk storage configuration settings
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1064 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
</b></big></h1>
|
</b></big></h1>
|
||||||
<p><small>by</small></p>
|
<p><small>by</small></p>
|
||||||
<p>Gregory Nutt</p>
|
<p>Gregory Nutt</p>
|
||||||
<p><small>Last Update: October 9, 2008</small></p>
|
<p><small>Last Update: October 22, 2008</small></p>
|
||||||
</center>
|
</center>
|
||||||
|
|
||||||
<center><h1>Table of Contents</h1></center>
|
<center><h1>Table of Contents</h1></center>
|
||||||
@@ -1678,6 +1678,40 @@ The system can be re-made subsequently by just typing <code>make</code>.
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
<h3>USB Storage Device Configuration</h3>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<code>CONFIG_USBSTRG_EP0MAXPACKET</code>:
|
||||||
|
Max packet size for endpoint 0
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<code>CONFIG_USBSTRGEPBULKOUT</code> and <code>CONFIG_USBSTRG_EPBULKIN</code>:
|
||||||
|
The logical 7-bit address of a hardware endpoints that support bulk OUT and IN operations
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<code>CONFIG_USBSTRG_NWRREQS</code> and <code>CONFIG_USBSTRG_NRDREQS</code>:
|
||||||
|
The number of write/read requests that can be in flight
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<code>CONFIG_USBSTRG_BULKINREQLEN</code> and <code>CONFIG_USBSTRG_BULKOUTREQLEN</code>:
|
||||||
|
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.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<code>CONFIG_USBSTRG_VENDORID</code> and <code>CONFIG_USBSTRG_VENDORSTR</code>:
|
||||||
|
The vendor ID code/string
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<code>CONFIG_USBSTRG_PRODUCTID</code> and <code>CONFIG_USBSTRG_PRODUCTSTR</code>:
|
||||||
|
The product ID code/string
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<code>CONFIG_USBSTRG_REMOVABLE</code>:
|
||||||
|
Select if the media is removable
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
<h2>Stack and heap information</h2>
|
<h2>Stack and heap information</h2>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
|
|||||||
@@ -321,6 +321,26 @@ defconfig -- This is a configuration file similar to the Linux
|
|||||||
CONFIG_USBSER_RXBUFSIZE and CONFIG_USBSER_TXBUFSIZE
|
CONFIG_USBSER_RXBUFSIZE and CONFIG_USBSER_TXBUFSIZE
|
||||||
Size of the serial receive/transmit buffers
|
Size of the serial receive/transmit buffers
|
||||||
|
|
||||||
|
USB Storage Device Configuration
|
||||||
|
|
||||||
|
CONFIG_USBSTRG_EP0MAXPACKET
|
||||||
|
Max packet size for endpoint 0
|
||||||
|
CONFIG_USBSTRGEPBULKOUT and CONFIG_USBSTRG_EPBULKIN
|
||||||
|
The logical 7-bit address of a hardware endpoints that support
|
||||||
|
bulk OUT and IN operations
|
||||||
|
CONFIG_USBSTRG_NWRREQS and CONFIG_USBSTRG_NRDREQS
|
||||||
|
The number of write/read requests that can be in flight
|
||||||
|
CONFIG_USBSTRG_BULKINREQLEN and CONFIG_USBSTRG_BULKOUTREQLEN
|
||||||
|
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_USBSTRG_VENDORID and CONFIG_USBSTRG_VENDORSTR
|
||||||
|
The vendor ID code/string
|
||||||
|
CONFIG_USBSTRG_PRODUCTID and CONFIG_USBSTRG_PRODUCTSTR
|
||||||
|
The product ID code/string
|
||||||
|
CONFIG_USBSTRG_REMOVABLE
|
||||||
|
Select if the media is removable
|
||||||
|
|
||||||
Stack and heap information
|
Stack and heap information
|
||||||
|
|
||||||
CONFIG_BOOT_FROM_FLASH - Some configurations support XIP
|
CONFIG_BOOT_FROM_FLASH - Some configurations support XIP
|
||||||
|
|||||||
@@ -428,13 +428,38 @@ CONFIG_USBSER_RXBUFSIZE=512
|
|||||||
CONFIG_USBSER_TXBUFSIZE=512
|
CONFIG_USBSER_TXBUFSIZE=512
|
||||||
|
|
||||||
#
|
#
|
||||||
# USB Device Zero Configuration
|
# USB Storage Device Configuration
|
||||||
# CONFIG_USBZERO_VENDORID
|
#
|
||||||
# The vendor ID code
|
# CONFIG_USBSTRG_EP0MAXPACKET
|
||||||
# CONFIG_USBZERO_PRODUCTID
|
# Max packet size for endpoint 0
|
||||||
# The product ID code
|
# CONFIG_USBSTRG_EPBULKOUT and CONFIG_USBSTRG_EPBULKIN
|
||||||
ONFIG_USBZERO_VENDORID=0x0525
|
# The logical 7-bit address of a hardware endpoints that support
|
||||||
CONFIG_USBZERO_PRODUCTID=0xa4a0
|
# bulk OUT and IN operations
|
||||||
|
# CONFIG_USBSTRG_NWRREQS and CONFIG_USBSTRG_NRDREQS
|
||||||
|
# The number of write/read requests that can be in flight
|
||||||
|
# CONFIG_USBSTRG_BULKINREQLEN and CONFIG_USBSTRG_BULKOUTREQLEN
|
||||||
|
# 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_USBSTRG_VENDORID and CONFIG_USBSTRG_VENDORSTR
|
||||||
|
# The vendor ID code/string
|
||||||
|
# CONFIG_USBSTRG_PRODUCTID and CONFIG_USBSTRG_PRODUCTSTR
|
||||||
|
# The product ID code/string
|
||||||
|
# CONFIG_USBSTRG_REMOVABLE
|
||||||
|
# Select if the media is removable
|
||||||
|
CONFIG_USBSTRG_EP0MAXPACKET=64
|
||||||
|
CONFIG_USBSTRG_EPBULKOUT=2
|
||||||
|
CONFIG_USBSTRG_EPBULKIN=5
|
||||||
|
CONFIG_USBSTRG_NRDREQS=2
|
||||||
|
CONFIG_USBSTRG_NWRREQS=2
|
||||||
|
CONFIG_USBSTRG_BULKINREQLEN=256
|
||||||
|
CONFIG_USBSTRG_BULKOUTREQLEN=256
|
||||||
|
CONFIG_USBSTRG_VENDORID=0x584e
|
||||||
|
CONFIG_USBSTRG_VENDORSTR="NuttX"
|
||||||
|
CONFIG_USBSTRG_PRODUCTID=0x5342
|
||||||
|
CONFIG_USBSTRG_PRODUCTSTR="USBdev Storage"
|
||||||
|
CONFIG_USBSTRG_VERSIONNO=0x0399
|
||||||
|
CONFIG_USBSTRG_REMOVABLE=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# Settings for examples/ostest
|
# Settings for examples/ostest
|
||||||
|
|||||||
@@ -423,13 +423,38 @@ CONFIG_USBSER_RXBUFSIZE=512
|
|||||||
CONFIG_USBSER_TXBUFSIZE=512
|
CONFIG_USBSER_TXBUFSIZE=512
|
||||||
|
|
||||||
#
|
#
|
||||||
# USB Device Zero Configuration
|
# USB Storage Device Configuration
|
||||||
# CONFIG_USBZERO_VENDORID
|
#
|
||||||
# The vendor ID code
|
# CONFIG_USBSTRG_EP0MAXPACKET
|
||||||
# CONFIG_USBZERO_PRODUCTID
|
# Max packet size for endpoint 0
|
||||||
# The product ID code
|
# CONFIG_USBSTRG_EPBULKOUT and CONFIG_USBSTRG_EPBULKIN
|
||||||
CONFIG_USBZERO_VENDORID=0x0525
|
# The logical 7-bit address of a hardware endpoints that support
|
||||||
CONFIG_USBZERO_PRODUCTID=0xa4a0
|
# bulk OUT and IN operations
|
||||||
|
# CONFIG_USBSTRG_NWRREQS and CONFIG_USBSTRG_NRDREQS
|
||||||
|
# The number of write/read requests that can be in flight
|
||||||
|
# CONFIG_USBSTRG_BULKINREQLEN and CONFIG_USBSTRG_BULKOUTREQLEN
|
||||||
|
# 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_USBSTRG_VENDORID and CONFIG_USBSTRG_VENDORSTR
|
||||||
|
# The vendor ID code/string
|
||||||
|
# CONFIG_USBSTRG_PRODUCTID and CONFIG_USBSTRG_PRODUCTSTR
|
||||||
|
# The product ID code/string
|
||||||
|
# CONFIG_USBSTRG_REMOVABLE
|
||||||
|
# Select if the media is removable
|
||||||
|
CONFIG_USBSTRG_EP0MAXPACKET=64
|
||||||
|
CONFIG_USBSTRG_EPBULKOUT=2
|
||||||
|
CONFIG_USBSTRG_EPBULKIN=5
|
||||||
|
CONFIG_USBSTRG_NRDREQS=2
|
||||||
|
CONFIG_USBSTRG_NWRREQS=2
|
||||||
|
CONFIG_USBSTRG_BULKINREQLEN=256
|
||||||
|
CONFIG_USBSTRG_BULKOUTREQLEN=256
|
||||||
|
CONFIG_USBSTRG_VENDORID=0x584e
|
||||||
|
CONFIG_USBSTRG_VENDORSTR="NuttX"
|
||||||
|
CONFIG_USBSTRG_PRODUCTID=0x5342
|
||||||
|
CONFIG_USBSTRG_PRODUCTSTR="USBdev Storage"
|
||||||
|
CONFIG_USBSTRG_VERSIONNO=0x0399
|
||||||
|
CONFIG_USBSTRG_REMOVABLE=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# Settings for examples/ostest
|
# Settings for examples/ostest
|
||||||
|
|||||||
@@ -424,13 +424,38 @@ CONFIG_USBSER_RXBUFSIZE=512
|
|||||||
CONFIG_USBSER_TXBUFSIZE=512
|
CONFIG_USBSER_TXBUFSIZE=512
|
||||||
|
|
||||||
#
|
#
|
||||||
# USB Device Zero Configuration
|
# USB Storage Device Configuration
|
||||||
# CONFIG_USBZERO_VENDORID
|
#
|
||||||
# The vendor ID code
|
# CONFIG_USBSTRG_EP0MAXPACKET
|
||||||
# CONFIG_USBZERO_PRODUCTID
|
# Max packet size for endpoint 0
|
||||||
# The product ID code
|
# CONFIG_USBSTRG_EPBULKOUT and CONFIG_USBSTRG_EPBULKIN
|
||||||
ONFIG_USBZERO_VENDORID=0x0525
|
# The logical 7-bit address of a hardware endpoints that support
|
||||||
CONFIG_USBZERO_PRODUCTID=0xa4a0
|
# bulk OUT and IN operations
|
||||||
|
# CONFIG_USBSTRG_NWRREQS and CONFIG_USBSTRG_NRDREQS
|
||||||
|
# The number of write/read requests that can be in flight
|
||||||
|
# CONFIG_USBSTRG_BULKINREQLEN and CONFIG_USBSTRG_BULKOUTREQLEN
|
||||||
|
# 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_USBSTRG_VENDORID and CONFIG_USBSTRG_VENDORSTR
|
||||||
|
# The vendor ID code/string
|
||||||
|
# CONFIG_USBSTRG_PRODUCTID and CONFIG_USBSTRG_PRODUCTSTR
|
||||||
|
# The product ID code/string
|
||||||
|
# CONFIG_USBSTRG_REMOVABLE
|
||||||
|
# Select if the media is removable
|
||||||
|
CONFIG_USBSTRG_EP0MAXPACKET=64
|
||||||
|
CONFIG_USBSTRG_EPBULKOUT=2
|
||||||
|
CONFIG_USBSTRG_EPBULKIN=5
|
||||||
|
CONFIG_USBSTRG_NRDREQS=2
|
||||||
|
CONFIG_USBSTRG_NWRREQS=2
|
||||||
|
CONFIG_USBSTRG_BULKINREQLEN=256
|
||||||
|
CONFIG_USBSTRG_BULKOUTREQLEN=256
|
||||||
|
CONFIG_USBSTRG_VENDORID=0x584e
|
||||||
|
CONFIG_USBSTRG_VENDORSTR="NuttX"
|
||||||
|
CONFIG_USBSTRG_PRODUCTID=0x5342
|
||||||
|
CONFIG_USBSTRG_PRODUCTSTR="USBdev Storage"
|
||||||
|
CONFIG_USBSTRG_VERSIONNO=0x0399
|
||||||
|
CONFIG_USBSTRG_REMOVABLE=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# Settings for examples/ostest
|
# Settings for examples/ostest
|
||||||
|
|||||||
@@ -367,6 +367,7 @@ CONFIG_USBDEV_REMOTEWAKEUP=n
|
|||||||
CONFIG_USBDEV_MAXPOWER=100
|
CONFIG_USBDEV_MAXPOWER=100
|
||||||
CONFIG_USBDEV_TRACE=n
|
CONFIG_USBDEV_TRACE=n
|
||||||
CONFIG_USBDEV_TRACE_NRECORDS=128
|
CONFIG_USBDEV_TRACE_NRECORDS=128
|
||||||
|
|
||||||
#
|
#
|
||||||
# LPC214X USB Configuration
|
# LPC214X USB Configuration
|
||||||
#
|
#
|
||||||
@@ -456,15 +457,6 @@ CONFIG_USBSTRG_PRODUCTSTR="USBdev Storage"
|
|||||||
CONFIG_USBSTRG_VERSIONNO=0x0399
|
CONFIG_USBSTRG_VERSIONNO=0x0399
|
||||||
CONFIG_USBSTRG_REMOVABLE=y
|
CONFIG_USBSTRG_REMOVABLE=y
|
||||||
|
|
||||||
#
|
|
||||||
# USB Device Zero Configuration
|
|
||||||
# CONFIG_USBZERO_VENDORID
|
|
||||||
# The vendor ID code
|
|
||||||
# CONFIG_USBZERO_PRODUCTID
|
|
||||||
# The product ID code
|
|
||||||
ONFIG_USBZERO_VENDORID=0x0525
|
|
||||||
CONFIG_USBZERO_PRODUCTID=0xa4a0
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Settings for examples/ostest
|
# Settings for examples/ostest
|
||||||
CONFIG_EXAMPLES_OSTEST_LOOPS=1
|
CONFIG_EXAMPLES_OSTEST_LOOPS=1
|
||||||
|
|||||||
@@ -391,13 +391,38 @@ CONFIG_USBSER_RXBUFSIZE=512
|
|||||||
CONFIG_USBSER_TXBUFSIZE=512
|
CONFIG_USBSER_TXBUFSIZE=512
|
||||||
|
|
||||||
#
|
#
|
||||||
# USB Device Zero Configuration
|
# USB Storage Device Configuration
|
||||||
# CONFIG_USBZERO_VENDORID
|
#
|
||||||
# The vendor ID code
|
# CONFIG_USBSTRG_EP0MAXPACKET
|
||||||
# CONFIG_USBZERO_PRODUCTID
|
# Max packet size for endpoint 0
|
||||||
# The product ID code
|
# CONFIG_USBSTRG_EPBULKOUT and CONFIG_USBSTRG_EPBULKIN
|
||||||
CONFIG_USBZERO_VENDORID=0x0525
|
# The logical 7-bit address of a hardware endpoints that support
|
||||||
CONFIG_USBZERO_PRODUCTID=0xa4a0
|
# bulk OUT and IN operations
|
||||||
|
# CONFIG_USBSTRG_NWRREQS and CONFIG_USBSTRG_NRDREQS
|
||||||
|
# The number of write/read requests that can be in flight
|
||||||
|
# CONFIG_USBSTRG_BULKINREQLEN and CONFIG_USBSTRG_BULKOUTREQLEN
|
||||||
|
# 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_USBSTRG_VENDORID and CONFIG_USBSTRG_VENDORSTR
|
||||||
|
# The vendor ID code/string
|
||||||
|
# CONFIG_USBSTRG_PRODUCTID and CONFIG_USBSTRG_PRODUCTSTR
|
||||||
|
# The product ID code/string
|
||||||
|
# CONFIG_USBSTRG_REMOVABLE
|
||||||
|
# Select if the media is removable
|
||||||
|
CONFIG_USBSTRG_EP0MAXPACKET=64
|
||||||
|
CONFIG_USBSTRG_EPBULKOUT=2
|
||||||
|
CONFIG_USBSTRG_EPBULKIN=1
|
||||||
|
CONFIG_USBSTRG_NRDREQS=2
|
||||||
|
CONFIG_USBSTRG_NWRREQS=2
|
||||||
|
CONFIG_USBSTRG_BULKINREQLEN=256
|
||||||
|
CONFIG_USBSTRG_BULKOUTREQLEN=256
|
||||||
|
CONFIG_USBSTRG_VENDORID=0x584e
|
||||||
|
CONFIG_USBSTRG_VENDORSTR="NuttX"
|
||||||
|
CONFIG_USBSTRG_PRODUCTID=0x5342
|
||||||
|
CONFIG_USBSTRG_PRODUCTSTR="USBdev Storage"
|
||||||
|
CONFIG_USBSTRG_VERSIONNO=0x0399
|
||||||
|
CONFIG_USBSTRG_REMOVABLE=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# Settings for examples/uip
|
# Settings for examples/uip
|
||||||
|
|||||||
@@ -399,13 +399,38 @@ CONFIG_USBSER_RXBUFSIZE=512
|
|||||||
CONFIG_USBSER_TXBUFSIZE=512
|
CONFIG_USBSER_TXBUFSIZE=512
|
||||||
|
|
||||||
#
|
#
|
||||||
# USB Device Zero Configuration
|
# USB Storage Device Configuration
|
||||||
# CONFIG_USBZERO_VENDORID
|
#
|
||||||
# The vendor ID code
|
# CONFIG_USBSTRG_EP0MAXPACKET
|
||||||
# CONFIG_USBZERO_PRODUCTID
|
# Max packet size for endpoint 0
|
||||||
# The product ID code
|
# CONFIG_USBSTRG_EPBULKOUT and CONFIG_USBSTRG_EPBULKIN
|
||||||
CONFIG_USBZERO_VENDORID=0x0525
|
# The logical 7-bit address of a hardware endpoints that support
|
||||||
CONFIG_USBZERO_PRODUCTID=0xa4a0
|
# bulk OUT and IN operations
|
||||||
|
# CONFIG_USBSTRG_NWRREQS and CONFIG_USBSTRG_NRDREQS
|
||||||
|
# The number of write/read requests that can be in flight
|
||||||
|
# CONFIG_USBSTRG_BULKINREQLEN and CONFIG_USBSTRG_BULKOUTREQLEN
|
||||||
|
# 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_USBSTRG_VENDORID and CONFIG_USBSTRG_VENDORSTR
|
||||||
|
# The vendor ID code/string
|
||||||
|
# CONFIG_USBSTRG_PRODUCTID and CONFIG_USBSTRG_PRODUCTSTR
|
||||||
|
# The product ID code/string
|
||||||
|
# CONFIG_USBSTRG_REMOVABLE
|
||||||
|
# Select if the media is removable
|
||||||
|
CONFIG_USBSTRG_EP0MAXPACKET=64
|
||||||
|
CONFIG_USBSTRG_EPBULKOUT=2
|
||||||
|
CONFIG_USBSTRG_EPBULKIN=1
|
||||||
|
CONFIG_USBSTRG_NRDREQS=2
|
||||||
|
CONFIG_USBSTRG_NWRREQS=2
|
||||||
|
CONFIG_USBSTRG_BULKINREQLEN=256
|
||||||
|
CONFIG_USBSTRG_BULKOUTREQLEN=256
|
||||||
|
CONFIG_USBSTRG_VENDORID=0x584e
|
||||||
|
CONFIG_USBSTRG_VENDORSTR="NuttX"
|
||||||
|
CONFIG_USBSTRG_PRODUCTID=0x5342
|
||||||
|
CONFIG_USBSTRG_PRODUCTSTR="USBdev Storage"
|
||||||
|
CONFIG_USBSTRG_VERSIONNO=0x0399
|
||||||
|
CONFIG_USBSTRG_REMOVABLE=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# Settings for examples/uip
|
# Settings for examples/uip
|
||||||
|
|||||||
@@ -391,13 +391,38 @@ CONFIG_USBSER_RXBUFSIZE=512
|
|||||||
CONFIG_USBSER_TXBUFSIZE=512
|
CONFIG_USBSER_TXBUFSIZE=512
|
||||||
|
|
||||||
#
|
#
|
||||||
# USB Device Zero Configuration
|
# USB Storage Device Configuration
|
||||||
# CONFIG_USBZERO_VENDORID
|
#
|
||||||
# The vendor ID code
|
# CONFIG_USBSTRG_EP0MAXPACKET
|
||||||
# CONFIG_USBZERO_PRODUCTID
|
# Max packet size for endpoint 0
|
||||||
# The product ID code
|
# CONFIG_USBSTRG_EPBULKOUT and CONFIG_USBSTRG_EPBULKIN
|
||||||
CONFIG_USBZERO_VENDORID=0x0525
|
# The logical 7-bit address of a hardware endpoints that support
|
||||||
CONFIG_USBZERO_PRODUCTID=0xa4a0
|
# bulk OUT and IN operations
|
||||||
|
# CONFIG_USBSTRG_NWRREQS and CONFIG_USBSTRG_NRDREQS
|
||||||
|
# The number of write/read requests that can be in flight
|
||||||
|
# CONFIG_USBSTRG_BULKINREQLEN and CONFIG_USBSTRG_BULKOUTREQLEN
|
||||||
|
# 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_USBSTRG_VENDORID and CONFIG_USBSTRG_VENDORSTR
|
||||||
|
# The vendor ID code/string
|
||||||
|
# CONFIG_USBSTRG_PRODUCTID and CONFIG_USBSTRG_PRODUCTSTR
|
||||||
|
# The product ID code/string
|
||||||
|
# CONFIG_USBSTRG_REMOVABLE
|
||||||
|
# Select if the media is removable
|
||||||
|
CONFIG_USBSTRG_EP0MAXPACKET=64
|
||||||
|
CONFIG_USBSTRG_EPBULKOUT=2
|
||||||
|
CONFIG_USBSTRG_EPBULKIN=1
|
||||||
|
CONFIG_USBSTRG_NRDREQS=2
|
||||||
|
CONFIG_USBSTRG_NWRREQS=2
|
||||||
|
CONFIG_USBSTRG_BULKINREQLEN=256
|
||||||
|
CONFIG_USBSTRG_BULKOUTREQLEN=256
|
||||||
|
CONFIG_USBSTRG_VENDORID=0x584e
|
||||||
|
CONFIG_USBSTRG_VENDORSTR="NuttX"
|
||||||
|
CONFIG_USBSTRG_PRODUCTID=0x5342
|
||||||
|
CONFIG_USBSTRG_PRODUCTSTR="USBdev Storage"
|
||||||
|
CONFIG_USBSTRG_VERSIONNO=0x0399
|
||||||
|
CONFIG_USBSTRG_REMOVABLE=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# Settings for examples/uip
|
# Settings for examples/uip
|
||||||
|
|||||||
@@ -391,13 +391,38 @@ CONFIG_USBSER_RXBUFSIZE=512
|
|||||||
CONFIG_USBSER_TXBUFSIZE=512
|
CONFIG_USBSER_TXBUFSIZE=512
|
||||||
|
|
||||||
#
|
#
|
||||||
# USB Device Zero Configuration
|
# USB Storage Device Configuration
|
||||||
# CONFIG_USBZERO_VENDORID
|
#
|
||||||
# The vendor ID code
|
# CONFIG_USBSTRG_EP0MAXPACKET
|
||||||
# CONFIG_USBZERO_PRODUCTID
|
# Max packet size for endpoint 0
|
||||||
# The product ID code
|
# CONFIG_USBSTRG_EPBULKOUT and CONFIG_USBSTRG_EPBULKIN
|
||||||
CONFIG_USBZERO_VENDORID=0x0525
|
# The logical 7-bit address of a hardware endpoints that support
|
||||||
CONFIG_USBZERO_PRODUCTID=0xa4a0
|
# bulk OUT and IN operations
|
||||||
|
# CONFIG_USBSTRG_NWRREQS and CONFIG_USBSTRG_NRDREQS
|
||||||
|
# The number of write/read requests that can be in flight
|
||||||
|
# CONFIG_USBSTRG_BULKINREQLEN and CONFIG_USBSTRG_BULKOUTREQLEN
|
||||||
|
# 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_USBSTRG_VENDORID and CONFIG_USBSTRG_VENDORSTR
|
||||||
|
# The vendor ID code/string
|
||||||
|
# CONFIG_USBSTRG_PRODUCTID and CONFIG_USBSTRG_PRODUCTSTR
|
||||||
|
# The product ID code/string
|
||||||
|
# CONFIG_USBSTRG_REMOVABLE
|
||||||
|
# Select if the media is removable
|
||||||
|
CONFIG_USBSTRG_EP0MAXPACKET=64
|
||||||
|
CONFIG_USBSTRG_EPBULKOUT=2
|
||||||
|
CONFIG_USBSTRG_EPBULKIN=1
|
||||||
|
CONFIG_USBSTRG_NRDREQS=2
|
||||||
|
CONFIG_USBSTRG_NWRREQS=2
|
||||||
|
CONFIG_USBSTRG_BULKINREQLEN=256
|
||||||
|
CONFIG_USBSTRG_BULKOUTREQLEN=256
|
||||||
|
CONFIG_USBSTRG_VENDORID=0x584e
|
||||||
|
CONFIG_USBSTRG_VENDORSTR="NuttX"
|
||||||
|
CONFIG_USBSTRG_PRODUCTID=0x5342
|
||||||
|
CONFIG_USBSTRG_PRODUCTSTR="USBdev Storage"
|
||||||
|
CONFIG_USBSTRG_VERSIONNO=0x0399
|
||||||
|
CONFIG_USBSTRG_REMOVABLE=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# Settings for examples/uip
|
# Settings for examples/uip
|
||||||
|
|||||||
@@ -391,13 +391,38 @@ CONFIG_USBSER_RXBUFSIZE=512
|
|||||||
CONFIG_USBSER_TXBUFSIZE=512
|
CONFIG_USBSER_TXBUFSIZE=512
|
||||||
|
|
||||||
#
|
#
|
||||||
# USB Device Zero Configuration
|
# USB Storage Device Configuration
|
||||||
# CONFIG_USBZERO_VENDORID
|
#
|
||||||
# The vendor ID code
|
# CONFIG_USBSTRG_EP0MAXPACKET
|
||||||
# CONFIG_USBZERO_PRODUCTID
|
# Max packet size for endpoint 0
|
||||||
# The product ID code
|
# CONFIG_USBSTRG_EPBULKOUT and CONFIG_USBSTRG_EPBULKIN
|
||||||
CONFIG_USBZERO_VENDORID=0x0525
|
# The logical 7-bit address of a hardware endpoints that support
|
||||||
CONFIG_USBZERO_PRODUCTID=0xa4a0
|
# bulk OUT and IN operations
|
||||||
|
# CONFIG_USBSTRG_NWRREQS and CONFIG_USBSTRG_NRDREQS
|
||||||
|
# The number of write/read requests that can be in flight
|
||||||
|
# CONFIG_USBSTRG_BULKINREQLEN and CONFIG_USBSTRG_BULKOUTREQLEN
|
||||||
|
# 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_USBSTRG_VENDORID and CONFIG_USBSTRG_VENDORSTR
|
||||||
|
# The vendor ID code/string
|
||||||
|
# CONFIG_USBSTRG_PRODUCTID and CONFIG_USBSTRG_PRODUCTSTR
|
||||||
|
# The product ID code/string
|
||||||
|
# CONFIG_USBSTRG_REMOVABLE
|
||||||
|
# Select if the media is removable
|
||||||
|
CONFIG_USBSTRG_EP0MAXPACKET=64
|
||||||
|
CONFIG_USBSTRG_EPBULKOUT=2
|
||||||
|
CONFIG_USBSTRG_EPBULKIN=1
|
||||||
|
CONFIG_USBSTRG_NRDREQS=2
|
||||||
|
CONFIG_USBSTRG_NWRREQS=2
|
||||||
|
CONFIG_USBSTRG_BULKINREQLEN=256
|
||||||
|
CONFIG_USBSTRG_BULKOUTREQLEN=256
|
||||||
|
CONFIG_USBSTRG_VENDORID=0x584e
|
||||||
|
CONFIG_USBSTRG_VENDORSTR="NuttX"
|
||||||
|
CONFIG_USBSTRG_PRODUCTID=0x5342
|
||||||
|
CONFIG_USBSTRG_PRODUCTSTR="USBdev Storage"
|
||||||
|
CONFIG_USBSTRG_VERSIONNO=0x0399
|
||||||
|
CONFIG_USBSTRG_REMOVABLE=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# Settings for examples/uip
|
# Settings for examples/uip
|
||||||
|
|||||||
Reference in New Issue
Block a user