Skip to content

Commit ad237f6

Browse files
committed
Enabling mass storage device as Host device (plus debug)
1 parent ec507d2 commit ad237f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

variants/PORTENTA_H33/tusb_config.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@
101101
#define CFG_TUD_VENDOR 0
102102
#define CFG_TUD_DFU_RUNTIME 1
103103

104+
#define CFG_TUH_MSC 1
105+
104106
// CDC FIFO size of TX and RX
105107
#define CFG_TUD_CDC_RX_BUFSIZE ((TUD_OPT_HIGH_SPEED ? 512 : 64) * 8)
106108
#define CFG_TUD_CDC_TX_BUFSIZE ((TUD_OPT_HIGH_SPEED ? 512 : 64) * 8)
@@ -111,6 +113,8 @@
111113
// MSC Buffer size of Device Mass storage
112114
#define CFG_TUD_MSC_EP_BUFSIZE 512
113115

116+
#define CFG_TUSB_DEBUG_PRINTF mylogadd
117+
#define CFG_TUSB_DEBUG 3
114118

115119
#ifdef __cplusplus
116120
}

0 commit comments

Comments
 (0)