File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
components/arduino_tinyusb/include Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,10 @@ extern "C" {
72
72
# define CONFIG_TINYUSB_VENDOR_ENABLED 0
73
73
#endif
74
74
75
+ #ifndef CONFIG_TINYUSB_NCM_ENABLED
76
+ # define CONFIG_TINYUSB_NCM_ENABLED 0
77
+ #endif
78
+
75
79
/* */
76
80
/* COMMON CONFIGURATION */
77
81
/* */
@@ -96,11 +100,18 @@ extern "C" {
96
100
# define CFG_TUSB_MEM_ALIGN TU_ATTR_ALIGNED(4)
97
101
#endif
98
102
103
+ #if CONFIG_IDF_TARGET_ESP32P4
104
+ #define CFG_TUD_MAX_SPEED OPT_MODE_HIGH_SPEED
105
+ #else
106
+ #define CFG_TUD_MAX_SPEED OPT_MODE_FULL_SPEED
107
+ #endif
108
+
99
109
/* */
100
110
/* DRIVER CONFIGURATION */
101
111
/* */
102
112
103
113
#define CFG_TUD_MAINTASK_SIZE 4096
114
+ #define CFG_TUD_ENDOINT_SIZE (TUD_OPT_HIGH_SPEED ? 512 : 64)
104
115
#define CFG_TUD_ENDOINT0_SIZE 64
105
116
106
117
// Enabled Drivers
@@ -113,6 +124,7 @@ extern "C" {
113
124
#define CFG_TUD_DFU_RUNTIME CONFIG_TINYUSB_DFU_RT_ENABLED
114
125
#define CFG_TUD_DFU CONFIG_TINYUSB_DFU_ENABLED
115
126
#define CFG_TUD_VENDOR CONFIG_TINYUSB_VENDOR_ENABLED
127
+ #define CFG_TUD_NCM CONFIG_TINYUSB_NCM_ENABLED
116
128
117
129
// CDC FIFO size of TX and RX
118
130
#define CFG_TUD_CDC_RX_BUFSIZE CONFIG_TINYUSB_CDC_RX_BUFSIZE
You can’t perform that action at this time.
0 commit comments