Skip to content

Commit 41e003f

Browse files
authored
Update tusb_config.h
1 parent 9c5929f commit 41e003f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

components/arduino_tinyusb/include/tusb_config.h

+8
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ extern "C" {
6464
# define CONFIG_TINYUSB_DFU_RT_ENABLED 0
6565
#endif
6666

67+
#ifndef CONFIG_TINYUSB_DFU_ENABLED
68+
# define CONFIG_TINYUSB_DFU_ENABLED 0
69+
#endif
70+
6771
#ifndef CONFIG_TINYUSB_VENDOR_ENABLED
6872
# define CONFIG_TINYUSB_VENDOR_ENABLED 0
6973
#endif
@@ -106,6 +110,7 @@ extern "C" {
106110
#define CFG_TUD_VIDEO CONFIG_TINYUSB_VIDEO_ENABLED
107111
#define CFG_TUD_CUSTOM_CLASS CONFIG_TINYUSB_CUSTOM_CLASS_ENABLED
108112
#define CFG_TUD_DFU_RUNTIME CONFIG_TINYUSB_DFU_RT_ENABLED
113+
#define CFG_TUD_DFU CONFIG_TINYUSB_DFU_ENABLED
109114
#define CFG_TUD_VENDOR CONFIG_TINYUSB_VENDOR_ENABLED
110115

111116
// CDC FIFO size of TX and RX
@@ -126,6 +131,9 @@ extern "C" {
126131
#define CFG_TUD_VIDEO_STREAMING CONFIG_TINYUSB_VIDEO_STREAMING_IFS
127132
#define CFG_TUD_VIDEO_STREAMING_EP_BUFSIZE CONFIG_TINYUSB_VIDEO_STREAMING_BUFSIZE
128133

134+
// DFU buffer size
135+
#define CFG_TUD_DFU_XFER_BUFSIZE CONFIG_TINYUSB_DFU_BUFSIZE
136+
129137
// VENDOR FIFO size of TX and RX
130138
#define CFG_TUD_VENDOR_RX_BUFSIZE CONFIG_TINYUSB_VENDOR_RX_BUFSIZE
131139
#define CFG_TUD_VENDOR_TX_BUFSIZE CONFIG_TINYUSB_VENDOR_TX_BUFSIZE

0 commit comments

Comments
 (0)