@@ -53,6 +53,8 @@ if PKG_USING_CHERRYUSB
5353 bool "musb_sunxi"
5454 config PKG_CHERRYUSB_DEVICE_MUSB_BK
5555 bool "musb_bk"
56+ config PKG_CHERRYUSB_DEVICE_MUSB_SIFLI
57+ bool "musb_sifli"
5658 config PKG_CHERRYUSB_DEVICE_MUSB_CUSTOM
5759 bool "musb_custom"
5860 config PKG_CHERRYUSB_DEVICE_CHIPIDEA_MCX
@@ -139,49 +141,110 @@ if PKG_USING_CHERRYUSB
139141 prompt "Enable chardev for cdc acm device"
140142 default n
141143
144+ config CONFIG_USBDEV_REQUEST_BUFFER_LEN
145+ int
146+ prompt "Set device control transfer max buffer size"
147+ default 512
148+
149+ config CONFIG_USBDEV_MSC_MAX_BUFSIZE
150+ int
151+ prompt "Set usb msc device max buffer size"
152+ default 512
153+ help
154+ Set the maximum buffer size for usb msc device, it is used to transfer data.
155+ you can change it to a larger value if you need larger speed but must be a power of blocksize.
156+
157+ config CONFIG_USBDEV_RNDIS_USING_LWIP
158+ bool
159+ prompt "Enable usb rndis device with lwip for lan"
160+ default n
161+
162+ config CONFIG_USBDEV_CDC_ECM_USING_LWIP
163+ bool
164+ prompt "Enable usb cdc ecm device with lwip for lan"
165+ default n
166+
142167 choice
143- prompt "Select usb device template"
168+ prompt "Select usb device template, please select class driver first "
144169 default PKG_CHERRYUSB_DEVICE_TEMPLATE_NONE
145170 config PKG_CHERRYUSB_DEVICE_TEMPLATE_NONE
146- bool "none (Implement it yourself)"
171+ bool
172+ prompt "none (Implement it yourself)"
147173 config PKG_CHERRYUSB_DEVICE_TEMPLATE_CDC_ACM
148- bool "cdc_acm"
174+ bool
175+ prompt "cdc_acm"
176+ depends on PKG_CHERRYUSB_DEVICE_CDC_ACM
149177 config PKG_CHERRYUSB_DEVICE_TEMPLATE_MSC
150- bool "msc_ram"
178+ bool
179+ prompt "msc_ram"
180+ depends on PKG_CHERRYUSB_DEVICE_MSC
151181 config PKG_CHERRYUSB_DEVICE_TEMPLATE_MSC_BLKDEV
152- bool "msc_blkdev"
182+ bool
183+ prompt "msc_blkdev"
184+ depends on PKG_CHERRYUSB_DEVICE_MSC
153185 config PKG_CHERRYUSB_DEVICE_TEMPLATE_HID_KEYBOARD
154- bool "hid_keyboard"
186+ bool
187+ prompt "hid_keyboard"
188+ depends on PKG_CHERRYUSB_DEVICE_HID
155189 config PKG_CHERRYUSB_DEVICE_TEMPLATE_HID_MOUSE
156- bool "hid_mouse"
190+ bool
191+ prompt "hid_mouse"
192+ depends on PKG_CHERRYUSB_DEVICE_HID
157193 config PKG_CHERRYUSB_DEVICE_TEMPLATE_HID_CUSTOM
158- bool "hid_custom"
194+ bool
195+ prompt "hid_custom"
196+ depends on PKG_CHERRYUSB_DEVICE_HID
159197 config PKG_CHERRYUSB_DEVICE_TEMPLATE_VIDEO
160- bool "video"
198+ bool
199+ prompt "video"
200+ depends on PKG_CHERRYUSB_DEVICE_VIDEO
161201 config PKG_CHERRYUSB_DEVICE_TEMPLATE_AUDIO_V1_MIC_SPEAKER
162- bool "audio_v1_mic_speaker_multichan"
202+ bool
203+ prompt "audio_v1_mic_speaker_multichan"
204+ depends on PKG_CHERRYUSB_DEVICE_AUDIO
163205 config PKG_CHERRYUSB_DEVICE_TEMPLATE_AUDIO_V2_MIC_SPEAKER
164- bool "audio_v2_mic_speaker_multichan"
206+ bool
207+ prompt "audio_v2_mic_speaker_multichan"
208+ depends on PKG_CHERRYUSB_DEVICE_AUDIO
165209 config PKG_CHERRYUSB_DEVICE_TEMPLATE_CDC_RNDIS
166- bool "cdc_rndis"
210+ bool
211+ prompt "cdc_rndis"
212+ depends on PKG_CHERRYUSB_DEVICE_CDC_RNDIS
167213 config PKG_CHERRYUSB_DEVICE_TEMPLATE_CDC_ECM
168- bool "cdc_ecm"
214+ bool
215+ prompt "cdc_ecm"
216+ depends on PKG_CHERRYUSB_DEVICE_CDC_ECM
169217 config PKG_CHERRYUSB_DEVICE_TEMPLATE_CDC_NCM
170- bool "cdc_ncm"
218+ bool
219+ prompt "cdc_ncm"
220+ depends on PKG_CHERRYUSB_DEVICE_CDC_NCM
171221 config PKG_CHERRYUSB_DEVICE_TEMPLATE_CDC_ACM_MSC
172- bool "cdc_acm_msc"
222+ bool
223+ prompt "cdc_acm_msc"
224+ depends on PKG_CHERRYUSB_DEVICE_CDC_ACM && PKG_CHERRYUSB_DEVICE_MSC
173225 config PKG_CHERRYUSB_DEVICE_TEMPLATE_CDC_ACM_MSC_HID
174- bool "cdc_acm_msc_hid"
226+ bool
227+ prompt "cdc_acm_msc_hid"
228+ depends on PKG_CHERRYUSB_DEVICE_CDC_ACM && PKG_CHERRYUSB_DEVICE_MSC && PKG_CHERRYUSB_DEVICE_HID
175229 config PKG_CHERRYUSB_DEVICE_TEMPLATE_WINUSBV1
176- bool "winusbv1"
230+ bool
231+ prompt "winusbv1"
177232 config PKG_CHERRYUSB_DEVICE_TEMPLATE_WINUSBV2_CDC
178- bool "winusbv2_cdc"
233+ bool
234+ prompt "winusbv2_cdc"
235+ depends on PKG_CHERRYUSB_DEVICE_CDC_ACM
179236 config PKG_CHERRYUSB_DEVICE_TEMPLATE_WINUSBV2_HID
180- bool "winusbv2_hid"
237+ bool
238+ prompt "winusbv2_hid"
239+ depends on PKG_CHERRYUSB_DEVICE_HID
181240 config PKG_CHERRYUSB_DEVICE_TEMPLATE_ADB
182- bool "adb"
241+ bool
242+ prompt "adb"
243+ depends on PKG_CHERRYUSB_DEVICE_ADB
183244 config PKG_CHERRYUSB_DEVICE_TEMPLATE_CDC_ACM_CHARDEV
184- bool "cdc_acm_chardev"
245+ bool
246+ prompt "cdc_acm_chardev"
247+ depends on PKG_CHERRYUSB_DEVICE_CDC_ACM_CHARDEV
185248 endchoice
186249
187250 config CONFIG_USBDEV_MSC_BLOCK_DEV_NAME
@@ -233,6 +296,8 @@ if PKG_USING_CHERRYUSB
233296 bool "musb_sunxi"
234297 config PKG_CHERRYUSB_HOST_MUSB_BK
235298 bool "musb_bk"
299+ config PKG_CHERRYUSB_HOST_MUSB_SIFLI
300+ bool "musb_sifli"
236301 config PKG_CHERRYUSB_HOST_MUSB_CUSTOM
237302 bool "musb_custom"
238303 config PKG_CHERRYUSB_HOST_PUSB2
@@ -345,6 +410,26 @@ if PKG_USING_CHERRYUSB
345410 config CONFIG_USBHOST_PLATFORM_RTL8152
346411 bool
347412
413+ config CONFIG_USBHOST_PSC_PRIO
414+ int
415+ prompt "Set hubport change thread priority, 0 is the max priority"
416+ default 0
417+
418+ config CONFIG_USBHOST_PSC_STACKSIZE
419+ int
420+ prompt "Set hubport change thread stacksize"
421+ default 4096
422+
423+ config CONFIG_USBHOST_REQUEST_BUFFER_LEN
424+ int
425+ prompt "Set host control transfer max buffer size"
426+ default 512
427+
428+ config CONFIG_USBHOST_CONTROL_TRANSFER_TIMEOUT
429+ int
430+ prompt "Set host control transfer timeout, unit is ms"
431+ default 500
432+
348433 config RT_LWIP_PBUF_POOL_BUFSIZE
349434 int "The size of each pbuf in the pbuf pool"
350435 range 1500 2000
@@ -355,23 +440,23 @@ if PKG_USING_CHERRYUSB
355440 depends on RT_CHERRYUSB_HOST_MSC
356441 default "/"
357442
358- config PKG_CHERRYUSB_HOST_TEMPLATE
359- bool
360- prompt "Use usb host template"
361- default n
362-
363- if PKG_CHERRYUSB_HOST_TEMPLATE
364- config TEST_USBH_CDC_ACM
443+ menu "Select USB host template, please select class driver first"
444+ config CONFIG_TEST_USBH_CDC_ACM
365445 int
366- prompt "demo for test cdc acm"
446+ prompt "demo for test cdc acm, cannot enable this demo, we have used serial framework instead "
367447 default 0
368448 depends on PKG_CHERRYUSB_HOST_CDC_ACM
369- config TEST_USBH_HID
449+ config CONFIG_TEST_USBH_HID
370450 int
371451 prompt "demo for test hid"
372452 default 0
373453 depends on PKG_CHERRYUSB_HOST_HID
374- endif
454+ config CONFIG_TEST_USBH_MSC
455+ int
456+ prompt "demo for test msc, cannot enable this demo, we have used dfs instead"
457+ default 0
458+ depends on PKG_CHERRYUSB_HOST_MSC
459+ endmenu
375460 endif
376461
377462 config PKG_CHERRYUSB_PATH
@@ -386,18 +471,14 @@ if PKG_USING_CHERRYUSB
386471
387472 config PKG_USING_CHERRYUSB_LATEST_VERSION
388473 bool "latest"
474+ config PKG_USING_CHERRYUSB_V010501
475+ bool "v1.5.1"
389476 config PKG_USING_CHERRYUSB_V010500
390477 bool "v1.5.0"
391478 config PKG_USING_CHERRYUSB_V010403
392479 bool "v1.4.3"
393- config PKG_USING_CHERRYUSB_V010402
394- bool "v1.4.2"
395- config PKG_USING_CHERRYUSB_V010400
396- bool "v1.4.0"
397480 config PKG_USING_CHERRYUSB_V010301
398481 bool "v1.3.1"
399- config PKG_USING_CHERRYUSB_V010300
400- bool "v1.3.0"
401482 config PKG_USING_CHERRYUSB_V010200
402483 bool "v1.2.0"
403484 config PKG_USING_CHERRYUSB_V001002
@@ -407,12 +488,10 @@ if PKG_USING_CHERRYUSB
407488 config PKG_CHERRYUSB_VER
408489 string
409490 default "latest" if PKG_USING_CHERRYUSB_LATEST_VERSION
491+ default "v1.5.1" if PKG_USING_CHERRYUSB_V010501
410492 default "v1.5.0" if PKG_USING_CHERRYUSB_V010500
411493 default "v1.4.3" if PKG_USING_CHERRYUSB_V010403
412- default "v1.4.2" if PKG_USING_CHERRYUSB_V010402
413- default "v1.4.0" if PKG_USING_CHERRYUSB_V010400
414494 default "v1.3.1" if PKG_USING_CHERRYUSB_V010301
415- default "v1.3.0" if PKG_USING_CHERRYUSB_V010300
416495 default "v1.2.0" if PKG_USING_CHERRYUSB_V010200
417496 default "v0.10.2" if PKG_USING_CHERRYUSB_V001002
418497endif
0 commit comments