Skip to content

Commit f916ccf

Browse files
committed
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
1 parent f562517 commit f916ccf

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tasks.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2756,6 +2756,20 @@ static BaseType_t prvCreateIdleTasks( void )
27562756
}
27572757
#endif /* configSUPPORT_STATIC_ALLOCATION */
27582758
}
2759+
return xReturn;
2760+
}
2761+
2762+
void vTaskStartScheduler( void )
2763+
{
2764+
BaseType_t xReturn;
2765+
2766+
#if ( configUSE_TIMERS == 1 )
2767+
{
2768+
xReturn = xTimerCreateTimerTask();
2769+
}
2770+
#endif /* configUSE_TIMERS */
2771+
2772+
xReturn = prvCreateIdleTasks();
27592773

27602774
return xReturn;
27612775
}

0 commit comments

Comments
 (0)