Create an OS resource to use as an endpoint lock.
usbd_internal.h/usbd_os.c
void USBD_OS_EP_LockCreate (CPU_INT08U dev_nbr, CPU_INT08U ep_ix, USBD_ERR *p_err); |
dev_nbr
Device number.
ep_ix
Endpoint index.
p_err
Pointer to variable that will receive the return error code from this function.
None.
Endpoints open functions.
dev_nbr
and ep_ix
are used to index this array.dev_nbr
ranges between 0 and USBD_CFG_MAX_NBR_DEV
.ep_ix
ranges between 0 and USBD_CFG_MAX_NBR_EP_OPEN
.USBD_ERR_OS_SIGNAL_CREATE
should be assigned to p_err
. Otherwise, USBD_ERR_NONE
should be assigned to p_err
.