/* Increment the tick count - which may wake some tasks but as the\r
preemptive scheduler is not being used any woken task is not given\r
processor time no matter what its priority. */\r
- vTaskIncrementTick();\r
+ xTaskIncrementTick();\r
\r
/* Ready for the next interrupt. */\r
T0IR = portTIMER_MATCH_ISR_BIT;\r
void vPortPreemptiveTick( void )\r
{\r
/* Increment the tick counter. */\r
- vTaskIncrementTick();\r
- \r
- /* The new tick value might unblock a task. Ensure the highest task that\r
- is ready to execute is the task that will execute when the tick ISR\r
- exits. */\r
- vTaskSwitchContext();\r
+ if( xTaskIncrementTick() != pdFALSE )\r
+ { \r
+ /* The new tick value might unblock a task. Ensure the highest task that\r
+ is ready to execute is the task that will execute when the tick ISR\r
+ exits. */\r
+ vTaskSwitchContext();\r
+ }\r
\r
/* Ready for the next interrupt. */\r
T0IR = portTIMER_MATCH_ISR_BIT;\r