From: richardbarry Date: Thu, 15 Oct 2009 11:56:48 +0000 (+0000) Subject: Correct the auto reload value. X-Git-Tag: V6.0.0~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2e2278efa54883c88625dfcb5f13b0a7245ed262;p=freertos Correct the auto reload value. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@927 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Source/portable/IAR/STR75x/port.c b/Source/portable/IAR/STR75x/port.c index 19fb86320..0017ec429 100644 --- a/Source/portable/IAR/STR75x/port.c +++ b/Source/portable/IAR/STR75x/port.c @@ -212,7 +212,7 @@ TB_InitTypeDef TB_InitStructure; TB_InitStructure.TB_Mode = TB_Mode_Timing; TB_InitStructure.TB_CounterMode = TB_CounterMode_Down; TB_InitStructure.TB_Prescaler = portPRESCALE - 1; - TB_InitStructure.TB_AutoReload = ( ( configCPU_CLOCK_HZ / ( portPRESCALE + 1 ) ) / configTICK_RATE_HZ ) + 1; + TB_InitStructure.TB_AutoReload = ( ( configCPU_CLOCK_HZ / portPRESCALE ) / configTICK_RATE_HZ ); TB_Init(&TB_InitStructure); /* Enable TB Update interrupt */