-
Notifications
You must be signed in to change notification settings - Fork 270
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
Cleanup dma module #1480
Cleanup dma module #1480
Conversation
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.
Initial review will probably follow up next week, but overall looking great! Thanks for doing this, having better error handling is going to be really nice because I think we can close a bunch of issues around this topic.
Converted to draft since I decided to think about a few things a bit more. Probably already start reviewing it wouldn't hurt |
1454710
to
38e0ab0
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.
Code LGTM!
I tried some DMA-related examples and on ESP32 the embassy_spi
doesn't print any data transferred, main branch works fine. Others examples seems to be working fine for me.
Thanks for testing ... I can reproduce this! |
38e0ab0
to
80cddba
Compare
@JurajSadel embassy_spi now works for me on ESP32 |
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!
80cddba
to
3ff7508
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.
LGTM! Thank you, very nice improvements. Very excited to have error handling for async!
} | ||
|
||
impl<'a, TX> core::future::Future for DmaTxFuture<'a, TX> | ||
where | ||
TX: Tx, | ||
{ | ||
type Output = (); // TODO handle DMA errors | ||
type Output = Result<(), DmaError>; |
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.
🎉
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 📝
CHANGELOG.md
in the proper section.Extra:
Pull Request Details 📖
Description
Instance
andInstanceDma
in SPI moduleTesting
All examples should exactly work as before. This has some potential to break things - we should be careful