]> git.sur5r.net Git - freertos/commitdiff
Correct the auto reload value.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Thu, 15 Oct 2009 11:56:48 +0000 (11:56 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Thu, 15 Oct 2009 11:56:48 +0000 (11:56 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@927 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Source/portable/IAR/STR75x/port.c

index 19fb8632077f8c68e0b096e0e9a752821bd70ab8..0017ec429a5780dd96fed4205d8e545422ff5645 100644 (file)
@@ -212,7 +212,7 @@ TB_InitTypeDef      TB_InitStructure;
        TB_InitStructure.TB_Mode = TB_Mode_Timing;\r
        TB_InitStructure.TB_CounterMode = TB_CounterMode_Down;\r
        TB_InitStructure.TB_Prescaler = portPRESCALE - 1;\r
-       TB_InitStructure.TB_AutoReload = ( ( configCPU_CLOCK_HZ / ( portPRESCALE + 1 ) ) / configTICK_RATE_HZ ) + 1;\r
+       TB_InitStructure.TB_AutoReload = ( ( configCPU_CLOCK_HZ / portPRESCALE ) / configTICK_RATE_HZ );\r
        TB_Init(&TB_InitStructure);\r
        \r
        /* Enable TB Update interrupt */\r