diff options
| author | hathach <[email protected]> | 2025-02-12 22:16:08 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2025-02-12 22:16:08 +0700 |
| commit | e0b192b633e70338ef5ac88c7f5a49f37867b289 (patch) | |
| tree | 33caaa2435bdba110028838f0a03677100714c68 /examples | |
| parent | 86d371fb79ca8b1ee6794c33b6a74d4319d9c1a6 (diff) | |
- 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
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/host/midi_rx/src/tusb_config.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/host/midi_rx/src/tusb_config.h b/examples/host/midi_rx/src/tusb_config.h index 1afcbbd63..24b3b3ae6 100644 --- a/examples/host/midi_rx/src/tusb_config.h +++ b/examples/host/midi_rx/src/tusb_config.h @@ -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 |
