diff options
Diffstat (limited to 'nuttx/sched')
-rw-r--r-- | nuttx/sched/os_bringup.c | 24 |
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; |