Lines Matching refs:hprt0
1386 __IO uint32_t hprt0 = 0U; in USB_ResetPort() local
1388 hprt0 = USBx_HPRT0; in USB_ResetPort()
1390 hprt0 &= ~(USB_OTG_HPRT_PENA | USB_OTG_HPRT_PCDET | in USB_ResetPort()
1393 USBx_HPRT0 = (USB_OTG_HPRT_PRST | hprt0); in USB_ResetPort()
1395 USBx_HPRT0 = ((~USB_OTG_HPRT_PRST) & hprt0); in USB_ResetPort()
1412 __IO uint32_t hprt0 = 0U; in USB_DriveVbus() local
1414 hprt0 = USBx_HPRT0; in USB_DriveVbus()
1416 hprt0 &= ~(USB_OTG_HPRT_PENA | USB_OTG_HPRT_PCDET | in USB_DriveVbus()
1419 if (((hprt0 & USB_OTG_HPRT_PPWR) == 0U) && (state == 1U)) in USB_DriveVbus()
1421 USBx_HPRT0 = (USB_OTG_HPRT_PPWR | hprt0); in USB_DriveVbus()
1423 if (((hprt0 & USB_OTG_HPRT_PPWR) == USB_OTG_HPRT_PPWR) && (state == 0U)) in USB_DriveVbus()
1425 USBx_HPRT0 = ((~USB_OTG_HPRT_PPWR) & hprt0); in USB_DriveVbus()
1441 __IO uint32_t hprt0 = 0U; in USB_GetHostSpeed() local
1443 hprt0 = USBx_HPRT0; in USB_GetHostSpeed()
1444 return ((hprt0 & USB_OTG_HPRT_PSPD) >> 17); in USB_GetHostSpeed()