summaryrefslogtreecommitdiff
path: root/apps/examples/README.txt
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-01-26 23:14:27 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-01-26 23:14:27 +0000
commit8f6700143c5b021a5a1bd3e21a8c20f177e8e9f2 (patch)
tree4bd1111e23d7cdb1b43685aa7f699c694f7c8d7f /apps/examples/README.txt
parentc1f3ba20b6959401b4e259c13c80d9fbd4a50f2c (diff)
downloadpx4-nuttx-8f6700143c5b021a5a1bd3e21a8c20f177e8e9f2.tar.gz
px4-nuttx-8f6700143c5b021a5a1bd3e21a8c20f177e8e9f2.tar.bz2
px4-nuttx-8f6700143c5b021a5a1bd3e21a8c20f177e8e9f2.zip
Add a text for the new composite USB device
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4341 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/examples/README.txt')
-rw-r--r--apps/examples/README.txt67
1 files changed, 66 insertions, 1 deletions
diff --git a/apps/examples/README.txt b/apps/examples/README.txt
index b123a9d7e..136e0b57d 100644
--- a/apps/examples/README.txt
+++ b/apps/examples/README.txt
@@ -110,6 +110,71 @@ examples/can
built-in, the default is 32. Otherwise messages are sent and received
indefinitely.
+examples/composite
+^^^^^^^^^^^^^^^^^^
+
+ This example test a USB composite device. The only supported composite is
+ CDC/ACM serial with a USB mass storage device.
+
+ Required overall configuration:
+
+ CONFIG_USBDEV - USB device support
+ CONFIG_USBDEV_COMPOSITE - USB composite device support
+ CONFIG_CDCACM - USB CDC/ACM serial device support
+ CONFIG_CDCACM_COMPOSITE - USB CDC/ACM serial composite device support
+ CONFIG_USBMSC - USB mass storage device support
+ CONFIG_USBMSC_COMPOSITE - USB mass storage composite device support
+
+ CONFIG_NSH_BUILTIN_APPS
+ This example can be built as two NSH "built-in" commands if this option
+ is selected: 'msconn' will connect the USB mass storage device; 'msdis'
+ will disconnect the USB storage device.
+
+ Configuration options unique to this example:
+
+ CONFIG_EXAMPLES_COMPOSITE_DEBUGMM
+ Enables some debug tests to check for memory usage and memory leaks.
+
+ CONFIG_EXAMPLES_COMPOSITE_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. Default is 1.
+ CONFIG_EXAMPLES_COMPOSITE_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. Default
+ is zero.
+ CONFIG_EXAMPLES_COMPOSITE_DEVPATH1
+ The full path to the registered block driver. Default is "/dev/mmcsd0"
+ CONFIG_EXAMPLES_COMPOSITE_DEVMINOR2 and CONFIG_EXAMPLES_COMPOSITE_DEVPATH2
+ Similar parameters that would have to be provided if CONFIG_EXAMPLES_COMPOSITE_NLUNS
+ is 2 or 3. No defaults.
+ CONFIG_EXAMPLES_COMPOSITE_DEVMINOR3 and CONFIG_EXAMPLES_COMPOSITE_DEVPATH2
+ Similar parameters that would have to be provided if CONFIG_EXAMPLES_COMPOSITE_NLUNS
+ is 3. No defaults.
+ CONFIG_EXAMPLES_COMPOSITE_BUFLEN. Default 256.
+
+ CONFIG_EXAMPLES_COMPOSITE_TTYUSB - The minor number of the USB serial device.
+ Default is zero (corresponding to /dev/ttyUSB0. Default is zero.
+ CCONFIG_EXAMPLES_COMPOSITE_SERDEV - The string corresponding to
+ CONFIG_EXAMPLES_COMPOSITE_TTYUSB. The default is "/dev/ttyUSB0".
+ CONFIG_EXAMPLES_COMPOSITE_BUFSIZE - The size of the serial I/O buffer in
+ bytes. Default 256 byters.
+
+ If CONFIG_USBDEV_TRACE is enabled (or CONFIG_DEBUG and CONFIG_DEBUG_USB), then
+ the example code will also manage the USB trace output. The amount of trace output
+ can be controlled using:
+
+ CONFIG_EXAMPLES_COMPOSITE_TRACEINIT
+ Show initialization events
+ CONFIG_EXAMPLES_COMPOSITE_TRACECLASS
+ Show class driver events
+ CONFIG_EXAMPLES_COMPOSITE_TRACETRANSFERS
+ Show data transfer events
+ CONFIG_EXAMPLES_COMPOSITE_TRACECONTROLLER
+ Show controller events
+ CONFIG_EXAMPLES_COMPOSITE_TRACEINTERRUPTS
+ Show interrupt-related events.
+
examples/dhcpd
^^^^^^^^^^^^^^
@@ -1046,7 +1111,7 @@ examples/usbstorage
CONFIG_EXAMPLES_USBMSC_BUILTIN
This example can be built as two NSH "built-in" commands if this option
- is selection: 'msconn' will connect the USB mass storage device; 'msdis'
+ is selected: 'msconn' will connect the USB mass storage device; 'msdis'
will disconnect the USB storage device.
CONFIG_EXAMPLES_USBMSC_NLUNS
Defines the number of logical units (LUNs) exported by the USB storage