General-purpose timers (TIM)
22.2.16.2 TIM_ITRxExternalClockConfig
void TIM_ITRxExternalClockConfig ( TIM_TypeDef * TIMx,
uint16_t TIM_InputTriggerSource)
Configures the TIMx Internal Trigger as External Clock.
ï‚· TIMx : where x can be 1, 2, 3, 4, 8 or 15 to select the TIM
peripheral.
ï‚· TIM_InputTriggerSource : Trigger source. This parameter
can be one of the following values:
ï€ TIM_TS_ITR0 : Internal Trigger 0
ï€ TIM_TS_ITR1 : Internal Trigger 1
ï€ TIM_TS_ITR2 : Internal Trigger 2
ï€ TIM_TS_ITR3 : Internal Trigger 3
22.2.16.3 TIM_TIxExternalClockConfig
void TIM_TIxExternalClockConfig ( TIM_TypeDef * TIMx,
uint16_t TIM_TIxExternalCLKSource, uint16_t TIM_ICPolarity,
uint16_t ICFilter)
Configures the TIMx Trigger as External Clock.
ï‚· TIMx : where x can be 1, 2, 3, 4, 8 or 15 to select the TIM
peripheral.
ï‚· TIM_TIxExternalCLKSource : Trigger source. This
parameter can be one of the following values:
ï€ TIM_TIxExternalCLK1Source_TI1ED : TI1 Edge
Detector
ï€ TIM_TIxExternalCLK1Source_TI1 : Filtered Timer
Input 1
ï€ TIM_TIxExternalCLK1Source_TI2 : Filtered Timer
Input 2
ï‚· TIM_ICPolarity : specifies the TIx Polarity. This parameter
can be one of the following values:
ï€ TIM_ICPolarity_Rising :
ï€ TIM_ICPolarity_Falling :
ï‚· ICFilter : specifies the filter value. This parameter must be a