/* Set External Trigger Filter Parameters for Slave. 
Set the input filter parameters for the external trigger, specifying:  */
void timer_slave_set_filter(uint32_t timer_peripheral, enum tim_ic_filter flt)
/* Set External Trigger Filter Parameters for Slave. 
Set the input filter parameters for the external trigger, specifying:  */
void timer_slave_set_filter(uint32_t timer_peripheral, enum tim_ic_filter flt)
{
	TIM_SMCR(timer_peripheral) &= ~TIM_SMCR_ETF_MASK;
	TIM_SMCR(timer_peripheral) |= flt << 8;
}