diff options
| author | hathach <[email protected]> | 2023-07-24 11:55:54 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-07-24 20:58:50 +0700 |
| commit | f295aaf1851eb270070af7292d1f100f7172daf4 (patch) | |
| tree | 9883af3518f3ff89b9ea78ba8e9ace789ea0ac94 /src | |
| parent | c122e9df73331fa60d1713c7cc4cf46251b0cd76 (diff) | |
add hcd abort xfer for rp2040 pio usb
Diffstat (limited to 'src')
| -rw-r--r-- | src/portable/raspberrypi/pio_usb/hcd_pio_usb.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/portable/raspberrypi/pio_usb/hcd_pio_usb.c b/src/portable/raspberrypi/pio_usb/hcd_pio_usb.c index fa285327c..bb41ad638 100644 --- a/src/portable/raspberrypi/pio_usb/hcd_pio_usb.c +++ b/src/portable/raspberrypi/pio_usb/hcd_pio_usb.c @@ -139,11 +139,8 @@ bool hcd_edpt_xfer(uint8_t rhport, uint8_t dev_addr, uint8_t ep_addr, uint8_t * } bool hcd_edpt_abort_xfer(uint8_t rhport, uint8_t dev_addr, uint8_t ep_addr) { - (void) rhport; - (void) dev_addr; - (void) ep_addr; - // TODO not implemented yet - return false; + uint8_t const pio_rhport = RHPORT_PIO(rhport); + return pio_usb_host_endpoint_abort_transfer(pio_rhport, dev_addr, ep_addr); } bool hcd_setup_send(uint8_t rhport, uint8_t dev_addr, uint8_t const setup_packet[8]) |
