Page 1 of 1

DMA RingBuffer for embedded devices

Posted: Sun Jun 06, 2021 1:14 pm
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