diff options
| author | Miguel <m.i@gmx.at> | 2018-08-17 21:41:21 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-08-17 21:41:21 +0200 |
| commit | c15925a24efe14f437d8a2699500241a58fdc8f9 (patch) | |
| tree | c0db3a7d2a4f857324735df35e9cc1f0539c5f24 /kernel/fifo.h | |
| parent | 6fd78c2ff950310d8372ec0353553cc4a5a43e72 (diff) | |
cleanup and working on fifo pipes
Diffstat (limited to 'kernel/fifo.h')
| -rw-r--r-- | kernel/fifo.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/kernel/fifo.h b/kernel/fifo.h index a574a25..b5c11a4 100644 --- a/kernel/fifo.h +++ b/kernel/fifo.h @@ -1,4 +1,4 @@ -// SIMPLE FIFO DRIVER +// SIMPLE FIFO DRIVER // #ifndef FIFO_H #define FIFO_H @@ -12,12 +12,13 @@ typedef struct fifo_struct uint8_t (*get)(struct fifo_struct*); bool (*has)(struct fifo_struct*); - void *data; // opaque! can be a vt52 or a ringbuffer.. + void *data; // opaque data }fifo; -volatile bool fifo_put(fifo*,uint8_t); -volatile uint8_t fifo_get(fifo*); -volatile bool fifo_has(fifo*); +bool fifo_put(fifo*,uint8_t); +uint8_t fifo_get(fifo*); +bool fifo_has(fifo*); +fifo fifo_create_buffered(uint8_t size); #endif |
