summaryrefslogtreecommitdiff
path: root/src/portable/microchip/samd
diff options
context:
space:
mode:
authorhathach <[email protected]>2025-11-15 19:46:14 +0700
committerhathach <[email protected]>2025-11-17 12:09:30 +0700
commit6b28a4478c9f8fa3993d593360eb5574bbdeda22 (patch)
tree5a3b2566184aa29c7e4d8d923392cdf689cbae45 /src/portable/microchip/samd
parenta3a5a41be8e22f529a8941c107ec32d48faa6ff2 (diff)
make TUP_DCD_EDPT_ISO_ALLOC i.e dcd_edpt_iso_alloc()/dcd_edpt_iso_activate() as default driver implementation. dcd_edpt_close() is deprecated and will be removed from all driver in the future.
Diffstat (limited to 'src/portable/microchip/samd')
-rw-r--r--src/portable/microchip/samd/dcd_samd.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/portable/microchip/samd/dcd_samd.c b/src/portable/microchip/samd/dcd_samd.c
index e43439f2a..383cf60e5 100644
--- a/src/portable/microchip/samd/dcd_samd.c
+++ b/src/portable/microchip/samd/dcd_samd.c
@@ -245,11 +245,17 @@ bool dcd_edpt_open (uint8_t rhport, tusb_desc_endpoint_t const * desc_edpt)
return true;
}
-void dcd_edpt_close (uint8_t rhport, uint8_t ep_addr) {
+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;
+}
- // TODO: implement if necessary?
+bool dcd_edpt_iso_activate(uint8_t rhport, const tusb_desc_endpoint_t *desc_ep) {
+ (void)rhport;
+ (void)desc_ep;
+ return false;
}
void dcd_edpt_close_all (uint8_t rhport)
@@ -427,5 +433,4 @@ void dcd_int_handler (uint8_t rhport)
// Handle complete transfer
maybe_transfer_complete();
}
-
#endif