replacing hcd_pipe_xfer by usbh_edpt_xfer

This commit is contained in:
hathach
2020-09-06 11:49:00 +07:00
parent 9a6d7c648e
commit 15ad585e67
7 changed files with 58 additions and 10 deletions
+2 -2
View File
@@ -167,8 +167,8 @@ bool hub_open(uint8_t rhport, uint8_t dev_addr, tusb_desc_interface_t const *itf
TU_ASSERT( usbh_control_xfer( dev_addr, &request, NULL ) );
}
//------------- Queue the initial Status endpoint transfer -------------//
TU_ASSERT( hcd_pipe_xfer(dev_addr, hub_data[dev_addr-1].ep_status, &hub_data[dev_addr-1].status_change, 1, true) );
// Queue notification status endpoint
TU_ASSERT( usbh_edpt_xfer(dev_addr, hub_data[dev_addr-1].ep_status, &hub_data[dev_addr-1].status_change, 1) );
return true;
}