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

Add DMA buffer view support to I8080 driver #2268

Merged
merged 2 commits into from
Oct 7, 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.
  • 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

Add the ability to safely view the DMA buffer whilst it's in use. Similar to what was done for #2242 .
There aren't any DmaTxBuffer' implementations that have meaningful views right now but in the near future I'll be introducing a DmaTxStreamBuf (and maybe a DmaTxCircularBuf if I figure what to do with #2021).

No changelog because this is more/less an extension of #2191 which hasn't been released yet.

Testing

At the moment there aren't any DmaTxBuffer' implementations that support views so I can't "test" this but the code changes should be pretty straight forward.

@Dominaezzz Dominaezzz added the skip-changelog No changelog modification needed label Oct 2, 2024
@bugadani bugadani mentioned this pull request Oct 3, 2024
20 tasks
Copy link
Member

@jessebraham jessebraham left a comment

Choose a reason for hiding this comment

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

Thanks!

@jessebraham jessebraham added this pull request to the merge queue Oct 7, 2024
Merged via the queue into esp-rs:main with commit 897a678 Oct 7, 2024
28 checks passed
bugadani pushed a commit to bugadani/esp-hal that referenced this pull request Oct 7, 2024
* Add DMA buffer view support to I8080 driver

* reconstruct buffer before dropping

---------

Co-authored-by: Dominic Fischer <git@dominicfischer.me>
@Dominaezzz Dominaezzz deleted the add_view_support_i8080 branch October 7, 2024 19:07
@Dominaezzz Dominaezzz mentioned this pull request Nov 18, 2024
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog No changelog modification needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants