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

Support configuring parity and stop-bits for UART #353

Open
septatrix opened this issue Oct 16, 2022 · 2 comments
Open

Support configuring parity and stop-bits for UART #353

septatrix opened this issue Oct 16, 2022 · 2 comments
Labels
hal-api API design for the different components of avr-hal hal-generic Related to MCU generic parts of avr-hal help wanted Extra attention is needed

Comments

@septatrix
Copy link

Is there any way these can be configured?

@septatrix
Copy link
Author

Okay I think I figured it out. There do not seem to be any safe wrappers however direct access using dp.USART0.* should be all I need.

@Rahix
Copy link
Owner

Rahix commented Oct 17, 2022

The point of avr-hal is exactly such safe wrappers so let's reopen this issue to track such a feature. I think the best way forward is passing an options struct to the ::new() which holds baudrate, parity, and all other relevant settings. If anyone is interested in working on this, feel free to!

@Rahix Rahix added help wanted Extra attention is needed hal-api API design for the different components of avr-hal hal-generic Related to MCU generic parts of avr-hal labels Oct 17, 2022
@Rahix Rahix reopened this Oct 17, 2022
@Rahix Rahix changed the title How to configure UART parity and stop bits? Support configuring parity and stop-bits for UART Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hal-api API design for the different components of avr-hal hal-generic Related to MCU generic parts of avr-hal help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants