summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--port/hpm/usb_dc_hpm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/port/hpm/usb_dc_hpm.c b/port/hpm/usb_dc_hpm.c
index ae7fe055..43b91579 100644
--- a/port/hpm/usb_dc_hpm.c
+++ b/port/hpm/usb_dc_hpm.c
@@ -261,6 +261,7 @@ void USBD_IRQHandler(uint8_t busid)
if (int_status & intr_suspend) {
if (usb_device_get_suspend_status(handle)) {
+ usbd_event_suspend_handler(busid);
/* Note: Host may delay more than 3 ms before and/or after bus reset
* before doing enumeration. */
if (usb_device_get_address(handle)) {
@@ -270,9 +271,9 @@ void USBD_IRQHandler(uint8_t busid)
if (int_status & intr_port_change) {
if (!usb_device_get_port_ccs(handle)) {
+ usbd_event_disconnect_handler(busid);
} else {
- if (usb_device_get_port_reset_status(handle) == 0) {
- }
+ usbd_event_connect_handler(busid);
}
}