summaryrefslogtreecommitdiff
path: root/firmware/fifo.c
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2011-10-11 21:56:36 +0200
committerYves Fischer <yvesf-git@xapek.org>2011-10-11 21:56:36 +0200
commitcbc941282074856fc6179761b70a0c9879b0b64d (patch)
treeed15c6d9e20ceaf1ff01a05aa63054410bb8ed54 /firmware/fifo.c
parent324c5ba9098c1010d0aa8c1e26b95509878ce9f2 (diff)
downloadmini-octopus-cbc941282074856fc6179761b70a0c9879b0b64d.tar.gz
mini-octopus-cbc941282074856fc6179761b70a0c9879b0b64d.zip
update firmware to @319
Diffstat (limited to 'firmware/fifo.c')
-rw-r--r--firmware/fifo.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/firmware/fifo.c b/firmware/fifo.c
index a1e0f87..17551d7 100644
--- a/firmware/fifo.c
+++ b/firmware/fifo.c
@@ -2,26 +2,26 @@
void fifo_init (fifo_t *f, uint8_t *buffer, const uint8_t size)
{
- f->count = 0;
- f->pread = f->pwrite = buffer;
- f->read2end = f->write2end = f->size = size;
+ f->count = 0;
+ f->pread = f->pwrite = buffer;
+ f->read2end = f->write2end = f->size = size;
}
uint8_t fifo_put (fifo_t *f, const uint8_t data)
{
- return _inline_fifo_put (f, data);
+ return _inline_fifo_put (f, data);
}
uint8_t fifo_get_wait (fifo_t *f)
{
- while (!f->count);
-
- return _inline_fifo_get (f);
+ while (!f->count);
+
+ return _inline_fifo_get (f);
}
int fifo_get_nowait (fifo_t *f)
{
- if (!f->count) return -1;
-
- return (int) _inline_fifo_get (f);
+ if (!f->count) return -1;
+
+ return (int) _inline_fifo_get (f);
}