mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
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
This commit is contained in:
parent
f5625177f5
commit
f916ccf506
14
tasks.c
14
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue