Initialize USB RTOS layer internal objects.
usbd_internal.h/usbd_os.c
void USBD_OS_Init (USBD_ERR *p_err); |
p_err
Pointer to variable that will receive the return error code from this function.
None.
USB device core layer.
USBD_CORE_EVENT_NBR_TOTAL
events.USBD_CFG_MAX_NBR_DEV
x USBD_CFG_MAX_NBR_EP_OPEN
semaphores and mutex for endpoints operations.
USBD_ERR_OS_INIT_FAIL
should be assigned to p_err
and the function should return immediately. Otherwise, USBD_ERR_NONE
should be assigned to p_err
.