diff options
| author | hathach <[email protected]> | 2021-02-01 13:41:20 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2021-02-01 13:41:20 +0700 |
| commit | 0799a910730a3aa881f6292b2c7cbbc784690e7a (patch) | |
| tree | 34b85bdb2853c173a1d9c29dff9df65f2621801e /examples | |
| parent | 8e954a439151822fcd415b3c611008aee423b813 (diff) | |
| parent | 78f50518a48f55fe3a4d921895c5d6c400c355b0 (diff) | |
Merge branch 'master' into rp2040-logger-enumfix
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/device/usbtmc/src/usb_descriptors.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/device/usbtmc/src/usb_descriptors.c b/examples/device/usbtmc/src/usb_descriptors.c index 505456769..2336266b8 100644 --- a/examples/device/usbtmc/src/usb_descriptors.c +++ b/examples/device/usbtmc/src/usb_descriptors.c @@ -80,10 +80,11 @@ uint8_t const * tud_descriptor_device_cb(void) TUD_USBTMC_BULK_DESCRIPTORS(/* OUT = */0x01, /* IN = */ 0x81, /* packet size = */USBTMCD_MAX_PACKET_SIZE) #if CFG_TUD_USBTMC_ENABLE_INT_EP -// Interrupt endpoint should be 2 bytes on a FS USB link +// USBTMC Interrupt xfer always has length of 2, but we use epMaxSize=8 for +// compatibility with mcus that only allow 8, 16, 32 or 64 for FS endpoints # define TUD_USBTMC_DESC(_itfnum) \ TUD_USBTMC_DESC_MAIN(_itfnum, /* _epCount = */ 3), \ - TUD_USBTMC_INT_DESCRIPTOR(/* INT ep # */ 0x82, /* epMaxSize = */ 2, /* bInterval = */16u ) + TUD_USBTMC_INT_DESCRIPTOR(/* INT ep # */ 0x82, /* epMaxSize = */ 8, /* bInterval = */16u ) # define TUD_USBTMC_DESC_LEN (TUD_USBTMC_IF_DESCRIPTOR_LEN + TUD_USBTMC_BULK_DESCRIPTORS_LEN + TUD_USBTMC_INT_DESCRIPTOR_LEN) #else |
