]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Source/portable/GCC/STR75x/portISR.c
Convert mpre ports to use xTaskIncrementTick() in place of vTaskIncrementTick().
[freertos] / FreeRTOS / Source / portable / GCC / STR75x / portISR.c
index f08069b02ac53e3528860e4b88da68e5f5f07746..dd1b9b5d110352bf64c062c0a83c4f30b6130aac 100644 (file)
@@ -137,11 +137,10 @@ void vPortTickISR( void )
 {\r
        /* Increment the RTOS tick count, then look for the highest priority \r
        task that is ready to run. */\r
-       vTaskIncrementTick();\r
-       \r
-       #if configUSE_PREEMPTION == 1\r
+       if( xTaskIncrementTick() != pdFALSE )\r
+       {       \r
                vTaskSwitchContext();\r
-       #endif\r
+       }\r
                        \r
        /* Ready for the next interrupt. */\r
        TB_ClearITPendingBit( TB_IT_Update );   \r