diff options
| author | hathach <[email protected]> | 2023-07-20 11:20:12 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-07-21 12:43:48 +0700 |
| commit | 1cc7c5d0309bcc7c6930fba78bc461e5822e8024 (patch) | |
| tree | 233b24ca011f913a71c08f9636c09dfc549b9c20 /src/portable | |
| parent | 17576a6949ced2fa7febca0d90da2f8afc8b6913 (diff) | |
add hcd_edpt_abort_xfer() API
Diffstat (limited to 'src/portable')
| -rw-r--r-- | src/portable/ehci/ehci.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/portable/ehci/ehci.c b/src/portable/ehci/ehci.c index 38711e382..fd33d6cfc 100644 --- a/src/portable/ehci/ehci.c +++ b/src/portable/ehci/ehci.c @@ -510,6 +510,24 @@ bool hcd_edpt_xfer(uint8_t rhport, uint8_t dev_addr, uint8_t ep_addr, uint8_t * return true; } +bool hcd_edpt_abort_xfer(uint8_t rhport, uint8_t dev_addr, uint8_t ep_addr) { + (void) rhport; + (void) dev_addr; + (void) ep_addr; + + return false; + +// uint8_t const epnum = tu_edpt_number(ep_addr); +// ehci_qhd_t* qhd; +// +// // TODO ISO not supported +// if (epnum == 0) { +// qhd = qhd_control(dev_addr); +// }else { +// qhd = qhd_get_from_addr(dev_addr, ep_addr); +// } +} + bool hcd_edpt_clear_stall(uint8_t daddr, uint8_t ep_addr) { ehci_qhd_t *qhd = qhd_get_from_addr(daddr, ep_addr); |
