@@ -13,12 +13,12 @@ if PKG_USING_CHERRYUSB
1313 if PKG_CHERRYUSB_DEVICE
1414 choice
1515 prompt "Select usb device speed"
16- default PKG_CHERRYUSB_DEVICE_FS
17- config PKG_CHERRYUSB_DEVICE_FS
16+ default PKG_CHERRYUSB_DEVICE_SPEED_FS
17+ config PKG_CHERRYUSB_DEVICE_SPEED_FS
1818 bool "FS"
19- config PKG_CHERRYUSB_DEVICE_HS
19+ config PKG_CHERRYUSB_DEVICE_SPEED_HS
2020 bool "HS"
21- config PKG_CHERRYUSB_DEVICE_AUTO
21+ config PKG_CHERRYUSB_DEVICE_SPEED_AUTO
2222 bool "AUTO"
2323 endchoice
2424
@@ -27,20 +27,24 @@ if PKG_USING_CHERRYUSB
2727 default PKG_CHERRYUSB_DEVICE_CUSTOM
2828 config PKG_CHERRYUSB_DEVICE_CUSTOM
2929 bool "CUSTOM (Implement it yourself)"
30- config PKG_CHERRYUSB_DEVICE_FSDEV
31- bool "fsdev"
30+ config PKG_CHERRYUSB_DEVICE_FSDEV_ST
31+ bool "fsdev_st"
32+ config PKG_CHERRYUSB_DEVICE_FSDEV_CUSTOM
33+ bool "fsdev_custom"
3234 config PKG_CHERRYUSB_DEVICE_DWC2_ST
3335 bool "dwc2_st"
3436 config PKG_CHERRYUSB_DEVICE_DWC2_ESP
3537 bool "dwc2_esp"
38+ config PKG_CHERRYUSB_DEVICE_DWC2_KENDRYTE
39+ bool "dwc2_kendryte"
3640 config PKG_CHERRYUSB_DEVICE_DWC2_AT
3741 bool "dwc2_at"
38- config PKG_CHERRYUSB_DEVICE_DWC2_GD
39- bool "dwc2_gd"
4042 config PKG_CHERRYUSB_DEVICE_DWC2_HC
4143 bool "dwc2_hc"
42- config PKG_CHERRYUSB_DEVICE_DWC2_KENDRYTE
43- bool "dwc2_kendryte"
44+ config PKG_CHERRYUSB_DEVICE_DWC2_NATION
45+ bool "dwc2_nation"
46+ config PKG_CHERRYUSB_DEVICE_DWC2_GD
47+ bool "dwc2_gd"
4448 config PKG_CHERRYUSB_DEVICE_DWC2_CUSTOM
4549 bool "dwc2_custom"
4650 config PKG_CHERRYUSB_DEVICE_MUSB_ES
@@ -51,16 +55,16 @@ if PKG_USING_CHERRYUSB
5155 bool "musb_bk"
5256 config PKG_CHERRYUSB_DEVICE_MUSB_CUSTOM
5357 bool "musb_custom"
58+ config PKG_CHERRYUSB_DEVICE_CHIPIDEA_MCX
59+ bool "chipidea_mcx"
60+ config PKG_CHERRYUSB_DEVICE_CHIPIDEA_CUSTOM
61+ bool "chipidea_custom"
5462 config PKG_CHERRYUSB_DEVICE_KINETIS_MCX
5563 bool "kinetis_mcx"
5664 config PKG_CHERRYUSB_DEVICE_KINETIS_MM32
5765 bool "kinetis_mm32"
5866 config PKG_CHERRYUSB_DEVICE_KINETIS_CUSTOM
5967 bool "kinetis_custom"
60- config PKG_CHERRYUSB_DEVICE_CHIPIDEA_MCX
61- bool "chipidea_mcx"
62- config PKG_CHERRYUSB_DEVICE_CHIPIDEA_CUSTOM
63- bool "chipidea_custom"
6468 config PKG_CHERRYUSB_DEVICE_BL
6569 bool "bouffalo"
6670 config PKG_CHERRYUSB_DEVICE_HPM
@@ -115,6 +119,11 @@ if PKG_USING_CHERRYUSB
115119 prompt "Enable usb cdc ncm device"
116120 default n
117121
122+ config PKG_CHERRYUSB_DEVICE_MTP
123+ bool
124+ prompt "Enable usb mtp device, it is commercial charge"
125+ default n
126+
118127 config PKG_CHERRYUSB_DEVICE_DFU
119128 bool
120129 prompt "Enable usb dfu device"
@@ -128,7 +137,9 @@ if PKG_USING_CHERRYUSB
128137 config PKG_CHERRYUSB_DEVICE_TEMPLATE_CDC_ACM
129138 bool "cdc_acm"
130139 config PKG_CHERRYUSB_DEVICE_TEMPLATE_MSC
131- bool "msc"
140+ bool "msc_ram"
141+ config PKG_CHERRYUSB_DEVICE_TEMPLATE_MSC_BLKDEV
142+ bool "msc_blkdev"
132143 config PKG_CHERRYUSB_DEVICE_TEMPLATE_HID_KEYBOARD
133144 bool "hid_keyboard"
134145 config PKG_CHERRYUSB_DEVICE_TEMPLATE_HID_MOUSE
@@ -159,6 +170,11 @@ if PKG_USING_CHERRYUSB
159170 bool "winusbv2_hid"
160171 endchoice
161172
173+ config CONFIG_USBDEV_MSC_BLOCK_DEV_NAME
174+ string "usb device msc block device name"
175+ depends on PKG_CHERRYUSB_DEVICE_TEMPLATE_MSC_BLKDEV
176+ default "sd0"
177+
162178 endif
163179
164180 menuconfig PKG_CHERRYUSB_HOST
@@ -189,10 +205,12 @@ if PKG_USING_CHERRYUSB
189205 bool "dwc2_st"
190206 config PKG_CHERRYUSB_HOST_DWC2_ESP
191207 bool "dwc2_esp"
192- config PKG_CHERRYUSB_HOST_DWC2_HC
193- bool "dwc2_hc"
194208 config PKG_CHERRYUSB_HOST_DWC2_KENDRYTE
195209 bool "dwc2_kendryte"
210+ config PKG_CHERRYUSB_HOST_DWC2_HC
211+ bool "dwc2_hc"
212+ config PKG_CHERRYUSB_HOST_DWC2_NATION
213+ bool "dwc2_nation"
196214 config PKG_CHERRYUSB_HOST_DWC2_CUSTOM
197215 bool "dwc2_custom"
198216 config PKG_CHERRYUSB_HOST_MUSB_ES
@@ -207,12 +225,6 @@ if PKG_USING_CHERRYUSB
207225 bool "pusb2"
208226 config PKG_CHERRYUSB_HOST_XHCI
209227 bool "xhci"
210- config PKG_CHERRYUSB_HOST_KINETIS_MCX
211- bool "kinetis_mcx"
212- config PKG_CHERRYUSB_HOST_KINETIS_MM32
213- bool "kinetis_mm32"
214- config PKG_CHERRYUSB_HOST_KINETIS_CUSTOM
215- bool "kinetis_custom"
216228 config PKG_CHERRYUSB_HOST_RP2040
217229 bool "rp2040"
218230 endchoice
@@ -232,6 +244,7 @@ if PKG_USING_CHERRYUSB
232244 prompt "Enable usb msc driver"
233245 default n
234246 select RT_USING_DFS
247+ select RT_USING_DFS_ELMFAT
235248
236249 config PKG_CHERRYUSB_HOST_CDC_ECM
237250 bool
@@ -318,6 +331,16 @@ if PKG_USING_CHERRYUSB
318331 config CONFIG_USBHOST_PLATFORM_RTL8152
319332 bool
320333
334+ config RT_LWIP_PBUF_POOL_BUFSIZE
335+ int "The size of each pbuf in the pbuf pool"
336+ range 1500 2000
337+ default 1600
338+
339+ config CONFIG_USB_DFS_MOUNT_POINT
340+ string "usb host dfs mount point"
341+ depends on RT_CHERRYUSB_HOST_MSC
342+ default "/"
343+
321344 config PKG_CHERRYUSB_HOST_TEMPLATE
322345 bool
323346 prompt "Use usb host template"
@@ -343,12 +366,14 @@ if PKG_USING_CHERRYUSB
343366
344367 choice
345368 prompt "Version"
346- default PKG_USING_CHERRYUSB_V010403
369+ default PKG_USING_CHERRYUSB_V010500
347370 help
348371 Select the package version
349372
350373 config PKG_USING_CHERRYUSB_LATEST_VERSION
351374 bool "latest"
375+ config PKG_USING_CHERRYUSB_V010500
376+ bool "v1.5.0"
352377 config PKG_USING_CHERRYUSB_V010403
353378 bool "v1.4.3"
354379 config PKG_USING_CHERRYUSB_V010402
@@ -368,6 +393,7 @@ if PKG_USING_CHERRYUSB
368393 config PKG_CHERRYUSB_VER
369394 string
370395 default "latest" if PKG_USING_CHERRYUSB_LATEST_VERSION
396+ default "v1.5.0" if PKG_USING_CHERRYUSB_V010500
371397 default "v1.4.3" if PKG_USING_CHERRYUSB_V010403
372398 default "v1.4.2" if PKG_USING_CHERRYUSB_V010402
373399 default "v1.4.0" if PKG_USING_CHERRYUSB_V010400
0 commit comments