;/*\r
-; FreeRTOS V7.4.2 - Copyright (C) 2013 Real Time Engineers Ltd.\r
+; FreeRTOS V8.2.3 - Copyright (C) 2015 Real Time Engineers Ltd.\r
+; All rights reserved\r
; \r
;\r
; ***************************************************************************\r
LDR R0, =xTaskIncrementTick ; Increment the tick count. \r
MOV LR, PC ; This may make a delayed task ready\r
BX R0 ; to run.\r
- \r
+\r
+ CMP R0, #0\r
+ BEQ SkipContextSwitch\r
LDR R0, =vTaskSwitchContext ; Find the highest priority task that \r
MOV LR, PC ; is ready to run.\r
BX R0\r
- \r
+SkipContextSwitch\r
MOV R0, #T0MATCHBIT ; Clear the timer event\r
LDR R1, =T0IR\r
STR R0, [R1] \r