summaryrefslogtreecommitdiff
path: root/FreeRTOS/Source/portable/IAR/STR75x/port.c
diff options
context:
space:
mode:
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2013-06-06 16:31:15 +0000
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2013-06-06 16:31:15 +0000
commit298396b43c76080604893d7d6ca7d5db47a0bd2d (patch)
tree7931e3087cc12c10a22742470d4f75557254eaf6 /FreeRTOS/Source/portable/IAR/STR75x/port.c
parent2a989e4ba62747c366fa8fdacffe96da57a400ea (diff)
downloadfreertos-298396b43c76080604893d7d6ca7d5db47a0bd2d.tar.gz
Convert more ports to use xTaskIncrementTick() in place of vTaskIncrementTick().
git-svn-id: http://svn.code.sf.net/p/freertos/code/trunk@1917 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
Diffstat (limited to 'FreeRTOS/Source/portable/IAR/STR75x/port.c')
-rw-r--r--FreeRTOS/Source/portable/IAR/STR75x/port.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/FreeRTOS/Source/portable/IAR/STR75x/port.c b/FreeRTOS/Source/portable/IAR/STR75x/port.c
index 26e656887..7f2f49f2c 100644
--- a/FreeRTOS/Source/portable/IAR/STR75x/port.c
+++ b/FreeRTOS/Source/portable/IAR/STR75x/port.c
@@ -209,15 +209,12 @@ void vPortEndScheduler( void )
__arm void vPortPreemptiveTick( void )
{
/* Increment the tick counter. */
- vTaskIncrementTick();
-
- /* The new tick value might unblock a task. Ensure the highest task that
- is ready to execute is the task that will execute when the tick ISR
- exits. */
- #if configUSE_PREEMPTION == 1
+ if( xTaskIncrementTick() != pdFALSE )
+ {
+ /* Select a new task to execute. */
vTaskSwitchContext();
- #endif
-
+ }
+
TB_ClearITPendingBit( TB_IT_Update );
}
/*-----------------------------------------------------------*/