/* configure TIMER the internal trigger as external clock input  */
void timer_itrx_external_clock_config(uint32_t timer_periph, uint32_t timer_intrigger)
/* configure TIMER the internal trigger as external clock input  */
void timer_itrx_external_clock_config(uint32_t timer_periph, uint32_t timer_intrigger)
{
    timer_input_trigger_source_select(timer_periph,timer_intrigger);
    TIMER_SMCFG(timer_periph) |= (uint32_t)TIMER_SLAVE_MODE_EXTERNAL0;
}