Skip to content

Commit 7100b12

Browse files
authored
Update Kconfig.projbuild
1 parent b4dd8ca commit 7100b12

File tree

1 file changed

+26
-10
lines changed

1 file changed

+26
-10
lines changed

components/arduino_tinyusb/Kconfig.projbuild

+26-10
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,18 +28,28 @@ 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
4244

45+
config TINYUSB_CDC_MAX_PORTS
46+
int "Maximum enabled CDC ports"
47+
range 1 2
48+
default 1
49+
depends on TINYUSB_CDC_ENABLED
50+
help
51+
Maximum enabled CDC ports
52+
4353
endmenu
4454

4555
menu "Mass Storage (MSC) driver"
@@ -86,7 +96,8 @@ menu "Arduino TinyUSB"
8696

8797
config TINYUSB_HID_BUFSIZE
8898
int "HID Buffer size"
89-
default 64
99+
default 64 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
100+
default 512 if IDF_TARGET_ESP32P4
90101
depends on TINYUSB_HID_ENABLED
91102
help
92103
HID Buffer size. Should be sufficient to hold ID (if any) + Data
@@ -111,14 +122,16 @@ menu "Arduino TinyUSB"
111122

112123
config TINYUSB_MIDI_RX_BUFSIZE
113124
int "MIDI FIFO size of RX"
114-
default 64
125+
default 64 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
126+
default 512 if IDF_TARGET_ESP32P4
115127
depends on TINYUSB_MIDI_ENABLED
116128
help
117129
MIDI FIFO size of RX
118130

119131
config TINYUSB_MIDI_TX_BUFSIZE
120132
int "MIDI FIFO size of TX"
121-
default 64
133+
default 64 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
134+
default 512 if IDF_TARGET_ESP32P4
122135
depends on TINYUSB_MIDI_ENABLED
123136
help
124137
MIDI FIFO size of TX
@@ -143,8 +156,9 @@ menu "Arduino TinyUSB"
143156

144157
config TINYUSB_VIDEO_STREAMING_BUFSIZE
145158
int "VIDEO streaming endpoint size"
146-
range 0 64
147-
default 64
159+
range 0 512
160+
default 64 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
161+
default 512 if IDF_TARGET_ESP32P4
148162
depends on TINYUSB_VIDEO_ENABLED
149163
help
150164
VIDEO streaming endpoint size
@@ -219,14 +233,16 @@ menu "Arduino TinyUSB"
219233

220234
config TINYUSB_VENDOR_RX_BUFSIZE
221235
int "VENDOR FIFO size of RX"
222-
default 64
236+
default 64 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
237+
default 512 if IDF_TARGET_ESP32P4
223238
depends on TINYUSB_VENDOR_ENABLED
224239
help
225240
VENDOR FIFO size of RX
226241

227242
config TINYUSB_VENDOR_TX_BUFSIZE
228243
int "VENDOR FIFO size of TX"
229-
default 64
244+
default 64 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
245+
default 512 if IDF_TARGET_ESP32P4
230246
depends on TINYUSB_VENDOR_ENABLED
231247
help
232248
VENDOR FIFO size of TX

0 commit comments

Comments
 (0)