stm32-rs / stm32g0xx-hal

Peripheral access API for STM32G0 series microcontrollers
Apache License 2.0
73 stars 51 forks source link

GPIO - alternate function + open drain #132

Closed andrej-mk closed 1 year ago

andrej-mk commented 1 year ago

Hi.

I would like to use GPIO pin as timer output, but in open drain configuration instead of push-pull. I've found method setup(&self) in trait TimerPin<TIM>, but it accepts only pin in default Analog mode. Does HAL allow to configure timer pin as open drain?

andrej-mk commented 1 year ago

Implementation attempt https://github.com/stm32-rs/stm32g0xx-hal/pull/133