Simple monitor program

This commit is contained in:
Joppe Blondel
2026-09-28 13:36:52 +02:00
parent 67ec3c9a65
commit bedcbfdd24
6 changed files with 368 additions and 76 deletions
+4 -2
View File
@@ -1,7 +1,9 @@
#ifndef __H_CIRC_BUF
#define __H_CIRC_BUF
#include <stdint.h>
#define BUFFER_SIZE 5
#define BUFFER_SIZE 64
typedef struct {
char data[BUFFER_SIZE];
@@ -16,4 +18,4 @@ uint8_t buffer_is_empty(volatile circular_buffer_t* b);
uint8_t buffer_enqueue(volatile circular_buffer_t* b, char c);
uint8_t buffer_dequeue(volatile circular_buffer_t* b, char* c);
#endif
#endif