Lines Matching refs:hprt0
1605 __IO uint32_t hprt0 = 0U; in USB_ResetPort() local
1607 hprt0 = USBx_HPRT0; in USB_ResetPort()
1609 hprt0 &= ~(USB_OTG_HPRT_PENA | USB_OTG_HPRT_PCDET | in USB_ResetPort()
1612 USBx_HPRT0 = (USB_OTG_HPRT_PRST | hprt0); in USB_ResetPort()
1614 USBx_HPRT0 = ((~USB_OTG_HPRT_PRST) & hprt0); in USB_ResetPort()
1631 __IO uint32_t hprt0 = 0U; in USB_DriveVbus() local
1633 hprt0 = USBx_HPRT0; in USB_DriveVbus()
1635 hprt0 &= ~(USB_OTG_HPRT_PENA | USB_OTG_HPRT_PCDET | in USB_DriveVbus()
1638 if (((hprt0 & USB_OTG_HPRT_PPWR) == 0U) && (state == 1U)) in USB_DriveVbus()
1640 USBx_HPRT0 = (USB_OTG_HPRT_PPWR | hprt0); in USB_DriveVbus()
1642 if (((hprt0 & USB_OTG_HPRT_PPWR) == USB_OTG_HPRT_PPWR) && (state == 0U)) in USB_DriveVbus()
1644 USBx_HPRT0 = ((~USB_OTG_HPRT_PPWR) & hprt0); in USB_DriveVbus()
1661 __IO uint32_t hprt0 = 0U; in USB_GetHostSpeed() local
1663 hprt0 = USBx_HPRT0; in USB_GetHostSpeed()
1664 return ((hprt0 & USB_OTG_HPRT_PSPD) >> 17); in USB_GetHostSpeed()