/* Configures the TIMx Internal Trigger as External Clock.  */
void TIM_ConfigInternalTrigToExt(TIM_Module *TIMx, uint16_t TIM_InputTriggerSource)
/* Configures the TIMx Internal Trigger as External Clock.  */
void TIM_ConfigInternalTrigToExt(TIM_Module *TIMx, uint16_t TIM_InputTriggerSource)
{
    assert_param(IsTimList6Module(TIMx));
    assert_param(IsTimInterTrigSel(TIM_InputTriggerSource));
    TIM_SelectInputTrig(TIMx, TIM_InputTriggerSource);
    TIMx->SMCTRL |= TIM_SLAVE_MODE_EXT1;
}