diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-02-28 18:14:55 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-02-28 18:14:55 +0000 |
commit | 6875348aa9e7edca7e3404cf25135ded052cde5c (patch) | |
tree | 299af02425127a965549141a2b9155d43e99e52a /apps/examples/usbserial/main.c | |
parent | 933dda93fc98d3cfd445371c9ea29363ce26f085 (diff) | |
download | nuttx-6875348aa9e7edca7e3404cf25135ded052cde5c.tar.gz nuttx-6875348aa9e7edca7e3404cf25135ded052cde5c.tar.bz2 nuttx-6875348aa9e7edca7e3404cf25135ded052cde5c.zip |
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: svn://svn.code.sf.net/p/nuttx/code/trunk@4436 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/examples/usbserial/main.c')
-rw-r--r-- | apps/examples/usbserial/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/examples/usbserial/main.c b/apps/examples/usbserial/main.c index 1c2ebd067..7ad9d0d9c 100644 --- a/apps/examples/usbserial/main.c +++ b/apps/examples/usbserial/main.c @@ -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 |