-
Notifications
You must be signed in to change notification settings - Fork 140
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
Use DMA Transfer API in I2S module #209
Conversation
Thanks! I think |
Ahh i see... I can't really figure out how to implement them for this at the moment, i guess i haven't fully understood how they're supposted to be used... Any hints? |
I've also never used them so far, unfortunately. |
I’ll do my homework ;) |
Ok i have a working implementation using the |
5: Prepare 0.1.1 release r=therealprof a=eldruin A release with the signed integer implementations would be helpful for nrf-rs/nrf-hal#209 Co-authored-by: Diego Barrios Romero <eldruin@gmail.com>
FYI, I just published |
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.
Looks good, thanks!
I changed the I2S module to use a DMA
Transfer
API for TX and RX operations.I also added support for full duplex transfers and the demos were updated according to the new API.
"Controller mode" demo (TX):
https://github.com/kalkyl/nrf-hal/blob/i2s-dma/examples/i2s-controller-demo/src/main.rs
"Peripheral mode" demo (RX):
https://github.com/kalkyl/nrf-hal/blob/i2s-dma/examples/i2s-peripheral-demo/src/main.rs