From f916ccf5062608d4b19ec8283992c0ff48e9c1f3 Mon Sep 17 00:00:00 2001 From: Joseph Julicher Date: Thu, 13 May 2021 15:42:57 -0700 Subject: [PATCH] Static allocation and lightweight idle tasks (#323) * added multiple idle tasks * Added multiple IDLE tasks to non-static allocation * Adjustments to tasks from PR review --- tasks.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tasks.c b/tasks.c index cf8f51539..eee43ef51 100644 --- a/tasks.c +++ b/tasks.c @@ -2756,6 +2756,20 @@ static BaseType_t prvCreateIdleTasks( void ) } #endif /* configSUPPORT_STATIC_ALLOCATION */ } + return xReturn; +} + +void vTaskStartScheduler( void ) +{ + BaseType_t xReturn; + + #if ( configUSE_TIMERS == 1 ) + { + xReturn = xTimerCreateTimerTask(); + } + #endif /* configUSE_TIMERS */ + + xReturn = prvCreateIdleTasks(); return xReturn; }