summaryrefslogtreecommitdiff
path: root/apps/examples/README.txt
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-02-28 18:14:55 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-02-28 18:14:55 +0000
commit6875348aa9e7edca7e3404cf25135ded052cde5c (patch)
tree299af02425127a965549141a2b9155d43e99e52a /apps/examples/README.txt
parent933dda93fc98d3cfd445371c9ea29363ce26f085 (diff)
downloadpx4-nuttx-6875348aa9e7edca7e3404cf25135ded052cde5c.tar.gz
px4-nuttx-6875348aa9e7edca7e3404cf25135ded052cde5c.tar.bz2
px4-nuttx-6875348aa9e7edca7e3404cf25135ded052cde5c.zip
Extend CDC/ACM driver so that can be connected/disconnected under software control; Add new NSH commands sercon and serdis that will connect and disconnect the CDC/ACM serial device
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4436 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/examples/README.txt')
-rw-r--r--apps/examples/README.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/apps/examples/README.txt b/apps/examples/README.txt
index ffc592167..a89a9097c 100644
--- a/apps/examples/README.txt
+++ b/apps/examples/README.txt
@@ -110,6 +110,28 @@ examples/can
built-in, the default is 32. Otherwise messages are sent and received
indefinitely.
+examples/cdcacm
+^^^^^^^^^^^^^^^
+
+ This very simple example shows how a USB CDC/ACM serial can be dynamically
+ connected and disconnected from a host. This example can only be used as
+ an NSH built-int command. If built-in, then two new NSH commands will be
+ supported:
+
+ 1. sercon - Connect the CDC/ACM serial device
+ 2. serdis - Disconnect the CDC/ACM serial device
+
+ Configuration prequisites (not complete):
+
+ CONFIG_USBDEV=y : USB device support must be enabled
+ CONFIG_CDCACM=y : The CDC/ACM driver must be built
+ CONFIG_NSH_BUILTIN_APPS : NSH built-in application support must be enabled
+
+ Configuration options specific to this example:
+
+ CONFIG_EXAMPLES_CDCACM_DEVMINOR : The minor number of the CDC/ACM device.
+ : i.e., the 'x' in /dev/ttyACMx
+
examples/composite
^^^^^^^^^^^^^^^^^^