2016-11-05 22:00:23 +01:00
|
|
|
#ifndef _INTERNALS_EVENTS_H
|
|
|
|
#define _INTERNALS_EVENTS_H
|
|
|
|
|
|
|
|
#include <events.h>
|
|
|
|
|
|
|
|
#ifndef EVENTS_QUEUE_SIZE
|
|
|
|
#define EVENTS_QUEUE_SIZE 64
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*
|
|
|
|
This module is just a circular-array queue that pushes and pops events
|
|
|
|
like any other queue. Trying to add an event when the queue is full
|
|
|
|
fails, and the operation is ignored.
|
|
|
|
*/
|
2017-02-25 23:19:35 +01:00
|
|
|
extern volatile event_t event_queue[];
|
2016-11-05 22:00:23 +01:00
|
|
|
extern volatile int queue_start;
|
|
|
|
extern volatile int queue_size;
|
|
|
|
|
|
|
|
#endif // _INTERNALS_EVENT_H
|