提交 ca4b48aa 编写于 作者: H hichard

修复STM32F4-Hal bsp USB主机驱动的一个bug

上级 9d55baa7
......@@ -179,6 +179,9 @@ static int drv_pipe_xfer(upipe_t pipe, rt_uint8_t token, void *buffer, int nbyte
{
pipe->callback(pipe);
}
if (pipe->ep.bEndpointAddress & 0x80) {
return HAL_HCD_HC_GetXferCount(&_stm_hhcd_fs, pipe->pipe_index);
}
return nbytes;
}
return -1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册