Circular buffers are a critical component to have in the embedded software engineers’ toolbox. Over the years there have been many different implementations and examples of circular buffers that have littered the internet. I’ve grown particularly fond of the open source CBUF.h module that can be found at https://github.com/barraq/BRBrain/blob/master/firmware/CBUF.h The CBUF.h module implements a circular buffer using … Continue reading Tools – Open Source Circular Buffers
Tag: circular buffer
7 Steps to Customizing printf with a Circular Buffer
The use of printf with an embedded systems based on a microcontroller has been generally not recommended as an industry best practice. A few reasons to avoid the use of printf is that it can usually inefficient, is a blocking function and interrupts the real-time behavior of the embedded system. The truth though is that … Continue reading 7 Steps to Customizing printf with a Circular Buffer