From 85500fe0d01b691a9bdd8c2330d26d66bc2bc177 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Fri, 18 Oct 2019 18:38:00 +0200 Subject: added spi driver --- code/fe310/eos/msgq.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'code/fe310/eos/msgq.c') 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 +#include +#include #include #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; -- cgit v1.2.3