diff options
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 |