Lines Matching refs:hprt0
1675 __IO uint32_t hprt0 = 0U; in USB_ResetPort() local
1677 hprt0 = USBx_HPRT0; in USB_ResetPort()
1679 hprt0 &= ~(USB_OTG_HPRT_PENA | USB_OTG_HPRT_PCDET | in USB_ResetPort()
1682 USBx_HPRT0 = (USB_OTG_HPRT_PRST | hprt0); in USB_ResetPort()
1684 USBx_HPRT0 = ((~USB_OTG_HPRT_PRST) & hprt0); in USB_ResetPort()
1701 __IO uint32_t hprt0 = 0U; in USB_DriveVbus() local
1703 hprt0 = USBx_HPRT0; in USB_DriveVbus()
1705 hprt0 &= ~(USB_OTG_HPRT_PENA | USB_OTG_HPRT_PCDET | in USB_DriveVbus()
1708 if (((hprt0 & USB_OTG_HPRT_PPWR) == 0U) && (state == 1U)) in USB_DriveVbus()
1710 USBx_HPRT0 = (USB_OTG_HPRT_PPWR | hprt0); in USB_DriveVbus()
1712 if (((hprt0 & USB_OTG_HPRT_PPWR) == USB_OTG_HPRT_PPWR) && (state == 0U)) in USB_DriveVbus()
1714 USBx_HPRT0 = ((~USB_OTG_HPRT_PPWR) & hprt0); in USB_DriveVbus()
1731 __IO uint32_t hprt0 = 0U; in USB_GetHostSpeed() local
1733 hprt0 = USBx_HPRT0; in USB_GetHostSpeed()
1734 return ((hprt0 & USB_OTG_HPRT_PSPD) >> 17); in USB_GetHostSpeed()