General-purpose timers (TIM)
TIM_Break2Config()
TIM_Break1Cmd()
TIM_Break2Cmd()
TIM_BDTRStructInit()
TIM_CtrlPWMOutputs()
TIM_SelectCOM()
TIM_CCPreloadControl()
22.2.6 Interrupts, DMA and flags management functions
TIM_ITConfig()
TIM_GenerateEvent()
TIM_GetFlagStatus()
TIM_ClearFlag()
TIM_GetITStatus()
TIM_ClearITPendingBit()
TIM_DMAConfig()
TIM_DMACmd()
TIM_SelectCCDMA()
22.2.7 Clocks management functions
TIM_InternalClockConfig()
TIM_ITRxExternalClockConfig()
TIM_TIxExternalClockConfig()
TIM_ETRClockMode1Config()
TIM_ETRClockMode2Config()
22.2.8 Synchronization management functions
TIM Driver: how to use it in synchronization Mode
Case of two/several Timers
1. Configure the Master Timers using the following functions:
void TIM_SelectOutputTrigger(TIM_TypeDef* TIMx, uint16_t
TIM_TRGOSource);
void TIM_SelectMasterSlaveMode(TIM_TypeDef* TIMx, uint16_t
TIM_MasterSlaveMode);
2. Configure the Slave Timers using the following functions:
void TIM_SelectInputTrigger(TIM_TypeDef* TIMx, uint16_t
TIM_InputTriggerSource);
void TIM_SelectSlaveMode(TIM_TypeDef* TIMx, uint16_t TIM_SlaveMode);
Case of Timers and external trigger(ETR pin)
1. Configure the External trigger using this function:
void TIM_ETRConfig(TIM_TypeDef* TIMx, uint16_t TIM_ExtTRGPrescaler,
uint16_t TIM_ExtTRGPolarity, uint16_t ExtTRGFilter);
2. Configure the Slave Timers using the following functions:
void TIM_SelectInputTrigger(TIM_TypeDef* TIMx, uint16_t
TIM_InputTriggerSource);