refactor hcd api

This commit is contained in:
hathach
2018-12-08 20:51:48 +07:00
parent 607658d047
commit d3ac4c14a3
7 changed files with 37 additions and 31 deletions
+2 -2
View File
@@ -745,10 +745,10 @@ void hal_hcd_isr(uint8_t hostid)
{
// TODO reset port immediately, without this controller will got 2-3 (debouncing connection status change)
OHCI_REG->rhport_status[0] = OHCI_RHPORT_PORT_RESET_STATUS_MASK;
usbh_hcd_rhport_plugged_isr(0);
hcd_event_device_attach(0);
}else
{
usbh_hcd_rhport_unplugged_isr(0);
hcd_event_device_remove(0);
}
}