diff options
| author | Ha Thach <[email protected]> | 2022-06-17 15:11:55 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-06-17 15:11:55 +0700 |
| commit | e0d7c16788f15c72c5a7837656d8b6d3ed28c3e0 (patch) | |
| tree | 9c7c0bdd4b68fb10674d2aa6befdbe83830a4760 /examples | |
| parent | 80121303eb80a1847ad314cb87774e6e390754c6 (diff) | |
| parent | 905a0b24576deab6a2b4214b1428c87e4cd703a5 (diff) | |
Merge pull request #1516 from hathach/fix-example-with-highspeed
correct bulk size for highspeed endpoint in dynamic_configuration and usbtmc exmaples
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/device/dynamic_configuration/src/usb_descriptors.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/device/dynamic_configuration/src/usb_descriptors.c b/examples/device/dynamic_configuration/src/usb_descriptors.c index 3352972a5..b88f20163 100644 --- a/examples/device/dynamic_configuration/src/usb_descriptors.c +++ b/examples/device/dynamic_configuration/src/usb_descriptors.c @@ -163,7 +163,7 @@ uint8_t const desc_configuration_0[] = TUD_CONFIG_DESCRIPTOR(1, ITF_0_NUM_TOTAL, 0, CONFIG_0_TOTAL_LEN, 0x00, 100), // Interface number, string index, EP notification address and size, EP data address (out, in) and size. - TUD_CDC_DESCRIPTOR(ITF_0_NUM_CDC, 0, EPNUM_0_CDC_NOTIF, 8, EPNUM_0_CDC_OUT, EPNUM_0_CDC_IN, 64), + TUD_CDC_DESCRIPTOR(ITF_0_NUM_CDC, 0, EPNUM_0_CDC_NOTIF, 8, EPNUM_0_CDC_OUT, EPNUM_0_CDC_IN, TUD_OPT_HIGH_SPEED ? 512 : 64), // Interface number, string index, EP Out & EP In address, EP size TUD_MIDI_DESCRIPTOR(ITF_0_NUM_MIDI, 0, EPNUM_0_MIDI_OUT, EPNUM_0_MIDI_IN, TUD_OPT_HIGH_SPEED ? 512 : 64), |
