diff options
| author | hathach <[email protected]> | 2019-06-10 18:46:00 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-06-10 18:46:00 +0700 |
| commit | 7156bfb54d5e9e13c8574b2384a47bd5554798a9 (patch) | |
| tree | 38493c441211bd5e79bc1e468842aab504f95bca /examples | |
| parent | 15208e710a4122bc11417f5f8980e7a02c1a2a4f (diff) | |
fix build error with midi, use usbd_edpt_xfer/busy for midi to replace dcd_*
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/device/cdc_msc_hid/src/tusb_config.h | 3 | ||||
| -rw-r--r-- | examples/rules.mk | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/examples/device/cdc_msc_hid/src/tusb_config.h b/examples/device/cdc_msc_hid/src/tusb_config.h index 6b1f0700b..2c89a63b7 100644 --- a/examples/device/cdc_msc_hid/src/tusb_config.h +++ b/examples/device/cdc_msc_hid/src/tusb_config.h @@ -95,6 +95,9 @@ // Should be sufficient to hold ID (if any) + Data #define CFG_TUD_HID_BUFSIZE 16 +#define CFG_TUD_MIDI_RX_BUFSIZE 512 +#define CFG_TUD_MIDI_TX_BUFSIZE 512 + #ifdef __cplusplus } #endif diff --git a/examples/rules.mk b/examples/rules.mk index 07840f6ff..bba0fdb53 100644 --- a/examples/rules.mk +++ b/examples/rules.mk @@ -13,6 +13,7 @@ SRC_C += \ src/class/msc/msc_device.c \ src/class/cdc/cdc_device.c \ src/class/hid/hid_device.c \ + src/class/midi/midi_device.c \ src/tusb.c \ src/portable/$(VENDOR)/$(CHIP_FAMILY)/dcd_$(CHIP_FAMILY).c |
