summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Nadler <[email protected]>2023-06-01 12:57:44 -0400
committerDave Nadler <[email protected]>2023-06-01 12:57:44 -0400
commite8b7f21af6e5e994ece7c989202767732f23809e (patch)
treef4db18093ee67904c8d95b7117d1e99af98b3512 /src
parent70a92291fe84eb57844a331749ceecb6d2f1f544 (diff)
For FreeRTOS kernel-aware debugging, when queue registry is enabled, label tinyUSB queue
Diffstat (limited to 'src')
-rw-r--r--src/osal/osal_freertos.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/osal/osal_freertos.h b/src/osal/osal_freertos.h
index 477f64892..0b1b11589 100644
--- a/src/osal/osal_freertos.h
+++ b/src/osal/osal_freertos.h
@@ -169,11 +169,16 @@ TU_ATTR_ALWAYS_INLINE static inline bool osal_mutex_unlock(osal_mutex_t mutex_hd
TU_ATTR_ALWAYS_INLINE static inline osal_queue_t osal_queue_create(osal_queue_def_t* qdef)
{
-#if configSUPPORT_STATIC_ALLOCATION
- return xQueueCreateStatic(qdef->depth, qdef->item_sz, (uint8_t*) qdef->buf, &qdef->sq);
-#else
- return xQueueCreate(qdef->depth, qdef->item_sz);
-#endif
+ osal_queue_t q;
+ #if configSUPPORT_STATIC_ALLOCATION
+ q = xQueueCreateStatic(qdef->depth, qdef->item_sz, (uint8_t*) qdef->buf, &qdef->sq);
+ #else
+ q = xQueueCreate(qdef->depth, qdef->item_sz);
+ #endif
+ #if defined(configQUEUE_REGISTRY_SIZE) && (configQUEUE_REGISTRY_SIZE>0)
+ vQueueAddToRegistry(q, "tinyUSB");
+ #endif
+ return q;
}
TU_ATTR_ALWAYS_INLINE static inline bool osal_queue_receive(osal_queue_t qhdl, void* data, uint32_t msec)