46 if (timer_peripheral ==
TIM2) {
47 TIM_OR(timer_peripheral) &= ~TIM2_OR_ITR1_RMP_MASK;
48 TIM_OR(timer_peripheral) |= option;
49 }
else if (timer_peripheral ==
TIM3) {
50 TIM_OR(timer_peripheral) &= ~TIM3_OR_ITR2_RMP_MASK;
51 TIM_OR(timer_peripheral) |= option;
void timer_set_option(uint32_t timer_peripheral, uint32_t option)
Set Timer Option.