Skip to content

Commit 1557fc4

Browse files
authored
Update Kconfig.projbuild
1 parent f6b9b22 commit 1557fc4

File tree

1 file changed

+29
-10
lines changed

1 file changed

+29
-10
lines changed

components/arduino_tinyusb/Kconfig.projbuild

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ menu "Arduino TinyUSB"
44
config TINYUSB_ENABLED
55
bool "Enable TinyUSB driver"
66
default y
7-
depends on IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
7+
depends on IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3 || IDF_TARGET_ESP32P4
88
select FREERTOS_SUPPORT_STATIC_ALLOCATION
99
select FREERTOS_USE_AUTHENTIC_INCLUDE_PATHS
1010
help
@@ -28,14 +28,16 @@ menu "Arduino TinyUSB"
2828

2929
config TINYUSB_CDC_RX_BUFSIZE
3030
int "CDC FIFO size of RX"
31-
default 64
31+
default 64 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
32+
default 512 if IDF_TARGET_ESP32P4
3233
depends on TINYUSB_CDC_ENABLED
3334
help
3435
CDC FIFO size of RX
3536

3637
config TINYUSB_CDC_TX_BUFSIZE
3738
int "CDC FIFO size of TX"
38-
default 64
39+
default 64 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
40+
default 512 if IDF_TARGET_ESP32P4
3941
depends on TINYUSB_CDC_ENABLED
4042
help
4143
CDC FIFO size of TX
@@ -86,7 +88,8 @@ menu "Arduino TinyUSB"
8688

8789
config TINYUSB_HID_BUFSIZE
8890
int "HID Buffer size"
89-
default 64
91+
default 64 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
92+
default 512 if IDF_TARGET_ESP32P4
9093
depends on TINYUSB_HID_ENABLED
9194
help
9295
HID Buffer size. Should be sufficient to hold ID (if any) + Data
@@ -111,14 +114,16 @@ menu "Arduino TinyUSB"
111114

112115
config TINYUSB_MIDI_RX_BUFSIZE
113116
int "MIDI FIFO size of RX"
114-
default 64
117+
default 64 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
118+
default 512 if IDF_TARGET_ESP32P4
115119
depends on TINYUSB_MIDI_ENABLED
116120
help
117121
MIDI FIFO size of RX
118122

119123
config TINYUSB_MIDI_TX_BUFSIZE
120124
int "MIDI FIFO size of TX"
121-
default 64
125+
default 64 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
126+
default 512 if IDF_TARGET_ESP32P4
122127
depends on TINYUSB_MIDI_ENABLED
123128
help
124129
MIDI FIFO size of TX
@@ -143,8 +148,9 @@ menu "Arduino TinyUSB"
143148

144149
config TINYUSB_VIDEO_STREAMING_BUFSIZE
145150
int "VIDEO streaming endpoint size"
146-
range 0 64
147-
default 64
151+
range 0 512
152+
default 64 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
153+
default 512 if IDF_TARGET_ESP32P4
148154
depends on TINYUSB_VIDEO_ENABLED
149155
help
150156
VIDEO streaming endpoint size
@@ -219,20 +225,33 @@ menu "Arduino TinyUSB"
219225

220226
config TINYUSB_VENDOR_RX_BUFSIZE
221227
int "VENDOR FIFO size of RX"
222-
default 64
228+
default 64 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
229+
default 512 if IDF_TARGET_ESP32P4
223230
depends on TINYUSB_VENDOR_ENABLED
224231
help
225232
VENDOR FIFO size of RX
226233

227234
config TINYUSB_VENDOR_TX_BUFSIZE
228235
int "VENDOR FIFO size of TX"
229-
default 64
236+
default 64 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
237+
default 512 if IDF_TARGET_ESP32P4
230238
depends on TINYUSB_VENDOR_ENABLED
231239
help
232240
VENDOR FIFO size of TX
233241

234242
endmenu
235243

244+
menu "NCM driver"
245+
depends on TINYUSB_ENABLED
246+
247+
config TINYUSB_NCM_ENABLED
248+
bool "Enable USB NCM TinyUSB driver"
249+
default y
250+
help
251+
Enable USB NCM TinyUSB driver.
252+
253+
endmenu
254+
236255
config TINYUSB_DEBUG_LEVEL
237256
int "TinyUSB log level (0-3)"
238257
default 0

0 commit comments

Comments
 (0)