stm32-rs / stm32l4xx-hal

A Hardware abstraction layer for the stm32l432xx series chips written in rust.
157 stars 104 forks source link

Fix confusion between pin number and AF number #254

Closed DrTobe closed 3 years ago

DrTobe commented 3 years ago

Unfortunately, I got lost in the macro depths when working on the gpio typestates and a small but significant bug sneaked in. When requesting pin PAx to AFy, this erroneously configured PAy to get the requested output type (push-pull or open-drain). This is fixed now.