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

Implement embedded-io traits for Usart #111

Merged
merged 4 commits into from
Dec 19, 2024

Conversation

akhilles
Copy link
Contributor

This is gated by the embedded-hal feature. Tested on an STM32H747.

@David-OConnor
Copy link
Owner

Looking good; I'll test it at some point.

@David-OConnor
Copy link
Owner

Is this ready for revie?

@akhilles
Copy link
Contributor Author

Yup, good to review

This is gated by the embedded-hal feature. Tested on an STM32H747.

Signed-off-by: Akhil Velagapudi <4@4khil.com>
Better to fail fast.

Signed-off-by: Akhil Velagapudi <4@4khil.com>
Makes it easier to use generic Usart impls because BaudPeriph and
RccPeriph are private traits.

Signed-off-by: Akhil Velagapudi <4@4khil.com>
G4, H7, etc. require explicitly clearing the error flags from the ICR
register.

Signed-off-by: Akhil Velagapudi <4@4khil.com>
@akhilles
Copy link
Contributor Author

akhilles commented Dec 5, 2024

Discovered an issue with more testing where error states weren't being cleared reliably. Turns out on newer families you have to explicitly clear error states from the ICR register. Fixed in ec26a71. I've been testing quite a bit on the H7, but not other families.

@David-OConnor
Copy link
Owner

Nice

@David-OConnor David-OConnor merged commit 42e9386 into David-OConnor:main Dec 19, 2024
7 of 48 checks passed
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