update use of mutex for host

This commit is contained in:
hathach
2022-03-09 12:26:56 +07:00
parent f920e1c171
commit 2f593e767c
3 changed files with 59 additions and 42 deletions

View File

@@ -273,7 +273,7 @@ enum { RHPORT_INVALID = 0xFFu };
static uint8_t _usbd_rhport = RHPORT_INVALID;
// Event queue
// OPT_MODE_DEVICE is used by OS NONE for mutex (disable usb isr)
// usbd_int_set() is used as mutex in OS NONE config
OSAL_QUEUE_DEF(usbd_int_set, _usbd_qdef, CFG_TUD_TASK_QUEUE_SZ, dcd_event_t);
static osal_queue_t _usbd_q;