japaric / stm32f103xx-hal

HAL for the STM32F103xx family of microcontrollers
Apache License 2.0
115 stars 40 forks source link

Re-Introduce into_open_drain_output #63

Open kellerkindt opened 6 years ago

kellerkindt commented 6 years ago

See explanation at #51

tib888 commented 6 years ago

What if into_open_drain_output would return not only an OutputPin, but also an InputPin? This would be more clear than the specialization of the is_low() in OpenDrain mode. The only drawback I see is that both of the returned structs should be consumed by the next into_XXX call.

kellerkindt commented 6 years ago

What about the my latest update? #51