/* Configures the TIMx Internal Trigger as External Clock.  */
void TIM_ITRxExternalClockConfig(TIM_TypeDef *TIMx, uint16_t TIM_InputTriggerSource)
/* Configures the TIMx Internal Trigger as External Clock.  */
void TIM_ITRxExternalClockConfig(TIM_TypeDef *TIMx, uint16_t TIM_InputTriggerSource)
{
    assert_param(IS_TIM_LIST6_PERIPH(TIMx));
    assert_param(IS_TIM_INTERNAL_TRIGGER_SELECTION(TIM_InputTriggerSource));
    TIM_SelectInputTrigger(TIMx, TIM_InputTriggerSource);
    TIMx->SMCR |= TIM_SlaveMode_External1;
}