mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-22 20:07:34 +08:00
More name changes: USBSER->PL2303 CDCSER->CDCACM
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4337 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -1160,7 +1160,7 @@ examples/usbterm
|
||||
|
||||
Error results are always shown in the trace output
|
||||
|
||||
Other relevant configuration options: CONFIG_CDCSER selected by the
|
||||
Other relevant configuration options: CONFIG_CDCACM selected by the
|
||||
Prolifics emulation (not defined) and the CDC serial implementation
|
||||
(when defined). CONFIG_USBDEV_TRACE_INITIALIDSET.
|
||||
|
||||
|
||||
@@ -51,8 +51,8 @@
|
||||
#include <nuttx/usb/usbdev.h>
|
||||
#include <nuttx/usb/usbdev_trace.h>
|
||||
|
||||
#ifdef CONFIG_CDCSER
|
||||
# include <nuttx/usb/cdc_serial.h>
|
||||
#ifdef CONFIG_CDCACM
|
||||
# include <nuttx/usb/cdcacm.h>
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
@@ -215,8 +215,8 @@ int user_start(int argc, char *argv[])
|
||||
/* Initialize the USB serial driver */
|
||||
|
||||
message("user_start: Registering USB serial driver\n");
|
||||
#ifdef CONFIG_CDCSER
|
||||
ret = cdcser_initialize(0);
|
||||
#ifdef CONFIG_CDCACM
|
||||
ret = cdcacm_initialize(0);
|
||||
#else
|
||||
ret = usbdev_serialinitialize(0);
|
||||
#endif
|
||||
|
||||
@@ -53,8 +53,8 @@
|
||||
#include <nuttx/usb/usbdev.h>
|
||||
#include <nuttx/usb/usbdev_trace.h>
|
||||
|
||||
#ifdef CONFIG_CDCSER
|
||||
# include <nuttx/usb/cdc_serial.h>
|
||||
#ifdef CONFIG_CDCACM
|
||||
# include <nuttx/usb/cdcacm.h>
|
||||
#endif
|
||||
|
||||
#include "usbterm.h"
|
||||
@@ -196,8 +196,8 @@ int MAIN_NAME(int argc, char *argv[])
|
||||
/* Initialize the USB serial driver */
|
||||
|
||||
message(MAIN_STRING "Registering USB serial driver\n");
|
||||
#ifdef CONFIG_CDCSER
|
||||
ret = cdcser_initialize(0);
|
||||
#ifdef CONFIG_CDCACM
|
||||
ret = cdcacm_initialize(0);
|
||||
#else
|
||||
ret = usbdev_serialinitialize(0);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user