-
Notifications
You must be signed in to change notification settings - Fork 29
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
Support SPI DMA transfers #51
Comments
Happy to help out. Just want to note that we're re-implementing this repository's HAL on a different foundation. Check out the work in the imxrt-rs repository. #49 talks about the compilation speed improvements gained from using a different register access layer. If we want to implement DMA channels and abstractions, we'll want to add them over in that repo. Any thoughts about what a DMA API might look like for your use-case? Haven't seen many DMA-based Rust drivers, though I haven't looked too hard. |
I have another side project where I've been trying to eek out the maximum amount of performance from SPI in a device independent manner. I defined the API to look like this: https://github.com/dflemstr/embedded-platform/blob/master/src/spi.rs Of course, that introduces async as well, while this crate/embedded_hal is very focused on blocking APIs. However the main take-away from that API I think is:
|
I moved this to imxrt-rs/imxrt-hal#43. Let's have follow-up discussions there. |
I love the recent development and buzz around SPI support. In my application, I want to transfer a lot of data, and it would hence be useful to support DMA transfers for SPI!
The text was updated successfully, but these errors were encountered: