/* HCD_GetCurrentFrame This function returns the frame number for sof packet.  */
uint32_t HCD_GetCurrentFrame(USB_OTG_CORE_HANDLE *pdev)
/* HCD_GetCurrentFrame This function returns the frame number for sof packet.  */
uint32_t HCD_GetCurrentFrame(USB_OTG_CORE_HANDLE *pdev)
{
 return (USB_OTG_READ_REG32(&pdev->regs.HREGS->HFNUM) & 0xFFFF) ;
}