diff options
| author | Zhihong Chen <[email protected]> | 2024-02-06 11:22:50 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2024-02-06 18:31:47 +0800 |
| commit | 3f89d1b003083c458959dd52e1316b75a70f55fe (patch) | |
| tree | 92add09d9d12dfcafb0c90cb8347171b53f88805 | |
| parent | 5897edffedce7cf96a77fba7bec0187488a1b9ad (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.c | 4 |
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; |
