Skip to content

Commit d09604d

Browse files
committed
Revert "Name queues for easier FreeRTOS debugging with task- and queue-aware debuggers"
This reverts commit 11fba59.
1 parent 11fba59 commit d09604d

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

src/device/usbd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ tu_static uint8_t _usbd_rhport = RHPORT_INVALID;
279279

280280
// Event queue
281281
// usbd_int_set() is used as mutex in OS NONE config
282-
OSAL_QUEUE_DEF(usbd_int_set, usbd_events, CFG_TUD_TASK_QUEUE_SZ, dcd_event_t);
282+
OSAL_QUEUE_DEF(usbd_int_set, _usbd_qdef, CFG_TUD_TASK_QUEUE_SZ, dcd_event_t);
283283
tu_static osal_queue_t _usbd_q;
284284

285285
// Mutex for claiming endpoint
@@ -410,7 +410,7 @@ bool tud_init (uint8_t rhport)
410410
#endif
411411

412412
// Init device queue & task
413-
_usbd_q = osal_queue_create(&usbd_events);
413+
_usbd_q = osal_queue_create(&_usbd_qdef);
414414
TU_ASSERT(_usbd_q);
415415

416416
// Get application driver if available

src/host/usbh.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ static usbh_device_t _usbh_devices[TOTAL_DEVICES];
219219

220220
// Event queue
221221
// usbh_int_set is used as mutex in OS NONE config
222-
OSAL_QUEUE_DEF(usbh_int_set, usbh_events, CFG_TUH_TASK_QUEUE_SZ, hcd_event_t);
222+
OSAL_QUEUE_DEF(usbh_int_set, _usbh_qdef, CFG_TUH_TASK_QUEUE_SZ, hcd_event_t);
223223
static osal_queue_t _usbh_q;
224224

225225
CFG_TUH_MEM_SECTION CFG_TUH_MEM_ALIGN
@@ -330,7 +330,7 @@ bool tuh_init(uint8_t controller_id)
330330
TU_LOG_INT(USBH_DEBUG, sizeof(tu_edpt_stream_t));
331331

332332
// Event queue
333-
_usbh_q = osal_queue_create( &usbh_events );
333+
_usbh_q = osal_queue_create( &_usbh_qdef );
334334
TU_ASSERT(_usbh_q != NULL);
335335

336336
#if OSAL_MUTEX_REQUIRED

src/osal/osal_freertos.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ typedef SemaphoreHandle_t osal_mutex_t;
5656
// _int_set is not used with an RTOS
5757
#define OSAL_QUEUE_DEF(_int_set, _name, _depth, _type) \
5858
static _type _name##_##buf[_depth];\
59-
osal_queue_def_t _name = { .depth = _depth, .item_sz = sizeof(_type), .buf = _name##_##buf, .pQueueName = #_name };
59+
osal_queue_def_t _name = { .depth = _depth, .item_sz = sizeof(_type), .buf = _name##_##buf };
6060

6161
typedef struct
6262
{
@@ -66,7 +66,6 @@ typedef struct
6666
#if configSUPPORT_STATIC_ALLOCATION
6767
StaticQueue_t sq;
6868
#endif
69-
const char* pQueueName;
7069
}osal_queue_def_t;
7170

7271
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
177176
q = xQueueCreate(qdef->depth, qdef->item_sz);
178177
#endif
179178
#if defined(configQUEUE_REGISTRY_SIZE) && (configQUEUE_REGISTRY_SIZE>0)
180-
vQueueAddToRegistry(q, qdef->pQueueName);
179+
vQueueAddToRegistry(q, "tinyUSB");
181180
#endif
182181
return q;
183182
}

0 commit comments

Comments
 (0)