Page 1 of 1

Is there a ring buffer library in IDF?

Posted: Wed May 26, 2021 10:04 pm
by zliudr
I am writing a device driver for printers and need ring buffers for printer responses. I wonder if there is one that handles buffering read of UART etc or the buffer is built into the UART code. I've not read the code yet. I just read Arduino's HardwareSerial.cpp for an idea but their code has the ring buffer mixed with the hardware serial code so it's not independent nor is it reusable. A quick internet search turned up a few git repos and none of which has nearly long enough history and forks to give me confidence in.

Thanks!

Re: Is there a ring buffer library in IDF?

Posted: Wed May 26, 2021 10:22 pm
by tosemusername

Re: Is there a ring buffer library in IDF?

Posted: Wed May 26, 2021 10:43 pm
by zliudr
Great! Thank you! That was very speedy response. How do you read all the IDF references? It's so long I wish I could take a break and just read the references for a month :D