File tree 3 files changed +34
-0
lines changed
components/arduino_tinyusb
3 files changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ if(CONFIG_TINYUSB_ENABLED)
43
43
"${COMPONENT_DIR} /tinyusb/src/class/msc/msc_device.c"
44
44
"${COMPONENT_DIR} /tinyusb/src/class/video/video_device.c"
45
45
"${COMPONENT_DIR} /tinyusb/src/class/dfu/dfu_rt_device.c"
46
+ "${COMPONENT_DIR} /tinyusb/src/class/dfu/dfu_device.c"
46
47
"${COMPONENT_DIR} /tinyusb/src/class/vendor/vendor_device.c"
47
48
"${COMPONENT_DIR} /tinyusb/src/common/tusb_fifo.c"
48
49
"${COMPONENT_DIR} /tinyusb/src/device/usbd_control.c"
Original file line number Diff line number Diff line change @@ -175,6 +175,31 @@ menu "Arduino TinyUSB"
175
175
176
176
endmenu
177
177
178
+ menu "DFU driver"
179
+ depends on TINYUSB_ENABLED
180
+
181
+ config TINYUSB_DFU_ENABLED
182
+ bool "Enable USB DFU TinyUSB driver"
183
+ default y
184
+ help
185
+ Enable USB DFU TinyUSB driver.
186
+
187
+ config TINYUSB_DESC_DFU_STRING
188
+ string "DFU Device String"
189
+ default "Espressif DFU Device"
190
+ depends on TINYUSB_DFU_ENABLED
191
+ help
192
+ Specify name of the DFU device
193
+
194
+ config TINYUSB_DFU_BUFSIZE
195
+ int "DFU buffer size"
196
+ default 4096
197
+ depends on TINYUSB_DFU_ENABLED
198
+ help
199
+ DFU buffer size
200
+
201
+ endmenu
202
+
178
203
menu "VENDOR driver"
179
204
depends on TINYUSB_ENABLED
180
205
Original file line number Diff line number Diff line change @@ -64,6 +64,10 @@ extern "C" {
64
64
# define CONFIG_TINYUSB_DFU_RT_ENABLED 0
65
65
#endif
66
66
67
+ #ifndef CONFIG_TINYUSB_DFU_ENABLED
68
+ # define CONFIG_TINYUSB_DFU_ENABLED 0
69
+ #endif
70
+
67
71
#ifndef CONFIG_TINYUSB_VENDOR_ENABLED
68
72
# define CONFIG_TINYUSB_VENDOR_ENABLED 0
69
73
#endif
@@ -106,6 +110,7 @@ extern "C" {
106
110
#define CFG_TUD_VIDEO CONFIG_TINYUSB_VIDEO_ENABLED
107
111
#define CFG_TUD_CUSTOM_CLASS CONFIG_TINYUSB_CUSTOM_CLASS_ENABLED
108
112
#define CFG_TUD_DFU_RUNTIME CONFIG_TINYUSB_DFU_RT_ENABLED
113
+ #define CFG_TUD_DFU CONFIG_TINYUSB_DFU_ENABLED
109
114
#define CFG_TUD_VENDOR CONFIG_TINYUSB_VENDOR_ENABLED
110
115
111
116
// CDC FIFO size of TX and RX
@@ -126,6 +131,9 @@ extern "C" {
126
131
#define CFG_TUD_VIDEO_STREAMING CONFIG_TINYUSB_VIDEO_STREAMING_IFS
127
132
#define CFG_TUD_VIDEO_STREAMING_EP_BUFSIZE CONFIG_TINYUSB_VIDEO_STREAMING_BUFSIZE
128
133
134
+ // DFU buffer size
135
+ #define CFG_TUD_DFU_XFER_BUFSIZE CONFIG_TINYUSB_DFU_BUFSIZE
136
+
129
137
// VENDOR FIFO size of TX and RX
130
138
#define CFG_TUD_VENDOR_RX_BUFSIZE CONFIG_TINYUSB_VENDOR_RX_BUFSIZE
131
139
#define CFG_TUD_VENDOR_TX_BUFSIZE CONFIG_TINYUSB_VENDOR_TX_BUFSIZE
You can’t perform that action at this time.
0 commit comments