Lines Matching refs:hprt0
1526 __IO uint32_t hprt0 = 0U; in USB_ResetPort() local
1528 hprt0 = USBx_HPRT0; in USB_ResetPort()
1530 hprt0 &= ~(USB_OTG_HPRT_PENA | USB_OTG_HPRT_PCDET | in USB_ResetPort()
1533 USBx_HPRT0 = (USB_OTG_HPRT_PRST | hprt0); in USB_ResetPort()
1535 USBx_HPRT0 = ((~USB_OTG_HPRT_PRST) & hprt0); in USB_ResetPort()
1552 __IO uint32_t hprt0 = 0U; in USB_DriveVbus() local
1554 hprt0 = USBx_HPRT0; in USB_DriveVbus()
1556 hprt0 &= ~(USB_OTG_HPRT_PENA | USB_OTG_HPRT_PCDET | in USB_DriveVbus()
1559 if (((hprt0 & USB_OTG_HPRT_PPWR) == 0U) && (state == 1U)) in USB_DriveVbus()
1561 USBx_HPRT0 = (USB_OTG_HPRT_PPWR | hprt0); in USB_DriveVbus()
1563 if (((hprt0 & USB_OTG_HPRT_PPWR) == USB_OTG_HPRT_PPWR) && (state == 0U)) in USB_DriveVbus()
1565 USBx_HPRT0 = ((~USB_OTG_HPRT_PPWR) & hprt0); in USB_DriveVbus()
1582 __IO uint32_t hprt0 = 0U; in USB_GetHostSpeed() local
1584 hprt0 = USBx_HPRT0; in USB_GetHostSpeed()
1585 return ((hprt0 & USB_OTG_HPRT_PSPD) >> 17); in USB_GetHostSpeed()