/* Set External Trigger Prescaler for Slave. 
Set the external trigger frequency division ratio. */
void timer_slave_set_prescaler(uint32_t timer_peripheral, enum tim_ic_psc psc)
/* Set External Trigger Prescaler for Slave. 
Set the external trigger frequency division ratio. */
void timer_slave_set_prescaler(uint32_t timer_peripheral, enum tim_ic_psc psc)
{
	TIM_SMCR(timer_peripheral) &= ~TIM_SMCR_ETPS_MASK;
	TIM_SMCR(timer_peripheral) |= psc << 12;
}