/* Configures the TIMx event to be generate by software.  */
void TIM_GenerateEvent(TIM_TypeDef *TIMx, uint16_t TIM_EventSource)
/* Configures the TIMx event to be generate by software.  */
void TIM_GenerateEvent(TIM_TypeDef *TIMx, uint16_t TIM_EventSource)
{
    assert_param(IS_TIM_ALL_PERIPH(TIMx));
    assert_param(IS_TIM_EVENT_SOURCE(TIM_EventSource));
    assert_param(IS_TIM_PERIPH_EVENT((TIMx), (TIM_EventSource)));
    TIMx->EGR = TIM_EventSource;
}