diff options
| author | hathach <[email protected]> | 2020-09-10 23:32:08 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2020-09-10 23:32:08 +0700 |
| commit | 801f8b5b38b90cb3e15d0a1bb2accae58cde6130 (patch) | |
| tree | 6df3589930a5a185a3b28c2162508a6dd03122a6 /src/device | |
| parent | ed6d48b81e8a5d1ed8b518921b30b87c7daecee5 (diff) | |
update claim edpt for hid and midi
Diffstat (limited to 'src/device')
| -rw-r--r-- | src/device/usbd_pvt.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/device/usbd_pvt.h b/src/device/usbd_pvt.h index 5fa9a72a5..09b285581 100644 --- a/src/device/usbd_pvt.h +++ b/src/device/usbd_pvt.h @@ -70,7 +70,8 @@ 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); -// Claim an endpoint before submitting a transfer +// 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); // Release an endpoint without submitting a transfer |
