summaryrefslogtreecommitdiff
path: root/nuttx/sched/os_bringup.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-03-28 13:21:11 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-03-28 13:21:11 +0000
commitb197eb1609652b2b766bb79caf00b23ef07eed40 (patch)
tree95eb7d346489c2ca197bed15c1b08f2d70e1aec8 /nuttx/sched/os_bringup.c
parent640f2d23662509b3e5ed691cfa7e5e6c4bce971e (diff)
downloadpx4-nuttx-b197eb1609652b2b766bb79caf00b23ef07eed40.tar.gz
px4-nuttx-b197eb1609652b2b766bb79caf00b23ef07eed40.tar.bz2
px4-nuttx-b197eb1609652b2b766bb79caf00b23ef07eed40.zip
Move helper macro into sched.h
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3430 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/os_bringup.c')
-rw-r--r--nuttx/sched/os_bringup.c24
1 files changed, 9 insertions, 15 deletions
diff --git a/nuttx/sched/os_bringup.c b/nuttx/sched/os_bringup.c
index 38f9be51d..7ef7f5f6d 100644
--- a/nuttx/sched/os_bringup.c
+++ b/nuttx/sched/os_bringup.c
@@ -62,12 +62,6 @@
* Pre-processor Definitions
****************************************************************************/
-#ifndef CONFIG_CUSTOM_STACK
-# define START_TASK(n,p,s,e,a) task_create(n,p,s,e,a)
-#else
-# define START_TASK(n,p,s,e,a) task_create(n,p,e,a)
-#endif
-
/****************************************************************************
* Private Types
****************************************************************************/
@@ -133,9 +127,9 @@ int os_bringup(void)
#ifdef CONFIG_PAGING
svdbg("Starting paging thread\n");
- g_pgworker = START_TASK("pgfill", CONFIG_PAGING_DEFPRIO,
- CONFIG_PAGING_STACKSIZE,
- (main_t)pg_worker, (const char **)NULL);
+ g_pgworker = TASK_CREATE("pgfill", CONFIG_PAGING_DEFPRIO,
+ CONFIG_PAGING_STACKSIZE,
+ (main_t)pg_worker, (const char **)NULL);
ASSERT(g_pgworker != ERROR);
#endif
@@ -144,9 +138,9 @@ int os_bringup(void)
#ifdef CONFIG_SCHED_WORKQUEUE
svdbg("Starting worker thread\n");
- g_worker = START_TASK("work", CONFIG_SCHED_WORKPRIORITY,
- CONFIG_SCHED_WORKSTACKSIZE,
- (main_t)work_thread, (const char **)NULL);
+ g_worker = TASK_CREATE("work", CONFIG_SCHED_WORKPRIORITY,
+ CONFIG_SCHED_WORKSTACKSIZE,
+ (main_t)work_thread, (const char **)NULL);
ASSERT(g_worker != ERROR);
#endif
@@ -165,9 +159,9 @@ int os_bringup(void)
#else
/* Start the default application at user_start() */
- init_taskid = START_TASK("init", SCHED_PRIORITY_DEFAULT,
- CONFIG_USERMAIN_STACKSIZE,
- (main_t)user_start, (const char **)NULL);
+ init_taskid = TASK_CREATE("init", SCHED_PRIORITY_DEFAULT,
+ CONFIG_USERMAIN_STACKSIZE,
+ (main_t)user_start, (const char **)NULL);
#endif
ASSERT(init_taskid != ERROR);
return OK;