mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-14 04:18:56 +00:00
fix #558
This commit is contained in:
parent
cb8ceba3dd
commit
4f988b792c
@ -80,7 +80,8 @@ 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, but some microcontrollers only allow 8, 16, 32 or 64 for FS
|
||||
// USBTMC Interrupt xfer always has length of 2, but we use epMaxSize=8 here for compatibility
|
||||
// with microcontrollers 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 = */ 8, /* bInterval = */16u )
|
||||
|
Loading…
x
Reference in New Issue
Block a user