47 TIM_CCER(timer_peripheral) |= (0x2 << (ic * 4));
49 TIM_CCER(timer_peripheral) &= ~(0x2 << (ic * 4));
tim_ic_pol
Input Capture input polarity.
#define TIM_CCER(tim_base)
tim_ic_id
Input Capture channel designators.
void timer_ic_set_polarity(uint32_t timer_peripheral, enum tim_ic_id ic, enum tim_ic_pol pol)
Set Input Polarity.