Lines Matching refs:hprt0
1545 __IO uint32_t hprt0 = 0U; in USB_ResetPort() local
1547 hprt0 = USBx_HPRT0; in USB_ResetPort()
1549 hprt0 &= ~(USB_OTG_HPRT_PENA | USB_OTG_HPRT_PCDET | in USB_ResetPort()
1552 USBx_HPRT0 = (USB_OTG_HPRT_PRST | hprt0); in USB_ResetPort()
1554 USBx_HPRT0 = ((~USB_OTG_HPRT_PRST) & hprt0); in USB_ResetPort()
1571 __IO uint32_t hprt0 = 0U; in USB_DriveVbus() local
1573 hprt0 = USBx_HPRT0; in USB_DriveVbus()
1575 hprt0 &= ~(USB_OTG_HPRT_PENA | USB_OTG_HPRT_PCDET | in USB_DriveVbus()
1578 if (((hprt0 & USB_OTG_HPRT_PPWR) == 0U) && (state == 1U)) in USB_DriveVbus()
1580 USBx_HPRT0 = (USB_OTG_HPRT_PPWR | hprt0); in USB_DriveVbus()
1582 if (((hprt0 & USB_OTG_HPRT_PPWR) == USB_OTG_HPRT_PPWR) && (state == 0U)) in USB_DriveVbus()
1584 USBx_HPRT0 = ((~USB_OTG_HPRT_PPWR) & hprt0); in USB_DriveVbus()
1601 __IO uint32_t hprt0 = 0U; in USB_GetHostSpeed() local
1603 hprt0 = USBx_HPRT0; in USB_GetHostSpeed()
1604 return ((hprt0 & USB_OTG_HPRT_PSPD) >> 17); in USB_GetHostSpeed()