Prusa MINI Firmware overview
USBH_HOST_Exported_FunctionsPrototype

Declaration of public functions for Usb host. More...

Collaboration diagram for USBH_HOST_Exported_FunctionsPrototype:

Functions

void MX_USB_HOST_Init (void)
 USB Host initialization function. More...
 

Detailed Description

Declaration of public functions for Usb host.

Function Documentation

◆ MX_USB_HOST_Init()

void MX_USB_HOST_Init ( void  )

USB Host initialization function.

Init USB host library, add supported class and start the library

Return values
None
100  {
101  /* USER CODE BEGIN USB_HOST_Init_PreTreatment */
102 #if 0 //prevent cube to remove USBH_LL_ResetPort(&hUsbHostHS);
103  /* USER CODE END USB_HOST_Init_PreTreatment */
104 
105  /* Init host Library, add supported class and start the library. */
107 
109 
111 
112  /* USER CODE BEGIN USB_HOST_Init_PostTreatment */
113 #endif
115 
117 
118  USBH_LL_ResetPort(&hUsbHostHS); // this must be done after USBH_RegisterClass and before USBH_Start
119 
121  /* USER CODE END USB_HOST_Init_PostTreatment */
122 }
Here is the call graph for this function:
Here is the caller graph for this function:
HOST_HS
#define HOST_HS
Definition: usbh_conf.h:127
USBH_LL_ResetPort
USBH_StatusTypeDef USBH_LL_ResetPort(USBH_HandleTypeDef *phost)
Reset the Host port of the low level driver.
Definition: usbh_conf.c:342
USBH_UserProcess
static void USBH_UserProcess(USBH_HandleTypeDef *phost, uint8_t id)
Definition: usb_host.c:127
USBH_Start
USBH_StatusTypeDef USBH_Start(USBH_HandleTypeDef *phost)
USBH_Start Start the USB Host Core.
Definition: usbh_core.c:333
USBH_RegisterClass
USBH_StatusTypeDef USBH_RegisterClass(USBH_HandleTypeDef *phost, USBH_ClassTypeDef *pclass)
USBH_RegisterClass Link class driver to Host Core.
Definition: usbh_core.c:199
USBH_MSC_CLASS
#define USBH_MSC_CLASS
Definition: usbh_msc.h:173
hUsbHostHS
USBH_HandleTypeDef hUsbHostHS
Definition: usb_host.c:74
USBH_Init
USBH_StatusTypeDef USBH_Init(USBH_HandleTypeDef *phost, void(*pUsrFunc)(USBH_HandleTypeDef *phost, uint8_t), uint8_t id)
HCD_Init Initialize the HOST Core.
Definition: usbh_core.c:92