MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / USBDCore_Init

Function USBDCore_Init

bsp/ht32/libraries/usbd_library/src/usbd_code.c:166–175  ·  view source on GitHub ↗

/ * @brief USB Core initialization. * @param pCore: pointer of USB Device * @retval None ***********************************************************************************************************/

Source from the content-addressed store, hash-verified

164 * @retval None
165 ***********************************************************************************************************/
166void USBDCore_Init(USBDCore_TypeDef *pCore)
167{
168 pCore->Info.CurrentStatus = USER_USB_STATE_POWERED;
169 API_USB_INIT(pCore->pDriver);
170
171 /* Endpoint information initialisation */
172 usbd_ept_init(pCore);
173
174 return;
175}
176/*********************************************************************************************************//**
177 * @brief USB Core Main Routine for application.
178 * @param pCore: pointer of USB Device

Callers 2

USB_ConfigurationFunction · 0.70
USB_ConfigurationFunction · 0.70

Calls 1

usbd_ept_initFunction · 0.85

Tested by

no test coverage detected