Closed mcopela closed 4 years ago
See #68, which also does this (I think), but is probably wrong as well for some devices in the STM32l0x1 family.
I'm working on a PR that fixes this for all MCUs by basing the cfg flags on the io-*
features, just like #87 but for UART.
This should now be fixed in #68.
@mcopela testing that branch would be very welcome! It also includes an API change, where the Pins
trait is replaced with RxPin
and TxPin
(as discussesd in #67).
@dbrgn Shall we close this PR given #68 is complete/merged?
@arkorobotics I would say so, #68 includes the changes that were proposed here!
Copy!
Thank you guys! I'll test the new merges today
The serial file only has one set of USART2 pins under the STM32l0x1 feature flag, while the STM32l031 setting sheet lists four.
I added all the available USART2 pins and tested on my Nucleo-L031K6 evaluation board.