summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-12-11 01:06:10 +0700
committerhathach <[email protected]>2018-12-11 01:06:10 +0700
commit73e6bb6f5d9461915bd157e5802eb6f6436b5831 (patch)
treefe3e888597a1fe6a667b8ebd0729fa89ec8f2e37 /src
parent7c2056defbc9aff3f7aaba4763fd0630df9159bf (diff)
clean up
Diffstat (limited to 'src')
-rw-r--r--src/host/ehci/ehci.c4
-rw-r--r--src/host/hcd.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/host/ehci/ehci.c b/src/host/ehci/ehci.c
index c36bfe181..fa4a1f3f3 100644
--- a/src/host/ehci/ehci.c
+++ b/src/host/ehci/ehci.c
@@ -503,12 +503,12 @@ bool hcd_pipe_is_stalled(uint8_t dev_addr, uint8_t ep_addr)
return p_qhd->qtd_overlay.halted && !qhd_has_xact_error(p_qhd);
}
-tusb_error_t hcd_pipe_clear_stall(uint8_t dev_addr, uint8_t ep_addr)
+bool hcd_pipe_clear_stall(uint8_t dev_addr, uint8_t ep_addr)
{
ehci_qhd_t *p_qhd = qhd_get_from_addr(dev_addr, ep_addr);
p_qhd->qtd_overlay.halted = 0;
// TODO reset data toggle ?
- return TUSB_ERROR_NONE;
+ return true;
}
//--------------------------------------------------------------------+
diff --git a/src/host/hcd.h b/src/host/hcd.h
index 3c34a5609..5a7f0756b 100644
--- a/src/host/hcd.h
+++ b/src/host/hcd.h
@@ -134,7 +134,7 @@ bool hcd_pipe_close(uint8_t rhport, uint8_t dev_addr, uint8_t ep_addr); // TODO
bool hcd_pipe_is_busy(uint8_t dev_addr, uint8_t ep_addr);
bool hcd_pipe_is_stalled(uint8_t dev_addr, uint8_t ep_addr); // stalled also counted as error
-tusb_error_t hcd_pipe_clear_stall(uint8_t dev_addr, uint8_t ep_addr);
+bool hcd_pipe_clear_stall(uint8_t dev_addr, uint8_t ep_addr);
#if 0
tusb_error_t hcd_pipe_cancel()ATTR_WARN_UNUSED_RESULT;