-
Notifications
You must be signed in to change notification settings - Fork 252
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
Lift static
requirement on DMA buffers
#1837
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple more changes, sorry!
Could we also add a top level hal comment (somewhere?) to state that in general our drivers are not core::mem::forget
safe, and nothing from the HAL should be core::mem::forget
'd to avoid UB?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! This looks great!
87d794f
to
935878b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you for taking care of this!
@@ -28,7 +28,6 @@ embassy-sync = { version = "0.6.0", optional = true } | |||
embassy-usb-driver = { version = "0.1.0", optional = true } | |||
embassy-usb-synopsys-otg = { version = "0.1.0", optional = true } | |||
embedded-can = { version = "0.4.1", optional = true } | |||
embedded-dma = "0.2.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Glad to see this go, never really understood the point of it honestly 😁
Looks like this needs a rebase, please! |
935878b
to
fe7d5dd
Compare
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 📝
cargo xtask fmt-packages
command to ensure that all changed code is formatted correctly.CHANGELOG.md
in the proper section.Extra:
Pull Request Details 📖
Description
This makes it possible to use non-static buffers for DMA. Closes #1245
Testing
All tests and examples work like before. Try using non-static DMA buffers