/* Setup the TB for the generation of the tick interrupt. */\r
TB_InitStructure.TB_Mode = TB_Mode_Timing;\r
TB_InitStructure.TB_CounterMode = TB_CounterMode_Down;\r
- TB_InitStructure.TB_Prescaler = portPRESCALE;\r
+ TB_InitStructure.TB_Prescaler = portPRESCALE - 1;\r
TB_InitStructure.TB_AutoReload = ( ( configCPU_CLOCK_HZ / ( portPRESCALE + 1 ) ) / configTICK_RATE_HZ ) + 1;\r
TB_Init(&TB_InitStructure);\r
\r
/* Setup the TB for the generation of the tick interrupt. */\r
TB_InitStructure.TB_Mode = TB_Mode_Timing;\r
TB_InitStructure.TB_CounterMode = TB_CounterMode_Down;\r
- TB_InitStructure.TB_Prescaler = portPRESCALE;\r
+ TB_InitStructure.TB_Prescaler = portPRESCALE - 1;\r
TB_InitStructure.TB_AutoReload = ( ( configCPU_CLOCK_HZ / ( portPRESCALE + 1 ) ) / configTICK_RATE_HZ ) + 1;\r
TB_Init(&TB_InitStructure);\r
\r