41 if (timer_peripheral ==
TIM2) {
42 TIM_OR(timer_peripheral) &= ~TIM2_OR_ITR1_RMP_MASK;
43 TIM_OR(timer_peripheral) |= option;
44 }
else if (timer_peripheral ==
TIM5) {
45 TIM_OR(timer_peripheral) &= ~TIM5_OR_TI4_RMP_MASK;
46 TIM_OR(timer_peripheral) |= option;
void timer_set_option(uint32_t timer_peripheral, uint32_t option)
Set Timer Option.