USBD_OS_CoreEventGet
Description
Wait until a core event is ready.
Files
usbd_internal.h/usbd_os.c
Prototype
void *USBD_OS_CoreEventGet (CPU_INT32U timeout_ms, USBD_ERR *p_err);
Arguments
timeout_ms
Timeout in milliseconds.
p_err
Pointer to variable that will receive the return error code from this function.
Returned Value
Pointer to core event,
if no errors.
Null pointer, otherwise.
Callers
Implementation guidelines
- A call to this function should block until an event is added to queue and return it.
- Table - Error code for pend operations describes the error codes that should be assigned to
p_err
depending on the operation result.