/* Set Timer Option. 
Set timer options register on TIM2 or TIM3, used for trigger remapping. */
void timer_set_option(uint32_t timer_peripheral, uint32_t option)
/* Set Timer Option. 
Set timer options register on TIM2 or TIM3, used for trigger remapping. */
void timer_set_option(uint32_t timer_peripheral, uint32_t option)
{
	if (timer_peripheral == TIM2) {
		TIM_OR(timer_peripheral) &= ~TIM2_OR_ITR1_RMP_MASK;
		TIM_OR(timer_peripheral) |= option;
	} else if (timer_peripheral == TIM3) {
		TIM_OR(timer_peripheral) &= ~TIM3_OR_ITR2_RMP_MASK;
		TIM_OR(timer_peripheral) |= option;
	}
}