fixed lpc11u/13u VBUS (P0_3) with pulldown resistor for USB_VBUS_DEBOUNCED is correct

added disconnect callback for lpc11u/13u
This commit is contained in:
hathach
2013-11-21 15:24:02 +07:00
parent c303154b7a
commit d1ef89a154
6 changed files with 71 additions and 122 deletions

View File

@@ -218,7 +218,7 @@ void dcd_isr(uint8_t coreid)
}
if ( (dev_status_reg & SIE_DEV_STATUS_CONNECT_CHANGE_MASK) && !(dev_status_reg & SIE_DEV_STATUS_CONNECT_STATUS_MASK))
{ // device is disconnected, require using VBUS (P1_30)
{ // TODO device is disconnected, require using VBUS (P1_30), cannot use CONNECT_STATUS as connection status
usbd_dcd_bus_event_isr(0, USBD_BUS_EVENT_UNPLUGGED);
}