Skip to content

Commit 247cc36

Browse files
committed
1 parent 54fb40e commit 247cc36

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tinyusb/tusb_config.h

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,11 @@
9595

9696
//------------- CLASS -------------//
9797
#define CFG_TUD_CDC 1
98-
#define CFG_TUD_MSC 1
98+
#if defined(PICORUBY_NO_MSC)
99+
#define CFG_TUD_MSC 0
100+
#else
101+
#define CFG_TUD_MSC 1
102+
#endif
99103
#define CFG_TUD_HID 2
100104
#define CFG_TUD_MIDI 0
101105
#define CFG_TUD_VENDOR 0
@@ -108,7 +112,9 @@
108112
#elif defined(PICORUBY_MSC_SD)
109113
#define CFG_TUD_MSC_EP_BUFSIZE 512
110114
#else
111-
#error PICORUBY_MSC_devicename must be defined
115+
#if !defined(PICORUBY_NO_MSC)
116+
#error PICORUBY_MSC_FLASH or PICORUBY_MSC_SD must be defined
117+
#endif
112118
#endif
113119

114120
// CDC FIFO size of TX and RX

0 commit comments

Comments
 (0)