I have a rotary encoder hooked up to a STM32G030 microcontroller. I am trying to use the Quadrature Encoder Interface (QEI) from Embassy like this:
let ch1_pin = QeiPin::new_ch1(p.PA8);
let ch2_pin = QeiPin::new_ch2(p.PA9);
let mut qei = Qei::new(p.TIM1, ch1_pin, ch2_pin);
However, my channel 1 and 2 pins do not have an external pull up resistor. According to the datasheet of STM32G030, I should be able to configure the internal pull up resistor.
I have tried to look around at how this should be done with Embassy, but it seems that all avenues that I could see are not available, since each time the function that seems to be able to configure the pin to have an internal pull up register is not public.
In what way can I best enable that pull up register?