summaryrefslogtreecommitdiff
path: root/src/portable/template
diff options
context:
space:
mode:
authorhathach <[email protected]>2024-08-19 20:08:55 +0700
committerhathach <[email protected]>2024-08-19 20:08:55 +0700
commitea4f9ceb58f0aa6acc86bbe3083596a98b5355fd (patch)
treea0a72ccb003fdac720a52745c0530f12c3475623 /src/portable/template
parent215832397b1593e2df5609f92c9346c133a03774 (diff)
remove weak from dcd_edpt_close() for port without TUP_DCD_EDPT_ISO_ALLOC
Diffstat (limited to 'src/portable/template')
-rw-r--r--src/portable/template/dcd_template.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/portable/template/dcd_template.c b/src/portable/template/dcd_template.c
index 12d610bd6..25ee507c1 100644
--- a/src/portable/template/dcd_template.c
+++ b/src/portable/template/dcd_template.c
@@ -102,6 +102,22 @@ bool dcd_edpt_open (uint8_t rhport, tusb_desc_endpoint_t const * ep_desc)
return false;
}
+// Allocate packet buffer used by ISO endpoints
+// Some MCU need manual packet buffer allocation, we allocate the largest size to avoid clustering
+bool dcd_edpt_iso_alloc(uint8_t rhport, uint8_t ep_addr, uint16_t largest_packet_size) {
+ (void) rhport;
+ (void) ep_addr;
+ (void) largest_packet_size;
+ return false;
+}
+
+// Configure and enable an ISO endpoint according to descriptor
+bool dcd_edpt_iso_activate(uint8_t rhport, tusb_desc_endpoint_t const * desc_ep) {
+ (void) rhport;
+ (void) desc_ep;
+ return false;
+}
+
void dcd_edpt_close_all (uint8_t rhport)
{
(void) rhport;