Skip to content

Commit

Permalink
Add missed USB event queue peek
Browse files Browse the repository at this point in the history
  • Loading branch information
RockyZeroFour committed Mar 7, 2024
1 parent e33676b commit 3106578
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/osal/osal_rtthread.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3106578

Please sign in to comment.