summaryrefslogtreecommitdiff
path: root/firmware/kernel.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/kernel.c')
-rw-r--r--firmware/kernel.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/kernel.c b/firmware/kernel.c
index c6ac1fb7aa..639b73def5 100644
--- a/firmware/kernel.c
+++ b/firmware/kernel.c
@@ -94,6 +94,11 @@ void queue_post(struct event_queue *q, int id, void *data)
set_irq_level(oldlevel);
}
+bool queue_empty(struct event_queue* q)
+{
+ return ( q->read == q->write );
+}
+
/****************************************************************************
* Timer tick