Lines Matching refs:hprt0
1595 __IO uint32_t hprt0 = 0U; in USB_ResetPort() local
1597 hprt0 = USBx_HPRT0; in USB_ResetPort()
1599 hprt0 &= ~(USB_OTG_HPRT_PENA | USB_OTG_HPRT_PCDET | in USB_ResetPort()
1602 USBx_HPRT0 = (USB_OTG_HPRT_PRST | hprt0); in USB_ResetPort()
1604 USBx_HPRT0 = ((~USB_OTG_HPRT_PRST) & hprt0); in USB_ResetPort()
1621 __IO uint32_t hprt0 = 0U; in USB_DriveVbus() local
1623 hprt0 = USBx_HPRT0; in USB_DriveVbus()
1625 hprt0 &= ~(USB_OTG_HPRT_PENA | USB_OTG_HPRT_PCDET | in USB_DriveVbus()
1628 if (((hprt0 & USB_OTG_HPRT_PPWR) == 0U) && (state == 1U)) in USB_DriveVbus()
1630 USBx_HPRT0 = (USB_OTG_HPRT_PPWR | hprt0); in USB_DriveVbus()
1632 if (((hprt0 & USB_OTG_HPRT_PPWR) == USB_OTG_HPRT_PPWR) && (state == 0U)) in USB_DriveVbus()
1634 USBx_HPRT0 = ((~USB_OTG_HPRT_PPWR) & hprt0); in USB_DriveVbus()
1651 __IO uint32_t hprt0 = 0U; in USB_GetHostSpeed() local
1653 hprt0 = USBx_HPRT0; in USB_GetHostSpeed()
1654 return ((hprt0 & USB_OTG_HPRT_PSPD) >> 17); in USB_GetHostSpeed()