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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unsafe dma api #1523

Closed
wants to merge 3 commits into from
Closed

Add unsafe dma api #1523

wants to merge 3 commits into from

Conversation

bjoernQ
Copy link
Contributor

@bjoernQ bjoernQ commented Apr 29, 2024

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).
  • My changes were added to the CHANGELOG.md in the proper section.

Extra:

Pull Request Details 馃摉

Description

Fixes #1512

Bringing back the old clumsy API doesn't seem to be a good solution so this adds unsafe versions of write_dma, read_dma and transfer_dma for SPI master

Testing

Tested with https://github.com/bjoernQ/rust-esp32s3-ili9341 and the existing examples

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!

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.

I'm not against having this as an API, but I think we should explore what we're trying to solve in #1512 first.

@jessebraham jessebraham marked this pull request as draft May 21, 2024 16:36
@jessebraham
Copy link
Member

Marking this as draft for now.

@bjoernQ
Copy link
Contributor Author

bjoernQ commented May 22, 2024

Marking this as draft for now.

Thanks for reminding me of this. I will close this since we should find a better solution than going unsafe

@bjoernQ bjoernQ closed this May 22, 2024
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.

Have a Move-In-Move-Out DMA transaction API in addition (again)
4 participants