diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-01-29 00:50:16 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-01-29 00:50:16 +0000 |
commit | f66c7593b614bf8e845f9ae9f6c63bf159af8c09 (patch) | |
tree | 6f244b56dfe70385ea813e028544dee1b921fc47 /nuttx/sched | |
parent | 8475b8bf5337bcb83a2ef35d8d03e7fc33535689 (diff) | |
download | px4-nuttx-f66c7593b614bf8e845f9ae9f6c63bf159af8c09.tar.gz px4-nuttx-f66c7593b614bf8e845f9ae9f6c63bf159af8c09.tar.bz2 px4-nuttx-f66c7593b614bf8e845f9ae9f6c63bf159af8c09.zip |
Z16F Debug
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@579 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched')
-rw-r--r-- | nuttx/sched/task_activate.c | 44 | ||||
-rw-r--r-- | nuttx/sched/task_create.c | 40 | ||||
-rw-r--r-- | nuttx/sched/task_setup.c | 54 | ||||
-rw-r--r-- | nuttx/sched/task_start.c | 44 |
4 files changed, 91 insertions, 91 deletions
diff --git a/nuttx/sched/task_activate.c b/nuttx/sched/task_activate.c index b216cc316..a9646cefe 100644 --- a/nuttx/sched/task_activate.c +++ b/nuttx/sched/task_activate.c @@ -1,7 +1,7 @@ -/************************************************************ +/**************************************************************************** * task_activate.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Included Files - ************************************************************/ + ****************************************************************************/ #include <nuttx/config.h> #include <sys/types.h> @@ -43,35 +43,35 @@ #include <debug.h> #include <nuttx/arch.h> -/************************************************************ +/**************************************************************************** * Definitions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Type Declarations - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Global Variables - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Variables - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Function Prototypes - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Functions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Public Functions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Name: task_activate * * Description: @@ -86,7 +86,7 @@ * Return Value: * Always returns OK * - ************************************************************/ + ****************************************************************************/ STATUS task_activate(FAR _TCB *tcb) { diff --git a/nuttx/sched/task_create.c b/nuttx/sched/task_create.c index 96df1ae60..31b50da0a 100644 --- a/nuttx/sched/task_create.c +++ b/nuttx/sched/task_create.c @@ -1,7 +1,7 @@ -/************************************************************ +/**************************************************************************** * task_create.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Included Files - ************************************************************/ + ****************************************************************************/ #include <nuttx/config.h> #include <sys/types.h> @@ -46,31 +46,31 @@ #include "os_internal.h" #include "env_internal.h" -/************************************************************ +/**************************************************************************** * Definitions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Type Declarations - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Global Variables - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Variables - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Function Prototypes - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Functions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Name: task_create * * Description: @@ -105,7 +105,7 @@ * ERROR if memory is insufficient or the task cannot be * created (errno is not set). * - ************************************************************/ + ****************************************************************************/ #ifndef CONFIG_CUSTOM_STACK int task_create(const char *name, int priority, diff --git a/nuttx/sched/task_setup.c b/nuttx/sched/task_setup.c index 52596dc7c..6b80d5db0 100644 --- a/nuttx/sched/task_setup.c +++ b/nuttx/sched/task_setup.c @@ -1,7 +1,7 @@ -/************************************************************ +/**************************************************************************** * task_setup.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Included Files - ************************************************************/ + ****************************************************************************/ #include <nuttx/config.h> #include <sys/types.h> @@ -46,37 +46,37 @@ #include <nuttx/arch.h> #include "os_internal.h" -/************************************************************ +/**************************************************************************** * Definitions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Type Declarations - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Global Variables - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Variables - ************************************************************/ + ****************************************************************************/ /* This is the name for un-named tasks */ static const char g_noname[] = "<noname>"; -/************************************************************ +/**************************************************************************** * Private Function Prototypes - ************************************************************/ + ****************************************************************************/ static STATUS task_assignpid(FAR _TCB* tcb); -/************************************************************ +/**************************************************************************** * Private Functions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Name: task_assignpid * * Description: @@ -88,13 +88,13 @@ static STATUS task_assignpid(FAR _TCB* tcb); * Return: * OK on success; ERROR on failure (errno is not set) * - ************************************************************/ + ****************************************************************************/ static STATUS task_assignpid(FAR _TCB *tcb) { pid_t next_pid; int hash_ndx; - int tries = 0; + int tries; /* Disable pre-emption. This should provide sufficient protection * for the following operation. @@ -142,11 +142,11 @@ static STATUS task_assignpid(FAR _TCB *tcb) return ERROR; } -/************************************************************ +/**************************************************************************** * Public Functions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Name: task_schedsetup * * Description: @@ -168,7 +168,7 @@ static STATUS task_assignpid(FAR _TCB *tcb) * This function can only failure is it is unable to assign * a new, unique task ID to the TCB (errno is not set). * - ************************************************************/ + ****************************************************************************/ STATUS task_schedsetup(FAR _TCB *tcb, int priority, start_t start, main_t main) @@ -216,7 +216,7 @@ STATUS task_schedsetup(FAR _TCB *tcb, int priority, return ret; } -/************************************************************ +/**************************************************************************** * Name: task_argsetup * * Description: @@ -240,7 +240,7 @@ STATUS task_schedsetup(FAR _TCB *tcb, int priority, * Return Value: * OK * - ************************************************************/ + ****************************************************************************/ STATUS task_argsetup(FAR _TCB *tcb, const char *name, const char *argv[]) { diff --git a/nuttx/sched/task_start.c b/nuttx/sched/task_start.c index 9e2a013bf..b06fbb981 100644 --- a/nuttx/sched/task_start.c +++ b/nuttx/sched/task_start.c @@ -1,7 +1,7 @@ -/************************************************************ +/**************************************************************************** * task_start.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Included Files - ************************************************************/ + ****************************************************************************/ #include <nuttx/config.h> #include <sys/types.h> @@ -44,35 +44,35 @@ #include <debug.h> #include "os_internal.h" -/************************************************************ +/**************************************************************************** * Definitions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Type Declarations - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Global Variables - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Variables - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Function Prototypes - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Functions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Public Functions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Name: task_start * * Description: @@ -87,7 +87,7 @@ * Return: * None * - ************************************************************/ + ****************************************************************************/ void task_start(void) { |