mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 02:11:35 +08:00
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: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4436 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -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
|
||||
^^^^^^^^^^^^^^^^^^
|
||||
|
||||
|
||||
Reference in New Issue
Block a user