summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2008-04-06 09:26:51 +0000
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2008-04-06 09:26:51 +0000
commitbfc186d84002e7ad0deb313d12df04f9f219cd21 (patch)
tree12a5cd492695a7d5da0fa9eda1f48a07592c3357 /Source
parent33675962508571cc689f5a6f6c92035ad3a30406 (diff)
downloadfreertos-bfc186d84002e7ad0deb313d12df04f9f219cd21.tar.gz
freertos-bfc186d84002e7ad0deb313d12df04f9f219cd21.tar.bz2
freertos-bfc186d84002e7ad0deb313d12df04f9f219cd21.tar.xz
Corrected SysTick interval calculation.
git-svn-id: https://freertos.svn.sourceforge.net/svnroot/freertos/trunk@294 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
Diffstat (limited to 'Source')
-rw-r--r--Source/portable/RVDS/ARM_CM3/port.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/portable/RVDS/ARM_CM3/port.c b/Source/portable/RVDS/ARM_CM3/port.c
index 98a404d5..3fe98a99 100644
--- a/Source/portable/RVDS/ARM_CM3/port.c
+++ b/Source/portable/RVDS/ARM_CM3/port.c
@@ -257,7 +257,7 @@ void xPortSysTickHandler( void )
void prvSetupTimerInterrupt( void )
{
/* Configure SysTick to interrupt at the requested rate. */
- *(portNVIC_SYSTICK_LOAD) = configCPU_CLOCK_HZ / configTICK_RATE_HZ;
+ *(portNVIC_SYSTICK_LOAD) = ( configCPU_CLOCK_HZ / configTICK_RATE_HZ ) - 1UL;
*(portNVIC_SYSTICK_CTRL) = portNVIC_SYSTICK_CLK | portNVIC_SYSTICK_INT | portNVIC_SYSTICK_ENABLE;
}
/*-----------------------------------------------------------*/