You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
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:
You initiate a transfer which takes ownership of the slice of memory you want to send
You can poll that transfer to completion (and do that in a tight loop if you want a "blocking" API)
Anyone mind if I take this on? I've been playing around with the DMA controller, and I have a working DMA-based UART driver in another project. My second pass should be better than my first 😛
@dflemstr, if you have the time, I'd love your thoughts on #49. I've demonstrated full-duplex SPI transfers using DMA in the teensy4-rs repo, and it'd be good to see if this could satisfy your use-case.
This is looking fantastic! Due to covid and other things I have had to postpone making progress, but I will make an attempt to port over the code for my use-case on top of your feature branch!
From @dflemstr:
Manually migrating this from mciantyre/teensy4-rs#51
The text was updated successfully, but these errors were encountered: