Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

split Serial PINS #392

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

split Serial PINS #392

wants to merge 1 commit into from

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants