bool USBHostInit( unsigned long flags );
This function initializes the variables of the USB host stack. It does not initialize the hardware. The peripheral itself is initialized in one of the state machine states. Therefore, USBHostTasks() should be called soon after this function.
None
Parameters |
Description |
unsigned long flags |
reserved |
Return Values |
Description |
true |
Initialization successful |
false |
Could not allocate memory. |
If the endpoint list is empty, an entry is created in the endpoint list for EP0. If the list is not empty, free all allocated memory other than the EP0 node. This allows the routine to be called multiple times by the application.
MLA - USB Library Help Version : 2.16
![]() |