refractor hub api
fix all test build errors
This commit is contained in:
@@ -564,7 +564,7 @@ static void port_connect_status_change_isr(uint8_t hostid)
|
||||
// NOTE There is an sequence plug->unplug->…..-> plug if device is powering with pre-plugged device
|
||||
if (regs->portsc_bit.current_connect_status)
|
||||
{
|
||||
usbh_hcd_rhport_plugged_isr(hostid, 0, 0);
|
||||
usbh_hcd_rhport_plugged_isr(hostid);
|
||||
}else // device unplugged
|
||||
{
|
||||
usbh_hcd_rhport_unplugged_isr(hostid);
|
||||
@@ -573,7 +573,7 @@ static void port_connect_status_change_isr(uint8_t hostid)
|
||||
}
|
||||
|
||||
// TODO refractor abtract later
|
||||
void hcd_hub_advance_asyn(uint8_t hostid)
|
||||
void hcd_port_unplug(uint8_t hostid)
|
||||
{
|
||||
ehci_registers_t* const regs = get_operational_register(hostid);
|
||||
regs->usb_cmd_bit.advacne_async = 1; // Async doorbell check EHCI 4.8.2 for operational details
|
||||
|
||||
Reference in New Issue
Block a user