]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Source/portable/IAR/ATMega323/portmacro.s90
Update version numbers in preparation for new release.
[freertos] / FreeRTOS / Source / portable / IAR / ATMega323 / portmacro.s90
index 7e892caf715af07c2ffa436b6654bfd7c7768ccf..bd53f9502e74f7fcf01349ed3221acb64a32c567 100644 (file)
@@ -1,6 +1,7 @@
 ;/*\r
-;    FreeRTOS V7.4.2 - Copyright (C) 2013 Real Time Engineers Ltd.\r
-;      \r
+;    FreeRTOS V8.2.2 - Copyright (C) 2015 Real Time Engineers Ltd.\r
+;    All rights reserved\r
+;\r
 ;\r
 ;    ***************************************************************************\r
 ;     *                                                                       *\r
@@ -103,7 +104,7 @@ PUBLIC vPortStart
        ORG USART_UDRE_vect                                     ; Vector address\r
                jmp SIG_UART_DATA                               ; ISR\r
 \r
-       \r
+\r
        RSEG CODE\r
 \r
 \r
@@ -222,7 +223,7 @@ portRESTORE_CONTEXT MACRO
        out SREG, r0\r
 \r
        ld      r0, y+                                  ; Finally we have finished with r0, so restore r0.\r
-       \r
+\r
        ENDM\r
 \r
 \r
@@ -244,7 +245,10 @@ vPortYield:
 vPortYieldFromTick:\r
        portSAVE_CONTEXT                        ; Save the context of the current task.\r
        call xTaskIncrementTick         ; Call the timer tick function.\r
+       tst r16\r
+       breq SkipTaskSwitch\r
        call vTaskSwitchContext         ; Call the scheduler.\r
+SkipTaskSwitch:\r
        portRESTORE_CONTEXT                     ; Restore the context of whichever task the ...\r
        ret                                                     ; ... scheduler decided should run.\r
 \r