Skip to content

Commit ff7b62d

Browse files
committed
enable usb midi in tusb_config.h
1 parent 0aa2b2f commit ff7b62d

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

cores/arduino/Adafruit_TinyUSB_Core/tusb_config.h

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
#define CFG_TUSB_OS OPT_OS_NONE
4848

4949
#define CFG_TUSB_MEM_SECTION
50-
#define CFG_TUSB_MEM_ALIGN ATTR_ALIGNED(4)
50+
#define CFG_TUSB_MEM_ALIGN TU_ATTR_ALIGNED(4)
5151

5252
//--------------------------------------------------------------------
5353
// DEVICE CONFIGURATION
@@ -59,26 +59,22 @@
5959
#define CFG_TUD_CDC 1
6060
#define CFG_TUD_MSC 1
6161
#define CFG_TUD_HID 1
62-
63-
#define CFG_TUD_MIDI 0
62+
#define CFG_TUD_MIDI 1
6463
#define CFG_TUD_CUSTOM_CLASS 0
6564

66-
//------------- CDC -------------//
67-
68-
// FIFO size of CDC TX and RX
65+
// CDC FIFO size of TX and RX
6966
#define CFG_TUD_CDC_RX_BUFSIZE 256
7067
#define CFG_TUD_CDC_TX_BUFSIZE 256
7168

72-
//------------- MSC -------------//
73-
74-
// Buffer size of Device Mass storage
69+
// MSC Buffer size of Device Mass storage
7570
#define CFG_TUD_MSC_BUFSIZE 512
7671

77-
//------------- HID -------------//
78-
79-
// Should be sufficient to hold ID (if any) + Data
72+
// HID buffer size Should be sufficient to hold ID (if any) + Data
8073
#define CFG_TUD_HID_BUFSIZE 64
8174

75+
// MIDI FIFO size of TX and RX
76+
#define CFG_TUD_MIDI_RX_BUFSIZE 64
77+
#define CFG_TUD_MIDI_TX_BUFSIZE 64
8278

8379
#ifdef __cplusplus
8480
}

0 commit comments

Comments
 (0)