From f6f0910778be2be2cfa25ef4e00ec2cf40c05fe9 Mon Sep 17 00:00:00 2001 From: hathach Date: Sat, 8 Dec 2018 20:56:56 +0700 Subject: hub clean up --- src/host/usbh.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/host/usbh.c') diff --git a/src/host/usbh.c b/src/host/usbh.c index c83424c9f..764203dbf 100644 --- a/src/host/usbh.c +++ b/src/host/usbh.c @@ -291,20 +291,6 @@ void usbh_xfer_isr(pipe_handle_t pipe_hdl, uint8_t class_code, xfer_result_t eve } } -void usbh_hub_port_plugged_isr(uint8_t hub_addr, uint8_t hub_port) -{ - hcd_event_t event = - { - .rhport = _usbh_devices[hub_addr].core_id, - .event_id = HCD_EVENT_DEVICE_ATTACH - }; - - event.attach.hub_addr = hub_addr; - event.attach.hub_port = hub_port; - - hcd_event_handler(&event, true); -} - void hcd_event_device_attach(uint8_t rhport) { hcd_event_t event = -- cgit v1.3.1