working on suspend and resume

change dcd_init signature
This commit is contained in:
hathach
2019-03-29 16:23:00 +07:00
parent 0bdd4bd550
commit 1c2beba85c
14 changed files with 71 additions and 42 deletions

View File

@@ -121,7 +121,7 @@ static void bus_reset(uint8_t rhport)
p_dcd->qhd[0].int_on_setup = 1; // OUT only
}
bool dcd_init(uint8_t rhport)
void dcd_init(uint8_t rhport)
{
LPC_USBHS_T* const lpc_usb = LPC_USB[rhport];
dcd_data_t* p_dcd = dcd_data_ptr[rhport];
@@ -134,8 +134,6 @@ bool dcd_init(uint8_t rhport)
lpc_usb->USBCMD_D &= ~0x00FF0000; // Interrupt Threshold Interval = 0
lpc_usb->USBCMD_D |= TU_BIT(0); // connect
return true;
}
void dcd_int_enable(uint8_t rhport)