- use CFG_TUH_MIDI as number of midi host instance

- comment out tuh_descriptor_device_cb/tuh_desc_configuration_cb since it is unrelated to this PR
This commit is contained in:
hathach
2025-02-12 22:16:08 +07:00
parent 86d371fb79
commit e0b192b633
5 changed files with 152 additions and 177 deletions

View File

@@ -107,10 +107,9 @@ extern "C" {
#define CFG_TUH_ENUMERATION_BUFSIZE 256
#define CFG_TUH_HUB 1
#define CFG_TUH_MIDI 1 // there will be at most one MIDIStreaming Interface descriptor
// max device support (excluding hub device): 1 hub typically has 4 ports
#define CFG_TUH_DEVICE_MAX (3*CFG_TUH_HUB + 1)
#define CFG_TUH_MIDI CFG_TUH_DEVICE_MAX
#define CFG_MIDI_HOST_DEVSTRINGS 1