summaryrefslogtreecommitdiff
path: root/code/fe310/eos/msgq.c
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2019-10-18 18:38:00 +0200
committerUros Majstorovic <majstor@majstor.org>2019-10-18 18:38:00 +0200
commit85500fe0d01b691a9bdd8c2330d26d66bc2bc177 (patch)
treec320c642ebb942d1b3692701d50c4a46e50e49f3 /code/fe310/eos/msgq.c
parentf74dcae328e3650acf6b12499a55548b46117877 (diff)
added spi driver
Diffstat (limited to 'code/fe310/eos/msgq.c')
-rw-r--r--code/fe310/eos/msgq.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/code/fe310/eos/msgq.c b/code/fe310/eos/msgq.c
index 98ec4aa..d0fe405 100644
--- a/code/fe310/eos/msgq.c
+++ b/code/fe310/eos/msgq.c
@@ -1,4 +1,5 @@
-#include <stddef.h>
+#include <stdlib.h>
+#include <stdint.h>
#include <string.h>
#include "eos.h"
@@ -44,7 +45,7 @@ void eos_msgq_pop(EOSMsgQ *msgq, unsigned char *type, unsigned char **buffer, ui
int eos_msgq_get(EOSMsgQ *msgq, unsigned char type, unsigned char *selector, uint16_t sel_len, unsigned char **buffer, uint16_t *len) {
uint8_t i, j, idx;
-
+
if (msgq->idx_r == msgq->idx_w) {
*buffer = NULL;
*len = 0;