From 31065786c293cf1ef44d1a270a66264aa1d79b70 Mon Sep 17 00:00:00 2001 From: RockyZeroFour Date: Thu, 7 Mar 2024 21:48:03 +0100 Subject: [PATCH] Add missed USB event queue peek --- src/osal/osal_rtthread.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/osal/osal_rtthread.h b/src/osal/osal_rtthread.h index a790a5e278..2e5ddb026a 100644 --- a/src/osal/osal_rtthread.h +++ b/src/osal/osal_rtthread.h @@ -121,6 +121,15 @@ TU_ATTR_ALWAYS_INLINE static inline bool osal_queue_send(osal_queue_t qhdl, void return rt_mq_send(qhdl, (void *)data, qhdl->msg_size) == RT_EOK; } +TU_ATTR_ALWAYS_INLINE static inline bool osal_queue_peek(osal_queue_t qhdl, void const * data, bool in_isr) +{ + (void) qhdl; + (void) data; + (void) in_isr; + + return false; +} + TU_ATTR_ALWAYS_INLINE static inline bool osal_queue_empty(osal_queue_t qhdl) { return (qhdl->entry) == 0; }