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

Migrate PARL_IO driver to newer DMA API #3033

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Dominaezzz
Copy link
Collaborator

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 📝

  • I have updated existing examples or added new ones (if applicable).
  • I have used cargo xtask fmt-packages command to ensure that all changed code is formatted correctly.
  • My changes were added to the CHANGELOG.md in the proper section.
  • I have added necessary changes to user code to the Migration Guide.
  • My changes are in accordance to the esp-rs API guidelines

Extra:

Pull Request Details 📖

Description

It's all the title says the driver now uses the newer DMA move APIs.
As a consequence of this and #2587, EofMode on the RX side is now specified at transfer time instead of construction time.
imo, this gives users more flexibility.

Testing

HIL

@Dominaezzz Dominaezzz mentioned this pull request Jan 25, 2025
20 tasks
@bjoernQ
Copy link
Contributor

bjoernQ commented Jan 27, 2025

Nice! I wanted to do this for quite some time 👍

@@ -1733,73 +1795,51 @@ pub mod asynch {
cx: &mut core::task::Context<'_>,
) -> Poll<Self::Output> {
TX_WAKER.register(cx.waker());
Copy link
Contributor

Choose a reason for hiding this comment

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

You can move the TX registration to the else branch, just above listen_tx_done.

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.

3 participants