mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 05:23:34 +08:00
Add support for use of a USB serial device to provide NSH console I/O. Verified on the Sure PIPIC32MX board
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4458 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -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: February 2, 2012</p>
|
||||
<p>Last Updated: March 6, 2012</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -2179,8 +2179,24 @@ nsh>
|
||||
<tr>
|
||||
<td valign="top"><b><code>CONFIG_NSH_CONSOLE</code></b></td>
|
||||
<td>
|
||||
If <code>CONFIG_NSH_CONSOLE</code> is set to <i>y</i>, then a serial
|
||||
console front-end is selected.
|
||||
<p>
|
||||
If <code>CONFIG_NSH_CONSOLE</code> is set to <i>y</i>, then a serial
|
||||
console front-end is selected.
|
||||
</p>
|
||||
<p>
|
||||
Normally, the serial console device is a UART and RS-232 interface.
|
||||
However, if <code>CONFIG_USBDEV</code> is defined, then a USB serial device may, instead, be used if the one of the following are defined:
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
<code>CONFIG_PL2303</code> and <code>CONFIG_PL2303_CONSOLE</code>.
|
||||
Sets up the Prolifics PL2303 emulation as a console device at <code>/dev/console</code>.
|
||||
</li>
|
||||
<li>
|
||||
<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>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user