diff options
author | richardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2> | 2008-05-05 08:41:25 +0000 |
---|---|---|
committer | richardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2> | 2008-05-05 08:41:25 +0000 |
commit | ba574c0386e325df79b0b1f346d7cf52017448b6 (patch) | |
tree | 6f1ff09c9fa64c4cc6ca919510d461b87d35a443 /Source | |
parent | a05901a12310fe3632738c7408d5703a80d45e11 (diff) | |
download | freertos-ba574c0386e325df79b0b1f346d7cf52017448b6.tar.gz freertos-ba574c0386e325df79b0b1f346d7cf52017448b6.tar.bz2 freertos-ba574c0386e325df79b0b1f346d7cf52017448b6.tar.xz |
Add the usual missing -1.
git-svn-id: https://freertos.svn.sourceforge.net/svnroot/freertos/trunk@336 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
Diffstat (limited to 'Source')
-rw-r--r-- | Source/portable/MPLAB/PIC32MX/port.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/portable/MPLAB/PIC32MX/port.c b/Source/portable/MPLAB/PIC32MX/port.c index 7e021d4c..01bcf4a0 100644 --- a/Source/portable/MPLAB/PIC32MX/port.c +++ b/Source/portable/MPLAB/PIC32MX/port.c @@ -134,7 +134,7 @@ portSTACK_TYPE *pxPortInitialiseStack( portSTACK_TYPE *pxTopOfStack, pdTASK_CODE */
void prvSetupTimerInterrupt( void )
{
-const unsigned portLONG ulCompareMatch = (configPERIPHERAL_CLOCK_HZ / portTIMER_PRESCALE) / configTICK_RATE_HZ;
+const unsigned portLONG ulCompareMatch = ( (configPERIPHERAL_CLOCK_HZ / portTIMER_PRESCALE) / configTICK_RATE_HZ ) - 1;
OpenTimer1( ( T1_ON | T1_PS_1_8 | T1_SOURCE_INT ), ulCompareMatch );
ConfigIntTimer1( T1_INT_ON | configKERNEL_INTERRUPT_PRIORITY );
|