;/*\r
; FreeRTOS V7.4.2 - Copyright (C) 2013 Real Time Engineers Ltd.\r
-; \r
+;\r
;\r
; ***************************************************************************\r
; * *\r
ORG USART_UDRE_vect ; Vector address\r
jmp SIG_UART_DATA ; ISR\r
\r
- \r
+\r
RSEG CODE\r
\r
\r
out SREG, r0\r
\r
ld r0, y+ ; Finally we have finished with r0, so restore r0.\r
- \r
+\r
ENDM\r
\r
\r
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