summaryrefslogtreecommitdiff
path: root/nuttx/sched/task_create.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-07-14 19:30:31 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-07-14 19:30:31 +0000
commite135573acc348649e767ca67a1ec189fe4e0fcda (patch)
treeb34f7d2914cba8aeb9311c5bae3771af40054640 /nuttx/sched/task_create.c
parentd76fa866ad009d65396acf1aa08fcffd3b4b041e (diff)
downloadpx4-nuttx-e135573acc348649e767ca67a1ec189fe4e0fcda.tar.gz
px4-nuttx-e135573acc348649e767ca67a1ec189fe4e0fcda.tar.bz2
px4-nuttx-e135573acc348649e767ca67a1ec189fe4e0fcda.zip
Fix STM32 F2/F4 SDIO clocking; Clean-up files in sched/ directory
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4940 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/task_create.c')
-rw-r--r--nuttx/sched/task_create.c47
1 files changed, 21 insertions, 26 deletions
diff --git a/nuttx/sched/task_create.c b/nuttx/sched/task_create.c
index 23478c810..4d92c9bb0 100644
--- a/nuttx/sched/task_create.c
+++ b/nuttx/sched/task_create.c
@@ -2,7 +2,7 @@
* sched/task_create.c
*
* Copyright (C) 2007-2010 Gregory Nutt. All rights reserved.
- * Author: Gregory Nutt <spudmonkey@racsa.co.cr>
+ * 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
@@ -76,8 +76,8 @@
* Description:
* This function creates and activates a new thread of the specified type
* with a specified priority and returns its system-assigned ID. It is the
- * internal, commn implementation of task_create() and kernel_thread(). See
- * comments with task_create() for further information.
+ * internal, commn implementation of task_create() and kernel_thread().
+ * See comments with task_create() for further information.
*
* Input Parameters:
* name - Name of the new task
@@ -85,13 +85,11 @@
* priority - Priority of the new task
* stack_size - size (in bytes) of the stack needed
* entry - Entry point of a new task
- * arg - A pointer to an array of input parameters.
- * Up to CONFIG_MAX_TASK_ARG parameters may
- * be provided. If fewer than CONFIG_MAX_TASK_ARG
- * parameters are passed, the list should be
- * terminated with a NULL argv[] value.
- * If no parameters are required, argv may be
- * NULL.
+ * arg - A pointer to an array of input parameters. Up to
+ * CONFIG_MAX_TASK_ARG parameters may be provided. If fewer
+ * than CONFIG_MAX_TASK_ARG parameters are passed, the list
+ * should be terminated with a NULL argv[] value. If no
+ * parameters are required, argv may be NULL.
*
* Return Value:
* Returns the non-zero process ID of the new task or ERROR if memory is
@@ -193,31 +191,28 @@ errout:
* Name: task_create
*
* Description:
- * This function creates and activates a new task with a
- * specified priority and returns its system-assigned ID.
+ * This function creates and activates a new task with a specified
+ * priority and returns its system-assigned ID.
*
- * The entry address entry is the address of the "main"
- * function of the task. This function will be called once
- * the C environment has been set up. The specified
- * function will be called with four arguments. Should
- * the specified routine return, a call to exit() will
+ * The entry address entry is the address of the "main" function of the
+ * task. This function will be called once the C environment has been
+ * set up. The specified function will be called with four arguments.
+ * Should the specified routine return, a call to exit() will
* automatically be made.
*
- * Note that four (and only four) arguments must be passed for
- * the spawned functions.
+ * Note that four (and only four) arguments must be passed for the spawned
+ * functions.
*
* Input Parameters:
* name - Name of the new task
* priority - Priority of the new task
* stack_size - size (in bytes) of the stack needed
* entry - Entry point of a new task
- * arg - A pointer to an array of input parameters.
- * Up to CONFIG_MAX_TASK_ARG parameters may
- * be provided. If fewer than CONFIG_MAX_TASK_ARG
- * parameters are passed, the list should be
- * terminated with a NULL argv[] value.
- * If no parameters are required, argv may be
- * NULL.
+ * arg - A pointer to an array of input parameters. Up to
+ * CONFIG_MAX_TASK_ARG parameters may be provided. If fewer
+ * than CONFIG_MAX_TASK_ARG parameters are passed, the list
+ * should be terminated with a NULL argv[] value. If no
+ * parameters are required, argv may be NULL.
*
* Return Value:
* Returns the non-zero process ID of the new task or ERROR if memory is