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

Add support for synchronous USART mode #271

Merged
merged 15 commits into from Aug 11, 2020
Merged

Add support for synchronous USART mode #271

merged 15 commits into from Aug 11, 2020

Conversation

hannobraun
Copy link
Member

No description provided.

I'm working on adding support for synchronous mode to the USART API,
which would make this method name too unspecific.
`pub(crate)` is no longer required since the big clock refactoring.
This is required because the clock is handled differently in synchronous
and asynchronous mode.
This method can be shared between the enable methods for the different
modes.
This method can be reused by other enable methods for other modes.
They are redundant, as everything they guarantee is already guaranteed
by the correct choice of pins in the `usart::Instance` implementations.
Copy link
Member

@david-sawatzke david-sawatzke left a comment

Choose a reason for hiding this comment

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

LGTM otherwise

src/usart/peripheral.rs Outdated Show resolved Hide resolved
src/usart/peripheral.rs Outdated Show resolved Hide resolved
src/usart/peripheral.rs Outdated Show resolved Hide resolved
src/usart/state.rs Outdated Show resolved Hide resolved
src/usart/state.rs Outdated Show resolved Hide resolved
hannobraun and others added 3 commits August 11, 2020 13:50
Fix comment typos

Co-authored-by: david-sawatzke <david-sawatzke@users.noreply.github.com>
@hannobraun
Copy link
Member Author

Thanks for the review! Pushed new commits to address the comments. Should be good to go now.

@hannobraun hannobraun merged commit fb920d2 into lpc-rs:master Aug 11, 2020
@hannobraun hannobraun deleted the usart-sync branch August 11, 2020 12:26
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.

None yet

2 participants