-
Notifications
You must be signed in to change notification settings - Fork 369
[DMA 1/N] Add mode to DMA channel drivers #2519
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
Conversation
5b89010 to
b901bd6
Compare
This comment was marked as outdated.
This comment was marked as outdated.
45b74c8 to
1990754
Compare
Dominaezzz
left a comment
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 Options, as it makes it easier to grok what's really happening.
bjoernQ
left a comment
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
jessebraham
left a comment
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-packagescommand to ensure that all changed code is formatted correctly.CHANGELOG.mdin the proper section.Extra:
Pull Request Details 📖
Description
This PR adds
Modetype parameters toChannelRxandChannelTx, 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.