22 tim->CCMR1 |= STM32_TIM_CCMR1_IC1F(filter_mode);
25 tim->CCMR1 |= STM32_TIM_CCMR1_IC2F(filter_mode);
28 tim->CCMR2 |= STM32_TIM_CCMR2_IC3F(filter_mode);
31 tim->CCMR2 |= STM32_TIM_CCMR2_IC4F(filter_mode);
void stm32_timer_set_input_filter(stm32_tim_t *tim, uint8_t channel, uint8_t filter_mode)