Intial code push

This commit is contained in:
Sunseeker Lab A-216
2021-05-06 17:42:30 -04:00
parent fe095eada0
commit 47ce3522ea
612 changed files with 245803 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
#ifndef char_FIFO_H
#define char_FIFO_H
#ifndef fifo_size
#define fifo_size 16
#endif
typedef struct _char_fifo
{
unsigned char fifo[fifo_size];
unsigned char *PutPt;
unsigned char *GetPt;
} char_fifo;
extern void CHAR_FIFO_INIT(char_fifo queue);
extern int CHAR_FIFO_PUT(char_fifo *queue, char data);
extern int CHAR_FIFO_GET(char_fifo *queue,unsigned char volatile *data);
extern int CHAR_FIFO_STAT(char_fifo *queue);
#endif