summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-10-23 00:53:55 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-10-23 00:53:55 +0000
commitca1717faa421c41b1647f40c88005302e793ce56 (patch)
tree45406ebdd2583b2faf26648c83aaae62fba7a424
parent800f2137e171f6b130ec07a662d21ca1e271230f (diff)
downloadnuttx-ca1717faa421c41b1647f40c88005302e793ce56.tar.gz
nuttx-ca1717faa421c41b1647f40c88005302e793ce56.tar.bz2
nuttx-ca1717faa421c41b1647f40c88005302e793ce56.zip
Add description of examples/usbstorage
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1067 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r--nuttx/examples/README.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/nuttx/examples/README.txt b/nuttx/examples/README.txt
index ba13f16ef..8625bceb0 100644
--- a/nuttx/examples/README.txt
+++ b/nuttx/examples/README.txt
@@ -140,4 +140,24 @@ examples/usbserial
CONFIG_EXAMPLES_USBSERIAL_ONLYBIG
Send only large, multi-packet messages. Default: Send large and small.
+examples/usbstorage
+^^^^^^^^^^^^^^^^^^
+ This example registers a block device driver, then exports the block
+ the device using the USB storage class driver. Configuration options:
+
+ CONFIG_EXAMPLES_USBSTRG_NLUNS
+ Defines the number of logical units (LUNs) exported by the USB storage
+ driver. Each LUN corresponds to one exported block driver (or partition
+ of a block driver). May be 1, 2, or 3.
+ CONFIG_EXAMPLES_USBSTRG_DEVMINOR1
+ The minor device number of the block driver for the first LUN. For
+ example, N in /dev/mmcsdN. Used for registering the block driver.
+ CONFIG_EXAMPLES_USBSTRG_DEVPATH1
+ The full path to the registered block driver. Example, "/dev/mmcsd0"
+ CONFIG_EXAMPLES_USBSTRG_DEVMINOR2 and CONFIG_EXAMPLES_USBSTRG_DEVPATH2
+ Similar parameters that would have to be provided if CONFIG_EXAMPLES_USBSTRG_NLUNS
+ is 2 or 3.
+ CONFIG_EXAMPLES_USBSTRG_DEVMINOR3 and CONFIG_EXAMPLES_USBSTRG_DEVPATH3
+ Similar parameters that would have to be provided if CONFIG_EXAMPLES_USBSTRG_NLUNS
+ is 3.