Adafruit_TinyUSB_Arduino icon indicating copy to clipboard operation
Adafruit_TinyUSB_Arduino copied to clipboard

Please allow CFG_TUH_ENUMERATION_BUFSIZE to be configurable from the Arduino GUI or the application

Open rppicomidi opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. Someone using the usb_midi_host application host driver+the Adafruit TinyUSB Arduino library is trying to enumerate a device that has an Audio Streaming Interface and a MIDI Streaming Interface. They only want to access the MIDI interface. The USB descriptor for the device is over 430 bytes long, and so fails to enumerate.

Describe the solution you'd like What I would like is a method to set the number of bytes in the enumeration buffer from the Arduino GUI or from the sketch code.

Describe alternatives you've considered I have considered hacking the port file tusb_config_rp2040.h and hand editing the CFG_TUH_ENUMERATION_BUFSIZE value. But that change goes away every time the library updates.

Additional context This comment is based on Adafruit_TinyUSB_Library 2.4.1 and Earle Philhower Raspberry Pi Pico/RP2040 board package 3.7.0. I imagine this library would have to change first, and then there would need to be a change to the Raspberry Pi Pico/RP2040 board package.

rppicomidi avatar Feb 06 '24 00:02 rppicomidi

Hi, is there a fix for this without editing the core library files? My Yamaha piano is sending 301 bytes, so I need to bump up the buffer size.

mikeemoo avatar Feb 20 '25 11:02 mikeemoo