USBD_OS_EP_SignalPost

Description

Makes a signal/semaphore available.

Files

usbd_internal.h/usbd_os.c

Prototype

void   USBD_OS_EP_SignalPost  (CPU_INT08U   dev_nbr,
                               CPU_INT08U   ep_ix,
                               USBD_ERR    *p_err);


Arguments

dev_nbr

Device number.

ep_ix

Endpoint index.

p_err

Pointer to variable that will receive the return error code from this function.

Returned Value

None.

Callers

Endpoints transfer complete functions.

Implementation guidelines

  1. A call to this function should post the signal / semaphore associated to the specified endpoint.
  2. In case the post fails, USBD_ERR_OS_FAIL should be assigned to p_err. Otherwise, USBD_ERR_NONE should be assigned to p_err.