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

SPI: Clear DMA interrupts before (not after) DMA starts #1859

Merged
merged 2 commits into from
Jul 26, 2024

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.
  • My changes are in accordance to the esp-rs API guidelines

Extra:

Pull Request Details 📖

Description

Fixes #1857

Testing

Ran the embassy_spi example on an ESP32 (works after the commit) and ESP32S3 (no change).

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

@bjoernQ
Copy link
Contributor

bjoernQ commented Jul 26, 2024

@plaes mind testing this PR with your code?

Copy link
Contributor

@JurajSadel JurajSadel 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!

@plaes
Copy link
Contributor

plaes commented Jul 26, 2024

@plaes mind testing this PR with your code?

Yes works on my esp32 (esp32 (revision v3.0)) boards.

Tested-By: Priit Laes plaes@plaes.org

@bjoernQ
Copy link
Contributor

bjoernQ commented Jul 26, 2024

@Dominaezzz seems 1.80 is a bit more pedantic regarding doc list item missing indentation - mind fixing it here? - otherwise we can fix it in another PR and you can rebase - at your option

@bjoernQ bjoernQ added this pull request to the merge queue Jul 26, 2024
Merged via the queue into esp-rs:main with commit 2744a5d Jul 26, 2024
18 checks passed
@Dominaezzz Dominaezzz deleted the spi_async_fix branch July 27, 2024 11:15
@SergioGasquez
Copy link
Member

Look like the changes introduced in this PR made the spi_full_duplex_dma test fail for S3, see #1524 (comment)

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.

Async SPI broken for ESP32
5 participants