diff options
| author | hathach <[email protected]> | 2019-07-12 19:38:04 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-07-12 19:38:04 +0700 |
| commit | 2b7acd554a00f196394fdb91cd11a18e7981949f (patch) | |
| tree | 825cc8a6d1eb87aa11766cda4d98d3be6b1c9f56 /examples/device/midi_test/src | |
| parent | fdf39dd4aee82dc63d94a5a4e9423ecc15a268a1 (diff) | |
updating webusb with cdc
Diffstat (limited to 'examples/device/midi_test/src')
| -rw-r--r-- | examples/device/midi_test/src/usb_descriptors.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/device/midi_test/src/usb_descriptors.c b/examples/device/midi_test/src/usb_descriptors.c index cffef0fb2..85cffffcc 100644 --- a/examples/device/midi_test/src/usb_descriptors.c +++ b/examples/device/midi_test/src/usb_descriptors.c @@ -77,10 +77,7 @@ enum ITF_NUM_TOTAL }; -enum -{ - CONFIG_TOTAL_LEN = TUD_CONFIG_DESC_LEN + TUD_MIDI_DESC_LEN -}; +#define CONFIG_TOTAL_LEN (TUD_CONFIG_DESC_LEN + TUD_MIDI_DESC_LEN) // Use Endpoint 2 instead of 1 due to NXP MCU // LPC 17xx and 40xx endpoint type (bulk/interrupt/iso) are fixed by its number |
