mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 03:43:34 +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:
@@ -1,8 +1,8 @@
|
||||
/****************************************************************************
|
||||
* examples/usbserial/main.c
|
||||
*
|
||||
* Copyright (C) 2008, 2010-2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
* Copyright (C) 2008, 2010-2012 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
@@ -216,7 +216,7 @@ int user_start(int argc, char *argv[])
|
||||
|
||||
message("user_start: Registering USB serial driver\n");
|
||||
#ifdef CONFIG_CDCACM
|
||||
ret = cdcacm_initialize(0);
|
||||
ret = cdcacm_initialize(0, NULL);
|
||||
#else
|
||||
ret = usbdev_serialinitialize(0);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user