This is an automated email from the ASF dual-hosted git repository. jerzy pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit 1098005e550f160bfa7672412d99ba7cbb3bbf70 Author: Jerzy Kasenberg <[email protected]> AuthorDate: Sun Dec 19 12:43:11 2021 +0100 tinyusb: Fix bulk endpoint size for high speed High speed device bulk endpoint max packet size is 512 per USB 2.0 specification 5.8.3 Bulk Transfer Packet Size Constraints. This fixes endpoint sizes in standard descriptors. --- hw/usb/tinyusb/std_descriptors/src/std_descriptors.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/usb/tinyusb/std_descriptors/src/std_descriptors.c b/hw/usb/tinyusb/std_descriptors/src/std_descriptors.c index 92aed60..253db07 100755 --- a/hw/usb/tinyusb/std_descriptors/src/std_descriptors.c +++ b/hw/usb/tinyusb/std_descriptors/src/std_descriptors.c @@ -254,13 +254,15 @@ const uint8_t desc_configuration[] = { #if CFG_TUD_BTH TUD_BTH_DESCRIPTOR(ITF_NUM_BTH, BTH_IF_STR_IX, USBD_BTH_EVENT_EP, USBD_BTH_EVENT_EP_SIZE, - USBD_BTH_EVENT_EP_INTERVAL, USBD_BTH_DATA_IN_EP, USBD_BTH_DATA_OUT_EP, USBD_BTH_DATA_EP_SIZE, + USBD_BTH_EVENT_EP_INTERVAL, USBD_BTH_DATA_IN_EP, USBD_BTH_DATA_OUT_EP, + (CFG_TUSB_RHPORT0_MODE & OPT_MODE_HIGH_SPEED) ? 512 : USBD_BTH_DATA_EP_SIZE, 0, 9, 17, 25, 33, 49), #endif #if CFG_TUD_CDC TUD_CDC_DESCRIPTOR(ITF_NUM_CDC, CDC_IF_STR_IX, USBD_CDC_NOTIFY_EP, USBD_CDC_NOTIFY_EP_SIZE, - USBD_CDC_DATA_OUT_EP, USBD_CDC_DATA_IN_EP, USBD_CDC_DATA_EP_SIZE), + USBD_CDC_DATA_OUT_EP, USBD_CDC_DATA_IN_EP, + (CFG_TUSB_RHPORT0_MODE & OPT_MODE_HIGH_SPEED) ? 512 : USBD_CDC_DATA_EP_SIZE), #endif #if CFG_TUD_MSC
