summaryrefslogtreecommitdiff
path: root/nuttx/Documentation
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-25 22:10:40 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-25 22:10:40 +0000
commit7678a8287c4a198ba6811f45b9bba934b2a5716b (patch)
treefa1aaf27248cfc57d4bc9c9f1f066b98e93d0191 /nuttx/Documentation
parent385b0fd6504ea1cb35b52cb425b5c37a62afa91d (diff)
downloadpx4-nuttx-7678a8287c4a198ba6811f45b9bba934b2a5716b.tar.gz
px4-nuttx-7678a8287c4a198ba6811f45b9bba934b2a5716b.tar.bz2
px4-nuttx-7678a8287c4a198ba6811f45b9bba934b2a5716b.zip
Fix packet size calculation in CDC/ACM and PL2303 USB serial drivers
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4771 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/Documentation')
-rw-r--r--nuttx/Documentation/NuttShell.html32
1 files changed, 31 insertions, 1 deletions
diff --git a/nuttx/Documentation/NuttShell.html b/nuttx/Documentation/NuttShell.html
index 409d191a7..c601271c4 100644
--- a/nuttx/Documentation/NuttShell.html
+++ b/nuttx/Documentation/NuttShell.html
@@ -8,7 +8,7 @@
<tr align="center" bgcolor="#e4e4e4">
<td>
<h1><big><font color="#3c34ec"><i>NuttShell (NSH)</i></font></big></h1>
- <p>Last Updated: March 6, 2012</p>
+ <p>Last Updated: May 25, 2012</p>
</td>
</tr>
</table>
@@ -2196,6 +2196,36 @@ nsh>
<code>CONFIG_CDCACM</code> and <code>CONFIG_CDCACM_CONSOLE</code>.
Sets up the CDC/ACM serial device as a console device at <code>/dev/console</code>.
</li>
+ <li>
+ <code>CONFIG_NSH_USBCONSOLE</code>.
+ If defined, then the an arbitrary USB device may be used to as the NSH console.
+ In this case, <code>CONFIG_NSH_CONDEV</code> must be defined to indicate which USB device to use as the console.
+ The advantage of using a device other that /dev/console is that normal debug output can not use /dev/console while NSH uses <code>CONFIG_NSH_USBCONDEV</code>.
+ <p>
+ <code>CONFIG_NSH_USBCONDEV</code>.
+ If <code>CONFIG_NSH_USBCONSOLE</code> is set to 'y', then <code>CONFIG_NSH_USBCONDEV</code> must also be set to select the USB device used to support the NSH console.
+ This should be set to the quoted name of a readable/write-able USB driver such as: <code>CONFIG_NSH_USBCONDEV="/dev/ttyACM0"</code>.
+ </p>
+ </li>
+ </ul>
+ <p>
+ If there are more than one USB slots, then a USB device minor number may also need to be provided:
+ </p>
+ <ul>
+ <li>
+ <code>CONFIG_NSH_UBSDEV_MINOR</code>.
+ The minor device number of the USB device. Default: 0
+ </li>
+ </ul>
+ <p>
+ If USB tracing is enabled, then NSH will initialize USB tracing as requested by the following:
+ </p>
+ <ul>
+ <li>
+ <code>CONFIG_NSH_UBSDEV_TRACEINIT</code>.
+ Bit set with each bit enabling a trace option (see <code>include/nuttx/usb/usbdev_trace.h</code>).
+ Default: Only USB errors are traced.
+ </li>
</ul>
</td>
</tr>