summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2008-04-12 23:25:17 +0000
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2008-04-12 23:25:17 +0000
commitc3976f0647a31eeb16860a7b6a9168ac5e76b5e1 (patch)
tree0cdb25951eea09075f55358c3144858a75f4e2cd /Source
parent6f9df91bc5313781c2acd11bfa128a413da3e30a (diff)
downloadfreertos-c3976f0647a31eeb16860a7b6a9168ac5e76b5e1.tar.gz
freertos-c3976f0647a31eeb16860a7b6a9168ac5e76b5e1.tar.bz2
freertos-c3976f0647a31eeb16860a7b6a9168ac5e76b5e1.tar.xz
Update the sys tick to be more efficient.
git-svn-id: https://freertos.svn.sourceforge.net/svnroot/freertos/trunk@304 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
Diffstat (limited to 'Source')
-rw-r--r--Source/portable/GCC/ARM_CM3/port.c4
-rw-r--r--Source/portable/IAR/ARM_CM3/port.c4
-rw-r--r--Source/portable/RVDS/ARM_CM3/port.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/Source/portable/GCC/ARM_CM3/port.c b/Source/portable/GCC/ARM_CM3/port.c
index 2ae10331..8aa6fb22 100644
--- a/Source/portable/GCC/ARM_CM3/port.c
+++ b/Source/portable/GCC/ARM_CM3/port.c
@@ -262,12 +262,12 @@ void xPortPendSVHandler( void )
void xPortSysTickHandler( void )
{
- vTaskIncrementTick();
-
/* If using preemption, also force a context switch. */
#if configUSE_PREEMPTION == 1
*(portNVIC_INT_CTRL) |= portNVIC_PENDSVSET;
#endif
+
+ vTaskIncrementTick();
}
/*-----------------------------------------------------------*/
diff --git a/Source/portable/IAR/ARM_CM3/port.c b/Source/portable/IAR/ARM_CM3/port.c
index be91fdfb..2f91cb25 100644
--- a/Source/portable/IAR/ARM_CM3/port.c
+++ b/Source/portable/IAR/ARM_CM3/port.c
@@ -184,12 +184,12 @@ void vPortExitCritical( void )
void xPortSysTickHandler( void )
{
- vTaskIncrementTick();
-
/* If using preemption, also force a context switch. */
#if configUSE_PREEMPTION == 1
*(portNVIC_INT_CTRL) |= portNVIC_PENDSVSET;
#endif
+
+ vTaskIncrementTick();
}
/*-----------------------------------------------------------*/
diff --git a/Source/portable/RVDS/ARM_CM3/port.c b/Source/portable/RVDS/ARM_CM3/port.c
index 091addde..a8efbe82 100644
--- a/Source/portable/RVDS/ARM_CM3/port.c
+++ b/Source/portable/RVDS/ARM_CM3/port.c
@@ -243,12 +243,12 @@ sv_disable_interrupts
void xPortSysTickHandler( void )
{
- vTaskIncrementTick();
-
/* If using preemption, also force a context switch. */
#if configUSE_PREEMPTION == 1
*(portNVIC_INT_CTRL) |= portNVIC_PENDSVSET;
#endif
+
+ vTaskIncrementTick();
}
/*-----------------------------------------------------------*/