use hcd_pipe_is_busy instead of hcd_pipe_is_idle

remove hcd_pipe_is_idle
This commit is contained in:
hathach
2014-02-20 10:41:31 +07:00
parent d86523b16c
commit 533c8d2eed
6 changed files with 82 additions and 111 deletions

View File

@@ -493,12 +493,6 @@ bool hcd_pipe_is_error(pipe_handle_t pipe_hdl)
return p_qhd->qtd_overlay.halted;
}
bool hcd_pipe_is_idle(pipe_handle_t pipe_hdl)
{ // TODO to be remove
ehci_qhd_t *p_qhd = qhd_get_from_pipe_handle( pipe_hdl );
return (p_qhd->p_qtd_list_head == NULL);
}
bool hcd_pipe_is_stalled(pipe_handle_t pipe_hdl)
{
ehci_qhd_t *p_qhd = qhd_get_from_pipe_handle( pipe_hdl );