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
USBD_Init()
must be called:- Only once from a product’s application.
- After product’s OS has been initialized
- Before product’s application calls any USB device stack function(s).
- 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.