summaryrefslogtreecommitdiff
path: root/tinyusb/osal
diff options
context:
space:
mode:
authorhathach <[email protected]>2014-04-24 23:57:21 +0700
committerhathach <[email protected]>2014-04-24 23:57:21 +0700
commitdbf276ad6f9852f8da7dd9bc8b9e1a74ee17b267 (patch)
tree0f83836c0d7fceb35b1b742856f9512e5b504db2 /tinyusb/osal
parent6804fee0fa571907f9311cce4f5e65aaa569dd1a (diff)
added all assert check to osal_queue_send and osal_semaphore_post
Diffstat (limited to 'tinyusb/osal')
-rw-r--r--tinyusb/osal/osal_cmsis_rtx.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tinyusb/osal/osal_cmsis_rtx.h b/tinyusb/osal/osal_cmsis_rtx.h
index 57f015d82..62a1ec4ff 100644
--- a/tinyusb/osal/osal_cmsis_rtx.h
+++ b/tinyusb/osal/osal_cmsis_rtx.h
@@ -182,7 +182,7 @@ static inline void osal_queue_receive (osal_queue_handle_t const queue_hdl, void
}
}
-static inline tusb_error_t osal_queue_send(osal_queue_handle_t const queue_hdl, void const * data) ATTR_ALWAYS_INLINE;
+static inline tusb_error_t osal_queue_send(osal_queue_handle_t const queue_hdl, void const * data) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE;
static inline tusb_error_t osal_queue_send(osal_queue_handle_t const queue_hdl, void const * data)
{
void *p_buf = osMailAlloc(queue_hdl->pool, 0); // instantly return in case of sending within ISR (mostly used)