/* Clear tick timer interrupt indication. */\r
ulDummy = portTIMER_REG_BASE_PTR->TC_SR; \r
\r
- vTaskIncrementTick();\r
+ xTaskIncrementTick();\r
\r
/* Acknowledge the interrupt at AIC level... */\r
AT91C_BASE_AIC->AIC_EOICR = portCLEAR_AIC_INTERRUPT;\r
\r
/* Increment the RTOS tick count, then look for the highest priority \r
task that is ready to run. */\r
- vTaskIncrementTick();\r
- vTaskSwitchContext();\r
+ if( xTaskIncrementTick() != pdFALSE )\r
+ {\r
+ vTaskSwitchContext();\r
+ }\r
\r
/* Acknowledge the interrupt at AIC level... */\r
AT91C_BASE_AIC->AIC_EOICR = portCLEAR_AIC_INTERRUPT;\r