Skip to content
/ rbuf Public

Multitype Ring Buffer (Circular Buffer) Library for STM32

License

Notifications You must be signed in to change notification settings

nimaltd/rbuf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multitype Ring Buffer (Circular Buffer) Library for STM32


Please Do not Forget to get STAR, DONATE and support me on social networks. Thank you. 💖



Caution

This Library using malloc(), Please increase the Heap Size.



Watch the Video:

Video

#include "rbuf.h"
.
.
.
int main(void)
{
  .
  .
  .
  uint8_t wdata = 5, rdata;
  RBUF_HandleTypeDef* rbuf = RBUF_Init(sizeof(uint8_t), 16);
  RBUF_Push(&rbuf, &wdata);
  RBUF_Pop(&rbuf, &rdata);
}