diff options
| author | hathach <[email protected]> | 2018-12-10 05:40:02 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-12-10 05:44:08 +0700 |
| commit | a31f83dbb0d123d15dcc393dd9d926a4cc7352b6 (patch) | |
| tree | 6319734b0e9096b41be6776bc1a240ab645d1431 /src/host/hub.c | |
| parent | 75baedf27d09e57deb9d88cc7c82d95b0d530bca (diff) | |
removing pipe handle
Diffstat (limited to 'src/host/hub.c')
| -rw-r--r-- | src/host/hub.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/host/hub.c b/src/host/hub.c index 0b909bef0..5612f6cda 100644 --- a/src/host/hub.c +++ b/src/host/hub.c @@ -211,11 +211,11 @@ bool hub_open_subtask(uint8_t rhport, uint8_t dev_addr, tusb_desc_interface_t co // is the response of interrupt endpoint polling
#include "usbh_hcd.h" // FIXME remove
-void hub_isr(pipe_handle_t pipe_hdl, xfer_result_t event, uint32_t xferred_bytes)
+void hub_isr(uint8_t dev_addr, xfer_result_t event, uint32_t xferred_bytes)
{
(void) xferred_bytes; // TODO can be more than 1 for hub with lots of ports
- usbh_hub_t * p_hub = &hub_data[pipe_hdl.dev_addr-1];
+ usbh_hub_t * p_hub = &hub_data[dev_addr-1];
if ( event == XFER_RESULT_SUCCESS )
{
@@ -226,11 +226,11 @@ void hub_isr(pipe_handle_t pipe_hdl, xfer_result_t event, uint32_t xferred_bytes {
hcd_event_t event =
{
- .rhport = _usbh_devices[pipe_hdl.dev_addr].rhport,
+ .rhport = _usbh_devices[dev_addr].rhport,
.event_id = HCD_EVENT_DEVICE_ATTACH
};
- event.attach.hub_addr = pipe_hdl.dev_addr;
+ event.attach.hub_addr = dev_addr;
event.attach.hub_port = port;
hcd_event_handler(&event, true);
|
