summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhihong Chen <[email protected]>2024-02-06 11:22:50 +0800
committersakumisu <[email protected]>2024-02-06 18:31:47 +0800
commit3f89d1b003083c458959dd52e1316b75a70f55fe (patch)
tree92add09d9d12dfcafb0c90cb8347171b53f88805
parent5897edffedce7cf96a77fba7bec0187488a1b9ad (diff)
usbd: change endpoint number from 8 to 16
- Because the maximum number of endpoints specified in the USB protocol is 16, and some vendors support 16 endpoints Signed-off-by: Zhihong Chen <[email protected]>
-rw-r--r--core/usbd_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/usbd_core.c b/core/usbd_core.c
index 2768419d..dc7da00c 100644
--- a/core/usbd_core.c
+++ b/core/usbd_core.c
@@ -20,8 +20,8 @@
#define INTF_DESC_bInterfaceNumber 2 /** Interface number offset */
#define INTF_DESC_bAlternateSetting 3 /** Alternate setting offset */
-#define USB_EP_OUT_NUM 8
-#define USB_EP_IN_NUM 8
+#define USB_EP_OUT_NUM 16
+#define USB_EP_IN_NUM 16
struct usbd_tx_rx_msg {
uint8_t ep;