clean up main

This commit is contained in:
hathach
2013-04-28 00:00:48 +07:00
parent d68f882a25
commit fdd98e2fa9
3 changed files with 60 additions and 37 deletions

View File

@@ -482,7 +482,8 @@ void port_connect_status_change_isr(uint8_t hostid)
{
ehci_registers_t* const regs = get_operational_register(hostid);
if (regs->portsc_bit.current_connect_status) // device plugged
// NOTE There is an sequence plug->unplug->…..-> plug if device is powering with pre-plugged device
if (regs->portsc_bit.current_connect_status)
{
usbh_device_plugged_isr(hostid);
}else // device unplugged