Closed mikepurvis closed 8 years ago
stm32plus currently supports only rising or falling edge:
https://github.com/andysworkshop/stm32plus/blob/20d12f92ed92f2cbdd517de26e879014cec64baf/lib/include/timer/features/TimerEncoderFeature.h#L28-L31
But the underlying fwlib has an option for TIM_ICPolarity_BothEdge:
TIM_ICPolarity_BothEdge
https://github.com/andysworkshop/stm32plus/blob/20d12f92ed92f2cbdd517de26e879014cec64baf/lib/fwlib/f4/stdperiph/inc/stm32f4xx_tim.h#L507-L509
Woot, thanks!
stm32plus currently supports only rising or falling edge:
https://github.com/andysworkshop/stm32plus/blob/20d12f92ed92f2cbdd517de26e879014cec64baf/lib/include/timer/features/TimerEncoderFeature.h#L28-L31
But the underlying fwlib has an option for
TIM_ICPolarity_BothEdge
:https://github.com/andysworkshop/stm32plus/blob/20d12f92ed92f2cbdd517de26e879014cec64baf/lib/fwlib/f4/stdperiph/inc/stm32f4xx_tim.h#L507-L509