summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-09-29 16:29:15 +0700
committerhathach <[email protected]>2021-09-29 16:29:15 +0700
commit1d5bdf7d396afe22b114f6f8edf45cbc3d88325b (patch)
tree3308e45ff145a9ede7b6d2dddbe73955c8539ced
parent0b31c40b9f84e8207d78a3196a755be53356534f (diff)
add same7x to board list
-rw-r--r--docs/reference/supported.rst6
-rw-r--r--src/class/vendor/vendor_device.c2
2 files changed, 8 insertions, 0 deletions
diff --git a/docs/reference/supported.rst b/docs/reference/supported.rst
index daf5bce75..c8a441f18 100644
--- a/docs/reference/supported.rst
+++ b/docs/reference/supported.rst
@@ -175,6 +175,12 @@ SAMD51 & SAME54
- `D5035-01 <https://github.com/RudolphRiedel/USB_CAN-FD>`__
- `Microchip SAME54 Xplained Pro <https://www.microchip.com/developmenttools/productdetails/atsame54-xpro>`__
+SAME7x
+^^^^^^
+
+- `Microchip SAME70 Xplained <https://www.microchip.com/en-us/development-tool/ATSAME70-XPLD>`_
+- `QMTECH ATSAME70N19 <https://www.aliexpress.com/item/1005003173783268.html>`_
+
SAMG
^^^^
diff --git a/src/class/vendor/vendor_device.c b/src/class/vendor/vendor_device.c
index 188b561d7..8f25141b8 100644
--- a/src/class/vendor/vendor_device.c
+++ b/src/class/vendor/vendor_device.c
@@ -207,6 +207,8 @@ uint16_t vendord_open(uint8_t rhport, tusb_desc_interface_t const * desc_itf, ui
// Open endpoint pair with usbd helper
TU_ASSERT(usbd_open_edpt_pair(rhport, p_desc, desc_itf->bNumEndpoints, TUSB_XFER_BULK, &p_vendor->ep_out, &p_vendor->ep_in), 0);
+ drv_len += desc_itf->bNumEndpoints*sizeof(tusb_desc_endpoint_t);
+
// Prepare for incoming data
if ( p_vendor->ep_out )
{