summaryrefslogtreecommitdiff
path: root/kernel/fifo.c
diff options
context:
space:
mode:
authorMichal Idziorek <m.i@gmx.at>2015-05-18 01:31:58 +0200
committerMichal Idziorek <m.i@gmx.at>2015-05-18 01:31:58 +0200
commitfe79552d9fcfd60d8c2bb828c6b93cf471ef7b75 (patch)
tree7bf842857ce4f485101848292405a96f322fe374 /kernel/fifo.c
parentdb22b587966b4a4eaa47536f32ca812532446bcb (diff)
fifo interface
Diffstat (limited to 'kernel/fifo.c')
-rw-r--r--kernel/fifo.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/kernel/fifo.c b/kernel/fifo.c
new file mode 100644
index 0000000..abd6c46
--- /dev/null
+++ b/kernel/fifo.c
@@ -0,0 +1,16 @@
+#include "fifo.h"
+
+bool fifo_put(fifo* f,uint8_t c)
+{
+ return f->put(f->data,c);
+}
+
+uint8_t fifo_get(fifo* f)
+{
+ return f->get(f->data);
+}
+
+bool fifo_has(fifo* f)
+{
+ return f->has(f->data);
+}