19 lines
310 B
C
19 lines
310 B
C
#ifndef FIFO_H
|
|
#define FIFO_H
|
|
|
|
#include "keyboard.h"
|
|
|
|
struct fifo_item {
|
|
char key;
|
|
enum key_state state;
|
|
};
|
|
|
|
uint8_t fifo_count(void);
|
|
void fifo_flush(void);
|
|
bool fifo_enqueue(const struct fifo_item item);
|
|
void fifo_enqueue_force(const struct fifo_item item);
|
|
struct fifo_item fifo_dequeue(void);
|
|
|
|
|
|
#endif
|