Revert "Name queues for easier FreeRTOS debugging with task- and queue-aware debuggers"

This reverts commit 11fba59319.
This commit is contained in:
hathach
2023-08-03 11:07:23 +07:00
parent 11fba59319
commit d09604d636
3 changed files with 6 additions and 7 deletions

View File

@@ -56,7 +56,7 @@ typedef SemaphoreHandle_t osal_mutex_t;
// _int_set is not used with an RTOS
#define OSAL_QUEUE_DEF(_int_set, _name, _depth, _type) \
static _type _name##_##buf[_depth];\
osal_queue_def_t _name = { .depth = _depth, .item_sz = sizeof(_type), .buf = _name##_##buf, .pQueueName = #_name };
osal_queue_def_t _name = { .depth = _depth, .item_sz = sizeof(_type), .buf = _name##_##buf };
typedef struct
{
@@ -66,7 +66,6 @@ typedef struct
#if configSUPPORT_STATIC_ALLOCATION
StaticQueue_t sq;
#endif
const char* pQueueName;
}osal_queue_def_t;
typedef QueueHandle_t osal_queue_t;
@@ -177,7 +176,7 @@ TU_ATTR_ALWAYS_INLINE static inline osal_queue_t osal_queue_create(osal_queue_de
q = xQueueCreate(qdef->depth, qdef->item_sz);
#endif
#if defined(configQUEUE_REGISTRY_SIZE) && (configQUEUE_REGISTRY_SIZE>0)
vQueueAddToRegistry(q, qdef->pQueueName);
vQueueAddToRegistry(q, "tinyUSB");
#endif
return q;
}