Skip to content

Conversation

@BryanKadzban
Copy link
Contributor

There's already a tree of functions to do this starting with a TxPrivate or RxPrivate ... but those aren't supposed to be used outside the HAL. Add a fn to the transaction traits instead, and implement it using the support in RxPrivate and TxPrivate.

Must

  • The code compiles without errors or warnings.
  • All examples work.
  • cargo fmt was run.
  • Your changes were added to the CHANGELOG.md in the proper section.
  • You updated existing examples or added examples (if applicable).
  • Added examples are checked in CI

Unsure if examples work - I have no access to the hardware at the moment.

There are a few existing warnings, but this PR does not add any more.

Nice to have

  • You add a description of your work to this PR.
  • You added proper docs for your newly added features and code.

Implement it by forwarding to the DMA channel's existing is_done mehod.
Add the implementation to both SPI and I2S DMA transfer structs.
Only in the SPI case, but the I2S case has the same API so this should
be fine.
Copy link
Contributor

@bjoernQ bjoernQ left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks

@bjoernQ bjoernQ merged commit 278ce40 into esp-rs:main May 25, 2023
@BryanKadzban BryanKadzban deleted the add-dma-poll branch May 25, 2023 20:04
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.

2 participants