Ring Buffer
Loading...
Searching...
No Matches
My Ring Buffer implementation

Introduction

This is my implementation of ring buffer. It was primary created as a part of bigger project, but I decided to share it with everyone.
It was created for use with STM32L151 peripherals (UART, SPI). Then I used it on STM32F4, STM32F3, and PIC18F platforms without problems.
It implements two types of work.
One is opration on an array pointer, which gives an ability to create multiple buffers with different size, but the user must provide an array for buffer.
Second is with fixed size array, where user only has to create buffer structure, bute every buffer have the same size.