Skip to content

Conversation

@bjoernQ
Copy link
Contributor

@bjoernQ bjoernQ commented Jul 20, 2023

This is a breaking change to the DMA transfer's wait (and for I2S wait_receive) functions to make them potentially fallible.
It also adds checking for DMA descriptor errors as described in #491. Probably there might be more conditions to check but at least this changes the API in a way that can be added later.

For the async API (which we only have for SPI currently) it's already fallible - so no API change there.

Closes #491

@MabezDev
Copy link
Member

I think there is some missing esp-hal-common code from the commits? :D

@bjoernQ
Copy link
Contributor Author

bjoernQ commented Jul 20, 2023

I think there is some missing esp-hal-common code from the commits? :D

🤦‍♂️ yes I forgot to commit most of the code 🤦‍♂️

Copy link
Member

@MabezDev MabezDev left a comment

Choose a reason for hiding this comment

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

LGTM!

@MabezDev MabezDev merged commit 170d590 into esp-rs:main Jul 22, 2023
@MabezDev MabezDev mentioned this pull request Jul 22, 2023
8 tasks
playfulFence pushed a commit to playfulFence/esp-hal that referenced this pull request Sep 26, 2023
@bjoernQ bjoernQ deleted the fallible-dma branch November 26, 2024 08:44
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.

DMA descriptor errors: checking "during" the transfer

2 participants