]> git.sur5r.net Git - freertos/commitdiff
Update the sys tick to be more efficient.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sat, 12 Apr 2008 23:25:17 +0000 (23:25 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sat, 12 Apr 2008 23:25:17 +0000 (23:25 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@304 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Source/portable/GCC/ARM_CM3/port.c
Source/portable/IAR/ARM_CM3/port.c
Source/portable/RVDS/ARM_CM3/port.c

index 2ae10331991ed43f65ae39e9d0f18630ae937195..8aa6fb227219af4668dc36ef9ddbedcddf6a3216 100644 (file)
@@ -262,12 +262,12 @@ void xPortPendSVHandler( void )
 \r
 void xPortSysTickHandler( void )\r
 {\r
-       vTaskIncrementTick();\r
-       \r
        /* If using preemption, also force a context switch. */\r
        #if configUSE_PREEMPTION == 1\r
                *(portNVIC_INT_CTRL) |= portNVIC_PENDSVSET;     \r
        #endif\r
+\r
+       vTaskIncrementTick();\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
index be91fdfb30875e711c538f1e889b0b4fa55a6d13..2f91cb25f9bff579faef1a3cb38e702ec74f783d 100644 (file)
@@ -184,12 +184,12 @@ void vPortExitCritical( void )
 \r
 void xPortSysTickHandler( void )\r
 {\r
-       vTaskIncrementTick();\r
-       \r
        /* If using preemption, also force a context switch. */\r
        #if configUSE_PREEMPTION == 1\r
                *(portNVIC_INT_CTRL) |= portNVIC_PENDSVSET;     \r
        #endif\r
+\r
+       vTaskIncrementTick();\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
index 091addde9b11c17692d98ae837e06f35fa9df2e8..a8efbe82ef63af0520647bfec6c95ac3ad1050db 100644 (file)
@@ -243,12 +243,12 @@ sv_disable_interrupts
 \r
 void xPortSysTickHandler( void )\r
 {\r
-       vTaskIncrementTick();\r
-       \r
        /* If using preemption, also force a context switch. */\r
        #if configUSE_PREEMPTION == 1\r
                *(portNVIC_INT_CTRL) |= portNVIC_PENDSVSET;     \r
        #endif\r
+\r
+       vTaskIncrementTick();\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r