USBD_Init

Description

Initialize USB device stack. This function is called by the application exactly once. This function initializes all the internal variables and modules used by the USB device stack.

Files

usbd_core.h/usbd_core.c

Prototype

void  USBD_Init (USBD_ERR  *p_err);


Arguments

p_err

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

USBD_ERR_NONE
USBD_ERR_OS_INIT_FAIL

Returned Value

None.

Callers

Application.

Notes / Warnings

  1. USBD_Init() must be called:
    1. Only once from a product’s application.
    2. After product’s OS has been initialized
    3. Before product’s application calls any USB device stack function(s).
  2. Initialize USB device stack. This function is called by the application exactly once. This function initializes all the internal variables and modules used by the USB device stack.