diff options
author | Othmar Gsenger <otti@wirdorange.org> | 2013-02-06 23:07:52 +0000 |
---|---|---|
committer | Othmar Gsenger <otti@wirdorange.org> | 2013-02-06 23:07:52 +0000 |
commit | 3bbffdfdc971bb310dbd19d76a7eb832ed671d50 (patch) | |
tree | 93870034a21e403b49e9b450888a491fb55b84a2 /usb-i2c-sl018 | |
parent | added event queue (diff) |
basic eventqueue
git-svn-id: https://svn.spreadspace.org/avr/trunk@147 aa12f405-d877-488e-9caf-2d797e2a1cc7
Diffstat (limited to 'usb-i2c-sl018')
-rw-r--r-- | usb-i2c-sl018/eventqueue.c | 19 | ||||
-rw-r--r-- | usb-i2c-sl018/eventqueue.h | 5 |
2 files changed, 24 insertions, 0 deletions
diff --git a/usb-i2c-sl018/eventqueue.c b/usb-i2c-sl018/eventqueue.c index 7519e82..af6d9f7 100644 --- a/usb-i2c-sl018/eventqueue.c +++ b/usb-i2c-sl018/eventqueue.c @@ -22,3 +22,22 @@ */ #include "eventqueue.h" +#include <LUFA/Drivers/Misc/RingBuffer.h> + +static RingBuffer_t event_queue; +static uint8_t event_queue_data[128]; + +void eventqueue_init(void) +{ + RingBuffer_InitBuffer(&event_queue, event_queue_data, sizeof(event_queue_data)); +} + +event_t eventqueue_pop(void) +{ + return none; +} + +void eventqueue_push(event_t event) +{ +} + diff --git a/usb-i2c-sl018/eventqueue.h b/usb-i2c-sl018/eventqueue.h index 865fa05..bd60581 100644 --- a/usb-i2c-sl018/eventqueue.h +++ b/usb-i2c-sl018/eventqueue.h @@ -24,5 +24,10 @@ #ifndef R3TUER_eventqueue_h_INCLUDED #define R3TUER_eventqueue_h_INCLUDED +typedef enum { none } event_t; + +void eventqueue_init(void); +event_t eventqueue_pop(void); +void eventqueue_push(event_t); #endif |