Convert the remaining ports to use xTaskIncrementTick() in place of vTaskIncremenTick().

This commit is contained in:
Richard Barry 2013-06-07 12:16:58 +00:00
parent 2fc9d033c6
commit c04b074707
21 changed files with 80 additions and 98 deletions

View file

@ -228,10 +228,11 @@ is being used. */
static void __interrupt __far prvPreemptiveTick( void )
{
/* Get the scheduler to update the task states following the tick. */
vTaskIncrementTick();
/* Switch in the context of the next task to be run. */
portSWITCH_CONTEXT();
if( xTaskIncrementTick() != pdFALSE )
{
/* Switch in the context of the next task to be run. */
portSWITCH_CONTEXT();
}
/* Reset the PIC ready for the next time. */
prvPortResetPIC();
@ -241,7 +242,7 @@ is being used. */
{
/* Same as preemptive tick, but the cooperative scheduler is being used
so we don't have to switch in the context of the next task. */
vTaskIncrementTick();
xTaskIncrementTick();
prvPortResetPIC();
}
#endif