More CDC serial updates

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3954 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2011-09-15 13:26:00 +00:00
parent 50f7b06bfe
commit b5e5481674

View File

@ -51,6 +51,10 @@
#include <nuttx/usb/usbdev.h>
#include <nuttx/usb/usbdev_trace.h>
#ifdef CONFIG_CDCSER
# include <nuttx/usb/cdc_serial.h>
#endif
/****************************************************************************
* Definitions
****************************************************************************/
@ -211,7 +215,11 @@ 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);
#else
ret = usbdev_serialinitialize(0);
#endif
if (ret < 0)
{
message("user_start: ERROR: Failed to create the USB serial device: %d\n", -ret);