summaryrefslogtreecommitdiff
path: root/code/fe310/eos/event.h
blob: 8215d2b3bb10f9b91695257d7662284333c02bbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdint.h>

#include "evt_def.h"

typedef void (*eos_evt_fptr_t) (unsigned char, unsigned char *, uint16_t);

void eos_evtq_init(void);
int eos_evtq_push(unsigned char cmd, unsigned char *buffer, uint16_t len);
void eos_evtq_pop(unsigned char *cmd, unsigned char **buffer, uint16_t *len);
void eos_evtq_bad_handler(unsigned char cmd, unsigned char *buffer, uint16_t len);
void eos_evtq_set_handler(unsigned char cmd, eos_evt_fptr_t handler, uint8_t flags);
void eos_evtq_loop(void);