-
Notifications
You must be signed in to change notification settings - Fork 221
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
[DMA 1/N] Add mode to DMA channel drivers #2519
Conversation
5b89010
to
b901bd6
Compare
This comment was marked as outdated.
This comment was marked as outdated.
45b74c8
to
1990754
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides the burst thing, it looks like the behavior is overall the same.
fn peripheral_interrupt(&self) -> Option<Interrupt>; | ||
fn async_handler(&self) -> Option<InterruptHandler>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Long term I think these should be #[cfg]
s rather than Option
s, as it makes it easier to grok what's really happening.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Thank you for your contribution!
We appreciate the time and effort you've put into this pull request.
To help us review it efficiently, please ensure you've gone through the following checklist:
Submission Checklist 📝
cargo xtask fmt-packages
command to ensure that all changed code is formatted correctly.CHANGELOG.md
in the proper section.Extra:
Pull Request Details 📖
Description
This PR adds
Mode
type parameters toChannelRx
andChannelTx
, so that in the future we can independently configure them between blocking and async modes. The PR also swaps the Mode and DMA chanel type params ofChannel
, so that it is consistent with other peripherals - even if we apply different rules to DMA instance typing.