General-purpose timers (TIM)
configuration information for the specified TIM peripheral.
22.2.11.3 TIM_TimeBaseStructInit
void TIM_TimeBaseStructInit ( TIM_TimeBaseInitTypeDef *
TIM_TimeBaseInitStruct)
Fills each TIM_TimeBaseInitStruct member with its default value.
ï‚· TIM_TimeBaseInitStruct : : pointer to a
TIM_TimeBaseInitTypeDef structure which will be initialized.
22.2.11.4 TIM_PrescalerConfig
void TIM_PrescalerConfig ( TIM_TypeDef * TIMx, uint16_t
Prescaler, uint16_t TIM_PSCReloadMode)
Configures the TIMx Prescaler.
ï‚· TIMx : where x can be 1, 2, 3, 4, 8, 15, 16 or 17 to select the
TIM peripheral.
ï‚· Prescaler : specifies the Prescaler Register value
ï‚· TIM_PSCReloadMode : specifies the TIM Prescaler Reload
mode This parameter can be one of the following values:
ï€ TIM_PSCReloadMode_Update : The Prescaler is
loaded at the update event.
ï€ TIM_PSCReloadMode_Immediate : The Prescaler is
loaded immediatly.