/* Enables the IDLE state on the USB line. The IDLE state is enable when SOF are present on USB line. A Downstream Resume signal can be sent.  */
void ohci_bus_resume(void)
/* Enables the IDLE state on the USB line. The IDLE state is enable when SOF are present on USB line. A Downstream Resume signal can be sent.  */
void ohci_bus_resume(void)
{
	uint32_t temp_value;
	OHCI->HcRhStatus = RH_HS_CRWE;
	temp_value = OHCI->HcControl;
	temp_value &= ~HC_CONTROL_HCFS;
	temp_value |= HC_CONTROL_HCFS_USBRESUME;
	OHCI->HcControl = temp_value;
	delay_ms(50);
	temp_value = OHCI->HcControl;
	temp_value &= ~HC_CONTROL_HCFS;
	temp_value |= HC_CONTROL_HCFS_USBOPERATIONAL;
	OHCI->HcControl = temp_value;
	OHCI->HcControl &= ~HC_CONTROL_RWE;
}