]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/ColdFire_MCF52259_CodeWarrior/FreeRTOS_Tick_Setup.c
Update ports that have their tick configuration in an application callback to use...
[freertos] / FreeRTOS / Demo / ColdFire_MCF52259_CodeWarrior / FreeRTOS_Tick_Setup.c
index 6727b05eae1934e77e88f21352bec90dfa578690..3b595a9b6730487fdc52b0b2d73f5724e94c5273 100644 (file)
@@ -148,14 +148,9 @@ unsigned portLONG ulSavedInterruptMask;
 \r
        /* Increment the RTOS tick. */\r
        ulSavedInterruptMask = portSET_INTERRUPT_MASK_FROM_ISR();\r
-               vTaskIncrementTick();\r
+               if( xTaskIncrementTick() != pdFALSE )\r
+               {\r
+                       taskYIELD();\r
+               }\r
        portCLEAR_INTERRUPT_MASK_FROM_ISR( ulSavedInterruptMask );\r
-\r
-       /* If we are using the pre-emptive scheduler then also request a\r
-       context switch as incrementing the tick could have unblocked a task. */\r
-       #if configUSE_PREEMPTION == 1\r
-       {\r
-               taskYIELD();\r
-       }\r
-       #endif\r
 }\r