summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
Diffstat (limited to 'src/device')
-rw-r--r--src/device/usbd.c27
-rw-r--r--src/device/usbd_pvt.h3
2 files changed, 0 insertions, 30 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c
index 8d3fbac59..90edc3dde 100644
--- a/src/device/usbd.c
+++ b/src/device/usbd.c
@@ -1191,33 +1191,6 @@ bool usbd_edpt_xfer(uint8_t rhport, uint8_t ep_addr, uint8_t * buffer, uint16_t
}
}
-bool usbd_edpt_xfer_abort(uint8_t rhport, uint8_t ep_addr)
-{
- uint8_t const epnum = tu_edpt_number(ep_addr);
- uint8_t const dir = tu_edpt_dir(ep_addr);
-
- TU_LOG2(" Abort XFER EP %02X ... ", ep_addr);
-
- // Abort API is optional for DCD
- if ( dcd_edpt_xfer_abort )
- {
- if ( dcd_edpt_xfer_abort(rhport, ep_addr) )
- {
- _usbd_dev.ep_status[epnum][dir].busy = false;
- TU_LOG2("OK\r\n");
- return true;
- }else
- {
- TU_LOG2("failed\r\n");
- return false;
- }
- }else
- {
- TU_LOG2("no DCD support\r\n");
- return false;
- }
-}
-
bool usbd_edpt_busy(uint8_t rhport, uint8_t ep_addr)
{
(void) rhport;
diff --git a/src/device/usbd_pvt.h b/src/device/usbd_pvt.h
index 4eb17a501..09b285581 100644
--- a/src/device/usbd_pvt.h
+++ b/src/device/usbd_pvt.h
@@ -70,9 +70,6 @@ void usbd_edpt_close(uint8_t rhport, uint8_t ep_addr);
// Submit a usb transfer
bool usbd_edpt_xfer(uint8_t rhport, uint8_t ep_addr, uint8_t * buffer, uint16_t total_bytes);
-// Abort a scheduled transfer
-bool usbd_edpt_xfer_abort(uint8_t rhport, uint8_t ep_addr);
-
// Claim an endpoint before submitting a transfer.
// If caller does not make any transfer, it must release endpoint for others.
bool usbd_edpt_claim(uint8_t rhport, uint8_t ep_addr);