Simple monitor program
This commit is contained in:
+4
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user