From 189623b8af1ea676acce678034faefcd11641f63 Mon Sep 17 00:00:00 2001 From: patacongo Date: Mon, 23 Apr 2012 16:49:15 +0000 Subject: [PATCH] Rename some USB device files git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4645 42af7a65-404d-4744-a932-0658087f49c3 --- drivers/usbdev/Make.defs | 6 +++--- drivers/usbdev/{cdcacm_descriptors.c => cdcacm_desc.c} | 2 +- .../usbdev/{composite_descriptors.c => composite_desc.c} | 2 +- drivers/usbdev/{usbmsc_descriptors.c => usbmsc_desc.c} | 2 +- include/nuttx/usb/audio.h | 1 + sched/task_delete.c | 7 +++++++ sched/task_exithook.c | 4 ---- 7 files changed, 14 insertions(+), 10 deletions(-) rename drivers/usbdev/{cdcacm_descriptors.c => cdcacm_desc.c} (99%) rename drivers/usbdev/{composite_descriptors.c => composite_desc.c} (99%) rename drivers/usbdev/{usbmsc_descriptors.c => usbmsc_desc.c} (99%) diff --git a/drivers/usbdev/Make.defs b/drivers/usbdev/Make.defs index 445cf7817e..f1b3c405ae 100644 --- a/drivers/usbdev/Make.defs +++ b/drivers/usbdev/Make.defs @@ -42,15 +42,15 @@ ifeq ($(CONFIG_PL2303),y) endif ifeq ($(CONFIG_CDCACM),y) - CSRCS += cdcacm.c cdcacm_descriptors.c + CSRCS += cdcacm.c cdcacm_desc.c endif ifeq ($(CONFIG_USBMSC),y) - CSRCS += usbmsc.c usbmsc_descriptors.c usbmsc_scsi.c + CSRCS += usbmsc.c usbmsc_desc.c usbmsc_scsi.c endif ifeq ($(CONFIG_USBDEV_COMPOSITE),y) - CSRCS += composite.c composite_descriptors.c + CSRCS += composite.c composite_desc.c endif CSRCS += usbdev_trace.c usbdev_trprintf.c diff --git a/drivers/usbdev/cdcacm_descriptors.c b/drivers/usbdev/cdcacm_desc.c similarity index 99% rename from drivers/usbdev/cdcacm_descriptors.c rename to drivers/usbdev/cdcacm_desc.c index 11a83541e3..fde13bfd3c 100644 --- a/drivers/usbdev/cdcacm_descriptors.c +++ b/drivers/usbdev/cdcacm_desc.c @@ -1,5 +1,5 @@ /**************************************************************************** - * drivers/usbdev/cdcacm_descriptors.c + * drivers/usbdev/cdcacm_desc.c * * Copyright (C) 2011-2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/drivers/usbdev/composite_descriptors.c b/drivers/usbdev/composite_desc.c similarity index 99% rename from drivers/usbdev/composite_descriptors.c rename to drivers/usbdev/composite_desc.c index 9ea6ef2d7e..0a0cd4a6ad 100644 --- a/drivers/usbdev/composite_descriptors.c +++ b/drivers/usbdev/composite_desc.c @@ -1,5 +1,5 @@ /**************************************************************************** - * drivers/usbdev/composite_descriptors.c + * drivers/usbdev/composite_desc.c * * Copyright (C) 2011-2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/drivers/usbdev/usbmsc_descriptors.c b/drivers/usbdev/usbmsc_desc.c similarity index 99% rename from drivers/usbdev/usbmsc_descriptors.c rename to drivers/usbdev/usbmsc_desc.c index 8305a660a3..6d7561b3f1 100644 --- a/drivers/usbdev/usbmsc_descriptors.c +++ b/drivers/usbdev/usbmsc_desc.c @@ -1,5 +1,5 @@ /**************************************************************************** - * drivers/usbdev/usbmsc_descriptors.c + * drivers/usbdev/usbmsc_desc.c * * Copyright (C) 2011-2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/include/nuttx/usb/audio.h b/include/nuttx/usb/audio.h index b9280e3188..97c3ed6cb4 100644 --- a/include/nuttx/usb/audio.h +++ b/include/nuttx/usb/audio.h @@ -86,6 +86,7 @@ #define ADC_PROTOCOL_UNDEF 0x00 /* Undefined */ #define ADC_PROTOCOLv20 0x20 /* IP version 2.0 */ +#define ADC_PROTOCOLv20_BCD 0x0200 /* IP version 2.0 (BCD) */ /* Interface Association Descriptor (IAD) */ diff --git a/sched/task_delete.c b/sched/task_delete.c index e5244a0b8e..5448260d5a 100644 --- a/sched/task_delete.c +++ b/sched/task_delete.c @@ -179,6 +179,13 @@ int task_delete(pid_t pid) sched_unlock(); + /* Since all tasks pass through this function as the final step in their + * exit sequence, this is an appropriate place to inform any instrumentation + * layer that the task no longer exists. + */ + + sched_note_stop(tcb); + /* Deallocate its TCB */ sched_releasetcb(dtcb); diff --git a/sched/task_exithook.c b/sched/task_exithook.c index e160a1cb30..500129382f 100644 --- a/sched/task_exithook.c +++ b/sched/task_exithook.c @@ -102,10 +102,6 @@ void task_exithook(FAR _TCB *tcb, int status) { - /* Inform the instrumentation layer that the task has stopped */ - - sched_note_stop(tcb); - /* If an exit function was registered, call it now before we do any un- * initialized. NOTE: In the case of task_delete(), the exit function * will *not* be called on the thread execution of the task being deleted!