Skip to content

Conversation

burrbull
Copy link
Member

@burrbull burrbull commented Jan 9, 2022

Alternative to #390

@burrbull burrbull force-pushed the usart-pins branch 2 times, most recently from 51f919b to d009003 Compare January 9, 2022 18:46
Copy link
Contributor

@horazont horazont left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, that would work. However, I think this points at a problem with the API: https://github.com/stm32-rs/stm32f1xx-hal/pull/392/files#diff-6c6f014a7f636e0dd1ce76320128a53b7bed96a29540822c340aeba0d9c9c1fdR23-R24

Now, the interrupt implementation (which cannot be easily generalized because it needs a static) depends on the pins used for the serial peripheral. Given that, I'd still want to introduce a pin-erased version of Serial, Tx and Rx. Nonetheless, I agree that #392 is a better standalone fix for #386 than #390.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants