Kconfig.rttpkg 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392
  1. # Kconfig file for package CherryUSB
  2. menuconfig PKG_USING_CHERRYUSB
  3. depends on RT_VER_NUM < 0x50200
  4. bool "CherryUSB: tiny and portable USB host/device stack for embedded system with USB IP"
  5. default n
  6. if PKG_USING_CHERRYUSB
  7. menuconfig PKG_CHERRYUSB_DEVICE
  8. bool "Enable usb device mode"
  9. default n
  10. if PKG_CHERRYUSB_DEVICE
  11. choice
  12. prompt "Select usb device speed"
  13. default PKG_CHERRYUSB_DEVICE_SPEED_FS
  14. config PKG_CHERRYUSB_DEVICE_SPEED_FS
  15. bool "FS"
  16. config PKG_CHERRYUSB_DEVICE_SPEED_HS
  17. bool "HS"
  18. config PKG_CHERRYUSB_DEVICE_SPEED_AUTO
  19. bool "AUTO"
  20. endchoice
  21. choice
  22. prompt "Select usb device ip, and some ip need config in usb_config.h, please check"
  23. default PKG_CHERRYUSB_DEVICE_CUSTOM
  24. config PKG_CHERRYUSB_DEVICE_CUSTOM
  25. bool "CUSTOM (Implement it yourself)"
  26. config PKG_CHERRYUSB_DEVICE_FSDEV_ST
  27. bool "fsdev_st"
  28. config PKG_CHERRYUSB_DEVICE_FSDEV_CUSTOM
  29. bool "fsdev_custom"
  30. config PKG_CHERRYUSB_DEVICE_DWC2_ST
  31. bool "dwc2_st"
  32. config PKG_CHERRYUSB_DEVICE_DWC2_ESP
  33. bool "dwc2_esp"
  34. config PKG_CHERRYUSB_DEVICE_DWC2_KENDRYTE
  35. bool "dwc2_kendryte"
  36. config PKG_CHERRYUSB_DEVICE_DWC2_AT
  37. bool "dwc2_at"
  38. config PKG_CHERRYUSB_DEVICE_DWC2_HC
  39. bool "dwc2_hc"
  40. config PKG_CHERRYUSB_DEVICE_DWC2_GD
  41. bool "dwc2_gd"
  42. config PKG_CHERRYUSB_DEVICE_DWC2_CUSTOM
  43. bool "dwc2_custom"
  44. config PKG_CHERRYUSB_DEVICE_MUSB_ES
  45. bool "musb_es"
  46. config PKG_CHERRYUSB_DEVICE_MUSB_SUNXI
  47. bool "musb_sunxi"
  48. config PKG_CHERRYUSB_DEVICE_MUSB_BK
  49. bool "musb_bk"
  50. config PKG_CHERRYUSB_DEVICE_MUSB_CUSTOM
  51. bool "musb_custom"
  52. config PKG_CHERRYUSB_DEVICE_CHIPIDEA_MCX
  53. bool "chipidea_mcx"
  54. config PKG_CHERRYUSB_DEVICE_CHIPIDEA_CUSTOM
  55. bool "chipidea_custom"
  56. config PKG_CHERRYUSB_DEVICE_KINETIS_MCX
  57. bool "kinetis_mcx"
  58. config PKG_CHERRYUSB_DEVICE_KINETIS_MM32
  59. bool "kinetis_mm32"
  60. config PKG_CHERRYUSB_DEVICE_KINETIS_CUSTOM
  61. bool "kinetis_custom"
  62. config PKG_CHERRYUSB_DEVICE_BL
  63. bool "bouffalo"
  64. config PKG_CHERRYUSB_DEVICE_HPM
  65. bool "hpm"
  66. config PKG_CHERRYUSB_DEVICE_AIC
  67. bool "aic"
  68. config PKG_CHERRYUSB_DEVICE_RP2040
  69. bool "rp2040"
  70. config PKG_CHERRYUSB_DEVICE_CH32
  71. bool "ch32"
  72. config PKG_CHERRYUSB_DEVICE_PUSB2
  73. bool "pusb2"
  74. endchoice
  75. config PKG_CHERRYUSB_DEVICE_CDC_ACM
  76. bool
  77. prompt "Enable usb cdc acm device"
  78. default n
  79. config PKG_CHERRYUSB_DEVICE_HID
  80. bool
  81. prompt "Enable usb hid device"
  82. default n
  83. config PKG_CHERRYUSB_DEVICE_MSC
  84. bool
  85. prompt "Enable usb msc device"
  86. default n
  87. config PKG_CHERRYUSB_DEVICE_AUDIO
  88. bool
  89. prompt "Enable usb audio device"
  90. default n
  91. config PKG_CHERRYUSB_DEVICE_VIDEO
  92. bool
  93. prompt "Enable usb video device"
  94. default n
  95. config PKG_CHERRYUSB_DEVICE_CDC_RNDIS
  96. bool
  97. prompt "Enable usb cdc rndis device"
  98. default n
  99. config PKG_CHERRYUSB_DEVICE_CDC_ECM
  100. bool
  101. prompt "Enable usb cdc ecm device"
  102. default n
  103. config PKG_CHERRYUSB_DEVICE_CDC_NCM
  104. bool
  105. prompt "Enable usb cdc ncm device"
  106. default n
  107. config PKG_CHERRYUSB_DEVICE_DFU
  108. bool
  109. prompt "Enable usb dfu device"
  110. default n
  111. choice
  112. prompt "Select usb device template"
  113. default PKG_CHERRYUSB_DEVICE_TEMPLATE_NONE
  114. config PKG_CHERRYUSB_DEVICE_TEMPLATE_NONE
  115. bool "none (Implement it yourself)"
  116. config PKG_CHERRYUSB_DEVICE_TEMPLATE_CDC_ACM
  117. bool "cdc_acm"
  118. config PKG_CHERRYUSB_DEVICE_TEMPLATE_MSC
  119. bool "msc_ram"
  120. config PKG_CHERRYUSB_DEVICE_TEMPLATE_MSC_BLKDEV
  121. bool "msc_blkdev"
  122. config PKG_CHERRYUSB_DEVICE_TEMPLATE_HID_KEYBOARD
  123. bool "hid_keyboard"
  124. config PKG_CHERRYUSB_DEVICE_TEMPLATE_HID_MOUSE
  125. bool "hid_mouse"
  126. config PKG_CHERRYUSB_DEVICE_TEMPLATE_HID_CUSTOM
  127. bool "hid_custom"
  128. config PKG_CHERRYUSB_DEVICE_TEMPLATE_VIDEO
  129. bool "video"
  130. config PKG_CHERRYUSB_DEVICE_TEMPLATE_AUDIO_V1_MIC_SPEAKER
  131. bool "audio_v1_mic_speaker_multichan"
  132. config PKG_CHERRYUSB_DEVICE_TEMPLATE_AUDIO_V2_MIC_SPEAKER
  133. bool "audio_v2_mic_speaker_multichan"
  134. config PKG_CHERRYUSB_DEVICE_TEMPLATE_CDC_RNDIS
  135. bool "cdc_rndis"
  136. config PKG_CHERRYUSB_DEVICE_TEMPLATE_CDC_ECM
  137. bool "cdc_ecm"
  138. config PKG_CHERRYUSB_DEVICE_TEMPLATE_CDC_NCM
  139. bool "cdc_ncm"
  140. config PKG_CHERRYUSB_DEVICE_TEMPLATE_CDC_ACM_MSC
  141. bool "cdc_acm_msc"
  142. config PKG_CHERRYUSB_DEVICE_TEMPLATE_CDC_ACM_MSC_HID
  143. bool "cdc_acm_msc_hid"
  144. config PKG_CHERRYUSB_DEVICE_TEMPLATE_WINUSBV1
  145. bool "winusbv1"
  146. config PKG_CHERRYUSB_DEVICE_TEMPLATE_WINUSBV2_CDC
  147. bool "winusbv2_cdc"
  148. config PKG_CHERRYUSB_DEVICE_TEMPLATE_WINUSBV2_HID
  149. bool "winusbv2_hid"
  150. endchoice
  151. config CONFIG_USBDEV_MSC_BLOCK_DEV_NAME
  152. string "usb device msc block device name"
  153. depends on PKG_CHERRYUSB_DEVICE_TEMPLATE_MSC_BLKDEV
  154. default "sd0"
  155. endif
  156. menuconfig PKG_CHERRYUSB_HOST
  157. bool "Enable usb host mode"
  158. default n
  159. if PKG_CHERRYUSB_HOST
  160. choice
  161. prompt "Select usb host ip, and some ip need config in usb_config.h, please check"
  162. default PKG_CHERRYUSB_HOST_CUSTOM
  163. config PKG_CHERRYUSB_HOST_CUSTOM
  164. bool "CUSTOM (Implement it yourself)"
  165. config PKG_CHERRYUSB_HOST_EHCI_BL
  166. bool "ehci_bouffalo"
  167. config PKG_CHERRYUSB_HOST_EHCI_HPM
  168. bool "ehci_hpm"
  169. config PKG_CHERRYUSB_HOST_EHCI_AIC
  170. bool "ehci_aic"
  171. config PKG_CHERRYUSB_HOST_EHCI_MCX
  172. bool "ehci_mcx"
  173. config PKG_CHERRYUSB_HOST_EHCI_NUC980
  174. bool "ehci_nuc980"
  175. config PKG_CHERRYUSB_HOST_EHCI_MA35D0
  176. bool "ehci_ma35d0"
  177. config PKG_CHERRYUSB_HOST_EHCI_CUSTOM
  178. bool "ehci_custom"
  179. config PKG_CHERRYUSB_HOST_DWC2_ST
  180. bool "dwc2_st"
  181. config PKG_CHERRYUSB_HOST_DWC2_ESP
  182. bool "dwc2_esp"
  183. config PKG_CHERRYUSB_HOST_DWC2_KENDRYTE
  184. bool "dwc2_kendryte"
  185. config PKG_CHERRYUSB_HOST_DWC2_HC
  186. bool "dwc2_hc"
  187. config PKG_CHERRYUSB_HOST_DWC2_CUSTOM
  188. bool "dwc2_custom"
  189. config PKG_CHERRYUSB_HOST_MUSB_ES
  190. bool "musb_es"
  191. config PKG_CHERRYUSB_HOST_MUSB_SUNXI
  192. bool "musb_sunxi"
  193. config PKG_CHERRYUSB_HOST_MUSB_BK
  194. bool "musb_bk"
  195. config PKG_CHERRYUSB_HOST_MUSB_CUSTOM
  196. bool "musb_custom"
  197. config PKG_CHERRYUSB_HOST_PUSB2
  198. bool "pusb2"
  199. config PKG_CHERRYUSB_HOST_XHCI
  200. bool "xhci"
  201. config PKG_CHERRYUSB_HOST_RP2040
  202. bool "rp2040"
  203. endchoice
  204. config PKG_CHERRYUSB_HOST_CDC_ACM
  205. bool
  206. prompt "Enable usb cdc acm driver"
  207. default n
  208. config PKG_CHERRYUSB_HOST_HID
  209. bool
  210. prompt "Enable usb hid driver"
  211. default n
  212. config PKG_CHERRYUSB_HOST_MSC
  213. bool
  214. prompt "Enable usb msc driver"
  215. default n
  216. select RT_USING_DFS
  217. select RT_USING_DFS_ELMFAT
  218. config PKG_CHERRYUSB_HOST_CDC_ECM
  219. bool
  220. prompt "Enable usb cdc ecm driver"
  221. select RT_USING_LWIP
  222. select CONFIG_USBHOST_PLATFORM_CDC_ECM
  223. default n
  224. config PKG_CHERRYUSB_HOST_CDC_RNDIS
  225. bool
  226. prompt "Enable usb rndis driver"
  227. select RT_USING_LWIP
  228. select CONFIG_USBHOST_PLATFORM_CDC_RNDIS
  229. default n
  230. config PKG_CHERRYUSB_HOST_CDC_NCM
  231. bool
  232. prompt "Enable usb cdc ncm driver"
  233. select RT_USING_LWIP
  234. select CONFIG_USBHOST_PLATFORM_CDC_NCM
  235. default n
  236. config PKG_CHERRYUSB_HOST_VIDEO
  237. bool
  238. prompt "Enable usb video driver, it is commercial charge"
  239. default n
  240. config PKG_CHERRYUSB_HOST_AUDIO
  241. bool
  242. prompt "Enable usb audio driver, it is commercial charge"
  243. default n
  244. config PKG_CHERRYUSB_HOST_BLUETOOTH
  245. bool
  246. prompt "Enable usb bluetooth driver"
  247. default n
  248. config PKG_CHERRYUSB_HOST_ASIX
  249. bool
  250. prompt "Enable usb asix driver"
  251. select RT_USING_LWIP
  252. select CONFIG_USBHOST_PLATFORM_ASIX
  253. default n
  254. config PKG_CHERRYUSB_HOST_RTL8152
  255. bool
  256. prompt "Enable usb rtl8152 driver"
  257. select RT_USING_LWIP
  258. select CONFIG_USBHOST_PLATFORM_RTL8152
  259. default n
  260. config PKG_CHERRYUSB_HOST_FTDI
  261. bool
  262. prompt "Enable usb ftdi driver"
  263. default n
  264. config PKG_CHERRYUSB_HOST_CH34X
  265. bool
  266. prompt "Enable usb ch34x driver"
  267. default n
  268. config PKG_CHERRYUSB_HOST_CP210X
  269. bool
  270. prompt "Enable usb cp210x driver"
  271. default n
  272. config PKG_CHERRYUSB_HOST_PL2303
  273. bool
  274. prompt "Enable usb pl2303 driver"
  275. default n
  276. config CONFIG_USBHOST_PLATFORM_CDC_ECM
  277. bool
  278. config CONFIG_USBHOST_PLATFORM_CDC_RNDIS
  279. bool
  280. config CONFIG_USBHOST_PLATFORM_CDC_NCM
  281. bool
  282. config CONFIG_USBHOST_PLATFORM_ASIX
  283. bool
  284. config CONFIG_USBHOST_PLATFORM_RTL8152
  285. bool
  286. config RT_LWIP_PBUF_POOL_BUFSIZE
  287. int "The size of each pbuf in the pbuf pool"
  288. range 1500 2000
  289. default 1600
  290. config CONFIG_USB_DFS_MOUNT_POINT
  291. string "usb host dfs mount point"
  292. depends on RT_CHERRYUSB_HOST_MSC
  293. default "/"
  294. config PKG_CHERRYUSB_HOST_TEMPLATE
  295. bool
  296. prompt "Use usb host template"
  297. default n
  298. if PKG_CHERRYUSB_HOST_TEMPLATE
  299. config TEST_USBH_CDC_ACM
  300. int
  301. prompt "demo for test cdc acm"
  302. default 0
  303. depends on PKG_CHERRYUSB_HOST_CDC_ACM
  304. config TEST_USBH_HID
  305. int
  306. prompt "demo for test hid"
  307. default 0
  308. depends on PKG_CHERRYUSB_HOST_HID
  309. endif
  310. endif
  311. config PKG_CHERRYUSB_PATH
  312. string
  313. default "/packages/system/CherryUSB"
  314. choice
  315. prompt "Version"
  316. default PKG_USING_CHERRYUSB_V010403
  317. help
  318. Select the package version
  319. config PKG_USING_CHERRYUSB_LATEST_VERSION
  320. bool "latest"
  321. config PKG_USING_CHERRYUSB_V010403
  322. bool "v1.4.3"
  323. config PKG_USING_CHERRYUSB_V010402
  324. bool "v1.4.2"
  325. config PKG_USING_CHERRYUSB_V010400
  326. bool "v1.4.0"
  327. config PKG_USING_CHERRYUSB_V010301
  328. bool "v1.3.1"
  329. config PKG_USING_CHERRYUSB_V010300
  330. bool "v1.3.0"
  331. config PKG_USING_CHERRYUSB_V010200
  332. bool "v1.2.0"
  333. config PKG_USING_CHERRYUSB_V001002
  334. bool "v0.10.2"
  335. endchoice
  336. config PKG_CHERRYUSB_VER
  337. string
  338. default "latest" if PKG_USING_CHERRYUSB_LATEST_VERSION
  339. default "v1.4.3" if PKG_USING_CHERRYUSB_V010403
  340. default "v1.4.2" if PKG_USING_CHERRYUSB_V010402
  341. default "v1.4.0" if PKG_USING_CHERRYUSB_V010400
  342. default "v1.3.1" if PKG_USING_CHERRYUSB_V010301
  343. default "v1.3.0" if PKG_USING_CHERRYUSB_V010300
  344. default "v1.2.0" if PKG_USING_CHERRYUSB_V010200
  345. default "v0.10.2" if PKG_USING_CHERRYUSB_V001002
  346. endif