[timers] Fixed typo
- Bit shift should be 2, not 4 (see the datatsheet - TIMx_CMMR2 register)
This commit is contained in:
parent
8dcf21e755
commit
dfeeda24ba
@ -2021,7 +2021,7 @@ void timer_ic_set_prescaler(uint32_t timer_peripheral, enum tim_ic_id ic,
|
||||
break;
|
||||
case TIM_IC3:
|
||||
TIM_CCMR2(timer_peripheral) &= ~TIM_CCMR2_IC3PSC_MASK;
|
||||
TIM_CCMR2(timer_peripheral) |= psc << 4;
|
||||
TIM_CCMR2(timer_peripheral) |= psc << 2;
|
||||
break;
|
||||
case TIM_IC4:
|
||||
TIM_CCMR2(timer_peripheral) &= ~TIM_CCMR2_IC4PSC_MASK;
|
||||
|
Loading…
x
Reference in New Issue
Block a user