DMA RingBuffer for embedded devices

What are you developing?
Post Reply
Bambo
Posts: 75
Joined: Wed Jan 15, 2020 8:36 pm

DMA RingBuffer for embedded devices

Post by Bambo »

Hi!

I've made this Ring Buffer to use for spooling data between devices that run at different rates.

Single items can be appended to it, and then large chunks can be read at once. It's designed to be used with the STM32SD card, which allows large block writing with DMA access.

To use it with the DMA, you must set the Skip parameter of Read() to false, then manually skip it in the DMA callback! (see the second example).

https://github.com/Bambofy/EmbeddedRingBuffer
Post Reply

Return to “Projects”