forked from CherryUSB/cherryusb_esp32
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Kconfig
255 lines (235 loc) · 8.47 KB
/
Kconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
menu "ESP CherryUSB"
visible if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
# Invisible item, enabled when USB_OTG peripheral does exist
config CHERRYUSB_SUPPORTED
bool
default y if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
choice USB_DBG_LEVEL
bool "Default log verbosity"
default USB_DBG_LEVEL_INFO
help
Specify how much output to see in logs by default.
You can set lower verbosity level at runtime using
esp_log_level_set function.
By default, this setting limits which log statements
are compiled into the program. For example, selecting
"Warning" would mean that changing log level to "Debug"
at runtime will not be possible. To allow increasing log
level above the default at runtime, see the next option.
config USB_DBG_LEVEL_ERROR
bool "Error"
config USB_DBG_LEVEL_WARN
bool "Warning"
config USB_DBG_LEVEL_INFO
bool "Info"
config USB_DBG_LEVEL_DEBUG
bool "Debug"
endchoice
config USB_DBG_LEVEL
int
default 0 if USB_DBG_LEVEL_ERROR
default 1 if USB_DBG_LEVEL_WARN
default 2 if USB_DBG_LEVEL_INFO
default 3 if USB_DBG_LEVEL_DEBUG
menuconfig CHERRYUSBD_ENABLED
bool "Enable CherryUSB Device"
depends on CHERRYUSB_SUPPORTED
default n
help
Enable CherryUSB Device support.
if CHERRYUSBD_ENABLED
config USBDEV_REQUEST_BUFFER_LEN
int "Largest size (in bytes) of transfers to ep0 out"
default 512
config USBDEV_SETUP_LOG_PRINT
bool "Print USB setup packet"
default n
config USBDEV_DESC_CHECK
bool "Check USB descriptor"
default n
config USBDEV_TEST_MODE
bool "USB test mode"
default n
endif # CHERRYUSBD_ENABLED
menu "USB Device Config"
visible if CHERRYUSBD_ENABLED
menu "USB Device CDC ACM Config"
endmenu
menu "USB Device HID Config"
endmenu
menu "USB Device MSC Config"
config USBDEV_MSC_MAX_BUFSIZE
int "Block size of MSC device"
default 512
config USBDEV_MSC_MANUFACTURER_STRING
string "Manufacturer string"
default "Espressif"
config USBDEV_MSC_PRODUCT_STRING
string "Product string"
default "ESP-MSC"
config USBDEV_MSC_VERSION_STRING
string "Version string"
default "0.01"
config USBDEV_MSC_THREAD
bool "Enable MSC thread"
default y
config USBDEV_MSC_PRIO
int "Priority of the MSC thread"
depends on USBDEV_MSC_THREAD
default 4
config USBDEV_MSC_STACKSIZE
int "Stack size of the MSC thread"
depends on USBDEV_MSC_THREAD
default 3096
endmenu
menu "USB Device Audio Config"
endmenu
menu "USB Device Video Config"
endmenu
menu "USB Device CDC RNDIS Config"
config USBDEV_RNDIS_RESP_BUFFER_SIZE
int "RNDIS response buffer size"
default 156
config USBDEV_RNDIS_ETH_MAX_FRAME_SIZE
int "Maximum frame size"
default 1580
config USBDEV_RNDIS_VENDOR_ID
hex "Vendor ID"
default 0x0000ffff
config USBDEV_RNDIS_VENDOR_DESC
string "Vendor description"
default "Espressif"
config USBDEV_RNDIS_USING_LWIP
bool "Using LWIP"
default y
endmenu
menu "USB Device CDC ECM Config"
endmenu
menu "USB Device DFU Config"
endmenu
endmenu
menuconfig CHERRYUSBH_ENABLED
bool "Enable CherryUSB Host"
depends on CHERRYUSB_SUPPORTED
default n
help
Enable CherryUSB Host support.
if CHERRYUSBH_ENABLED
config USBHOST_MAX_RHPORTS
int "Maximum number of root hub ports"
default 1
config USBHOST_MAX_EXTHUBS
int "Maximum number of external hubs"
default 1
config USBHOST_MAX_EHPORTS
int "Maximum number of external hub ports"
default 4
config USBHOST_MAX_INTERFACES
int "Maximum number of interfaces"
default 8
config USBHOST_MAX_INTF_ALTSETTINGS
int "Maximum number of interface alternate settings"
default 8
config USBHOST_MAX_ENDPOINTS
int "Maximum number of endpoints"
default 4
config USBHOST_DEV_NAMELEN
int "Maximum length of device name"
default 16
config USBHOST_PSC_PRIO
int "Priority of the Host PSC task"
range 1 25
default 1
config USBHOST_PSC_STACKSIZE
int "Stack size of the Host PSC task"
default 2048
config USBHOST_GET_STRING_DESC
bool "Get string descriptor"
default n
config USBHOST_MSOS_ENABLE
bool "Msos enable"
default n
config USBHOST_MSOS_VENDOR_CODE
hex "Msos vendor code"
depends on USBHOST_MSOS_ENABLE
range 0x00 0xff
default 0x00
config USBHOST_REQUEST_BUFFER_LEN
int "Largest size (in bytes) of transfers from/to ep0"
default 512
config USBHOST_CONTROL_TRANSFER_TIMEOUT
int "Timeout for control transfers (in ms)"
default 500
config USBHOST_MSC_TIMEOUT
int "Timeout for MSC (in ms)"
default 5000
endif # CHERRYUSBH_ENABLED
menu "USB Host driver Config"
visible if CHERRYUSBH_ENABLED
config CHERRYUSBH_CDC_ACM_ENABLED
bool "Enable CDC ACM driver"
default n
config USBHOST_MAX_CDC_ACM_CLASS
int "Maximum number of CDC ACM class devices"
depends on CHERRYUSBH_CDC_ACM_ENABLED
default 1
config CHERRYUSBH_HID_ENABLED
bool "Enable HID driver"
default n
config USBHOST_MAX_HID_CLASS
int "Maximum number of HID class devices"
depends on CHERRYUSBH_HID_ENABLED
default 3
config CHERRYUSBH_MSC_ENABLED
bool "Enable MSC driver"
default n
config USBHOST_MAX_MSC_CLASS
depends on CHERRYUSBH_MSC_ENABLED
int "Maximum number of MSC class devices"
default 1
config CHERRYUSBH_CDC_ECM_ENABLED
bool "Enable CDC ECM driver"
default n
config CHERRYUSBH_CDC_RNDIS_ENABLED
bool "Enable RNDIS driver"
default n
config CHERRYUSBH_CDC_NCM_ENABLED
bool "Enable CDC NCM driver"
default n
config CHERRYUSBH_VIDEO_ENABLED
bool "Enable Video driver"
default n
config USBHOST_MAX_VIDEO_CLASS
int "Maximum number of Video class devices"
depends on CHERRYUSBH_VIDEO_ENABLED
default 1
config CHERRYUSBH_AUDIO_ENABLED
bool "Enable Audio driver"
default n
config USBHOST_MAX_AUDIO_CLASS
int "Maximum number of Audio class devices"
depends on CHERRYUSBH_AUDIO_ENABLED
default 1
config CHERRYUSBH_BLUETOOTH_ENABLED
bool "Enable Bluetooth driver"
default n
config CHERRYUSBH_ASIX_ENABLED
bool "Enable ASIX driver"
default n
config CHERRYUSBH_RTL8152_ENABLED
bool "Enable RTL8152 driver"
default n
config CHERRYUSBH_FTDI
bool "Enable FTDI driver"
default n
config CHERRYUSBH_CH34X
bool "Enable CH34x driver"
default n
config CHERRYUSBH_CP210X
bool "Enable CP210X driver"
default n
config CHERRYUSBH_PL2303
bool "Enable PL2303 driver"
default n
endmenu
endmenu #ESP CherryUSB