We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
While working with an QEI encoder, I could not find a safe way of changing the polarity of one of the encoders inputs. I had to use
unsafe { stm32f1xx_hal::pac::Peripherals::steal() .TIM2 .ccer .modify(|_, w| w.cc2p().set_bit()); }
after Timer::new() since this method resets the timer to its default configuration, so it is not possible to configure CCER in advance.
Timer::new()
CCER
There should be a way of changing the polarity either from the Timer object or from the Qei one.
Timer
Qei
The text was updated successfully, but these errors were encountered:
No branches or pull requests
While working with an QEI encoder, I could not find a safe way of changing the polarity of one of the encoders inputs. I had to use
after
Timer::new()
since this method resets the timer to its default configuration, so it is not possible to configureCCER
in advance.There should be a way of changing the polarity either from the
Timer
object or from theQei
one.The text was updated successfully, but these errors were encountered: