diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2011-10-13 20:33:30 +0200 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2011-10-13 20:33:30 +0200 |
commit | 5d9d373a959271b498710817d08c2ea8e153aa6e (patch) | |
tree | 6867e887454a850b4e15616000ef342a1c661c7e /firmware/fifo.c | |
parent | 35a36b0a6c69ce136fd6ea2a203d34e48e1291e8 (diff) | |
download | mini-octopus-5d9d373a959271b498710817d08c2ea8e153aa6e.tar.gz mini-octopus-5d9d373a959271b498710817d08c2ea8e153aa6e.zip |
correct firmware??
Diffstat (limited to 'firmware/fifo.c')
-rw-r--r-- | firmware/fifo.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/firmware/fifo.c b/firmware/fifo.c index 17551d7..a1e0f87 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); } |