Essential C Language Tools for Embedded Development
原文:https://zhuanlan.zhihu.com/p/653484840 In embedded development, commonly used C language tool code is indeed very important. Today, I will share some sharp-level C language tool code examples, along with brief explanations. 1. Circular Buffer: typedef struct { int buffer[SIZE]; int head; int tail; int count; } CircularBuffer; void push(CircularBuffer *cb, int data) { if (cb->count < SIZE) … Read more