From 6875348aa9e7edca7e3404cf25135ded052cde5c Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 28 Feb 2012 18:14:55 +0000 Subject: 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 --- apps/examples/usbserial/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/examples/usbserial/main.c') 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 + * Copyright (C) 2008, 2010-2012 Gregory Nutt. All rights reserved. + * Author: Gregory Nutt * * 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 -- cgit v1.2.3