refactor usbh class driver

This commit is contained in:
hathach
2018-12-10 05:07:22 +07:00
parent 05913a7350
commit 6a6e7d0ecb
6 changed files with 140 additions and 112 deletions

View File

@@ -951,6 +951,7 @@ static inline pipe_handle_t qhd_create_pipe_handle(ehci_qhd_t const * p_qhd, tus
if (TUSB_XFER_CONTROL != xfer_type) // qhd index for control is meaningless
{
pipe_hdl.index = qhd_get_index(p_qhd);
pipe_hdl.ep_addr = edpt_addr(p_qhd->endpoint_number, p_qhd->pid_non_control == EHCI_PID_IN ? 1 : 0);
}
return pipe_hdl;