Skip to content

Commit 68b0dce

Browse files
authored
Update tusb_config.h
1 parent b128151 commit 68b0dce

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

components/arduino_tinyusb/include/tusb_config.h

+9
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ extern "C" {
5252
# define CONFIG_TINYUSB_MIDI_ENABLED 0
5353
#endif
5454

55+
#ifndef CONFIG_TINYUSB_VIDEO_ENABLED
56+
# define CONFIG_TINYUSB_VIDEO_ENABLED 0
57+
#endif
58+
5559
#ifndef CONFIG_TINYUSB_CUSTOM_CLASS_ENABLED
5660
# define CONFIG_TINYUSB_CUSTOM_CLASS_ENABLED 0
5761
#endif
@@ -99,6 +103,7 @@ extern "C" {
99103
#define CFG_TUD_MSC CONFIG_TINYUSB_MSC_ENABLED
100104
#define CFG_TUD_HID CONFIG_TINYUSB_HID_ENABLED
101105
#define CFG_TUD_MIDI CONFIG_TINYUSB_MIDI_ENABLED
106+
#define CFG_TUD_VIDEO CONFIG_TINYUSB_VIDEO_ENABLED
102107
#define CFG_TUD_CUSTOM_CLASS CONFIG_TINYUSB_CUSTOM_CLASS_ENABLED
103108
#define CFG_TUD_DFU_RUNTIME CONFIG_TINYUSB_DFU_RT_ENABLED
104109
#define CFG_TUD_VENDOR CONFIG_TINYUSB_VENDOR_ENABLED
@@ -117,6 +122,10 @@ extern "C" {
117122
#define CFG_TUD_MIDI_RX_BUFSIZE CONFIG_TINYUSB_MIDI_RX_BUFSIZE
118123
#define CFG_TUD_MIDI_TX_BUFSIZE CONFIG_TINYUSB_MIDI_TX_BUFSIZE
119124

125+
// The number of video streaming interfaces and endpoint size
126+
#define CFG_TUD_VIDEO_STREAMING CONFIG_TINYUSB_VIDEO_STREAMING_IFS
127+
#define CFG_TUD_VIDEO_STREAMING_EP_BUFSIZE CONFIG_TINYUSB_VIDEO_STREAMING_BUFSIZE
128+
120129
// VENDOR FIFO size of TX and RX
121130
#define CFG_TUD_VENDOR_RX_BUFSIZE CONFIG_TINYUSB_VENDOR_RX_BUFSIZE
122131
#define CFG_TUD_VENDOR_TX_BUFSIZE CONFIG_TINYUSB_VENDOR_TX_BUFSIZE

0 commit comments

Comments
 (0)