Kconfig 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895
  1. menu "Device Drivers"
  2. config RT_USING_DEVICE_IPC
  3. bool "Using device drivers IPC"
  4. default y
  5. config RT_UNAMED_PIPE_NUMBER
  6. int "The number of unamed pipe"
  7. default 64
  8. if RT_USING_DEVICE_IPC
  9. config RT_PIPE_BUFSZ
  10. int "Set pipe buffer size"
  11. default 512
  12. config RT_USING_SYSTEM_WORKQUEUE
  13. bool "Using system default workqueue"
  14. default n
  15. if RT_USING_SYSTEM_WORKQUEUE
  16. config RT_SYSTEM_WORKQUEUE_STACKSIZE
  17. int "The stack size for system workqueue thread"
  18. default 2048
  19. config RT_SYSTEM_WORKQUEUE_PRIORITY
  20. int "The priority level of system workqueue thread"
  21. default 23
  22. endif
  23. endif
  24. config RT_USING_SERIAL
  25. bool "Using serial device drivers"
  26. select RT_USING_DEVICE_IPC
  27. select RT_USING_DEVICE
  28. default y
  29. if RT_USING_SERIAL
  30. config RT_SERIAL_USING_DMA
  31. bool "Enable serial DMA mode"
  32. default y
  33. config RT_SERIAL_RB_BUFSZ
  34. int "Set RX buffer size"
  35. default 64
  36. endif
  37. config RT_USING_TTY
  38. bool "Using TTY SYSTEM"
  39. default y
  40. if RT_USING_TTY
  41. config RT_TTY_DEBUG
  42. bool "Using TTY DEBUG"
  43. default n
  44. endif
  45. config RT_USING_CAN
  46. bool "Using CAN device drivers"
  47. default n
  48. if RT_USING_CAN
  49. config RT_CAN_USING_HDR
  50. bool "Enable CAN hardware filter"
  51. default n
  52. endif
  53. config RT_USING_HWTIMER
  54. bool "Using hardware timer device drivers"
  55. default n
  56. config RT_USING_CPUTIME
  57. bool "Enable CPU time for high resolution clock counter"
  58. default n
  59. help
  60. When enable this option, the BSP should provide a rt_clock_cputime_ops
  61. for CPU time by:
  62. const static struct rt_clock_cputime_ops _ops = {...};
  63. clock_cpu_setops(&_ops);
  64. Then user can use high resolution clock counter with:
  65. ts1 = clock_cpu_gettime();
  66. ts2 = clock_cpu_gettime();
  67. /* and get the ms of delta tick with API: */
  68. ms_tick = clock_cpu_millisecond(t2 - t1);
  69. us_tick = clock_cpu_microsecond(t2 - t1);
  70. if RT_USING_CPUTIME
  71. config RT_USING_CPUTIME_CORTEXM
  72. bool "Use DWT for CPU time"
  73. default y
  74. depends on ARCH_ARM_CORTEX_M3 || ARCH_ARM_CORTEX_M4 || ARCH_ARM_CORTEX_M7
  75. help
  76. Some Cortex-M3/4/7 MCU has Data Watchpoint and Trace Register, use
  77. the cycle counter in DWT for CPU time.
  78. endif
  79. config RT_USING_I2C
  80. bool "Using I2C device drivers"
  81. default n
  82. if RT_USING_I2C
  83. config RT_I2C_DEBUG
  84. bool "Use I2C debug message"
  85. default n
  86. config RT_USING_I2C_BITOPS
  87. bool "Use GPIO to simulate I2C"
  88. default y
  89. if RT_USING_I2C_BITOPS
  90. config RT_I2C_BITOPS_DEBUG
  91. bool "Use simulate I2C debug message"
  92. default n
  93. endif
  94. endif
  95. config RT_USING_PHY
  96. bool "Using ethernet phy device drivers"
  97. default n
  98. config RT_USING_PIN
  99. bool "Using generic GPIO device drivers"
  100. default y
  101. config RT_USING_ADC
  102. bool "Using ADC device drivers"
  103. default n
  104. config RT_USING_DAC
  105. bool "Using DAC device drivers"
  106. default n
  107. config RT_USING_NULL
  108. bool "Using NULL device drivers"
  109. default n
  110. config RT_USING_ZERO
  111. bool "Using ZERO device drivers"
  112. default n
  113. config RT_USING_RANDOM
  114. bool "Using RANDOM device drivers"
  115. default n
  116. config RT_USING_PWM
  117. bool "Using PWM device drivers"
  118. default n
  119. config RT_USING_MTD_NOR
  120. bool "Using MTD Nor Flash device drivers"
  121. default n
  122. config RT_USING_MTD_NAND
  123. bool "Using MTD Nand Flash device drivers"
  124. default n
  125. if RT_USING_MTD_NAND
  126. config RT_MTD_NAND_DEBUG
  127. bool "Enable MTD Nand operations debug information"
  128. default n
  129. endif
  130. config RT_USING_PM
  131. bool "Using Power Management device drivers"
  132. default n
  133. config RT_USING_FDT
  134. bool "Using fdt interface for device drivers"
  135. default n
  136. if RT_USING_FDT
  137. config RT_USING_FDTLIB
  138. bool "Using fdt lib for device drivers"
  139. default y
  140. config FDT_USING_DEBUG
  141. bool "Using fdt debug function "
  142. default n
  143. endif
  144. config RT_USING_RTC
  145. bool "Using RTC device drivers"
  146. default n
  147. if RT_USING_RTC
  148. config RT_USING_ALARM
  149. bool "Using RTC alarm"
  150. default n
  151. config RT_USING_SOFT_RTC
  152. bool "Using software simulation RTC device"
  153. default n
  154. config RTC_SYNC_USING_NTP
  155. bool "Using NTP auto sync RTC time"
  156. depends on PKG_NETUTILS_NTP
  157. default y
  158. if RTC_SYNC_USING_NTP
  159. config RTC_NTP_FIRST_SYNC_DELAY
  160. int "NTP first sync delay time(second) for network connect"
  161. default 30
  162. config RTC_NTP_SYNC_PERIOD
  163. int "NTP auto sync period(second)"
  164. default 3600
  165. endif
  166. endif
  167. config RT_USING_SDIO
  168. bool "Using SD/MMC device drivers"
  169. default n
  170. if RT_USING_SDIO
  171. config RT_SDIO_STACK_SIZE
  172. int "The stack size for sdio irq thread"
  173. default 512
  174. config RT_SDIO_THREAD_PRIORITY
  175. int "The priority level value of sdio irq thread"
  176. default 15
  177. config RT_MMCSD_STACK_SIZE
  178. int "The stack size for mmcsd thread"
  179. default 1024
  180. config RT_MMCSD_THREAD_PREORITY
  181. int "The priority level value of mmcsd thread"
  182. default 22
  183. config RT_MMCSD_MAX_PARTITION
  184. int "mmcsd max partition"
  185. default 16
  186. config RT_SDIO_DEBUG
  187. bool "Enable SDIO debug log output"
  188. default n
  189. endif
  190. config RT_USING_SPI
  191. bool "Using SPI Bus/Device device drivers"
  192. default n
  193. if RT_USING_SPI
  194. config RT_USING_QSPI
  195. bool "Enable QSPI mode"
  196. default n
  197. config RT_USING_SPI_MSD
  198. bool "Using SD/TF card driver with spi"
  199. select RT_USING_DFS
  200. default n
  201. config RT_USING_SFUD
  202. bool "Using Serial Flash Universal Driver"
  203. default n
  204. help
  205. An using JEDEC's SFDP standard serial (SPI) flash universal driver library
  206. if RT_USING_SFUD
  207. config RT_SFUD_USING_SFDP
  208. bool "Using auto probe flash JEDEC SFDP parameter"
  209. default y
  210. config RT_SFUD_USING_FLASH_INFO_TABLE
  211. bool "Using defined supported flash chip information table"
  212. default y
  213. config RT_SFUD_USING_QSPI
  214. bool "Using QSPI mode support"
  215. select RT_USING_QSPI
  216. default n
  217. config RT_SFUD_SPI_MAX_HZ
  218. int "Default spi maximum speed(HZ)"
  219. range 0 50000000
  220. default 50000000
  221. help
  222. Read the JEDEC SFDP command must run at 50 MHz or less,and you also can use rt_spi_configure(); to config spi speed.
  223. config RT_DEBUG_SFUD
  224. bool "Show more SFUD debug information"
  225. default n
  226. endif
  227. config RT_USING_ENC28J60
  228. bool "Using ENC28J60 SPI Ethernet network interface"
  229. select RT_USING_LWIP
  230. default n
  231. config RT_USING_SPI_WIFI
  232. bool "Using RW009/007 SPI Wi-Fi wireless interface"
  233. select RT_USING_LWIP
  234. default n
  235. endif
  236. config RT_USING_WDT
  237. bool "Using Watch Dog device drivers"
  238. default n
  239. config RT_USING_AUDIO
  240. bool "Using Audio device drivers"
  241. default n
  242. if RT_USING_AUDIO
  243. config RT_AUDIO_REPLAY_MP_BLOCK_SIZE
  244. int "Replay memory pool block size"
  245. default 4096
  246. config RT_AUDIO_REPLAY_MP_BLOCK_COUNT
  247. int "Replay memory pool block count"
  248. default 2
  249. config RT_AUDIO_RECORD_PIPE_SIZE
  250. int "Record pipe size"
  251. default 2048
  252. endif
  253. config RT_USING_SENSOR
  254. bool "Using Sensor device drivers"
  255. select RT_USING_PIN
  256. default n
  257. if RT_USING_SENSOR
  258. config RT_USING_SENSOR_CMD
  259. bool "Using Sensor cmd"
  260. default y
  261. endif
  262. config RT_USING_TOUCH
  263. bool "Using Touch device drivers"
  264. default n
  265. config RT_USING_LCD
  266. bool "Using LCD graphic drivers"
  267. default n
  268. menuconfig RT_USING_HWCRYPTO
  269. bool "Using Hardware Crypto drivers"
  270. default n
  271. if RT_USING_HWCRYPTO
  272. config RT_HWCRYPTO_DEFAULT_NAME
  273. string "Hardware crypto device name"
  274. default "hwcryto"
  275. config RT_HWCRYPTO_IV_MAX_SIZE
  276. int "IV max size"
  277. default "16"
  278. config RT_HWCRYPTO_KEYBIT_MAX_SIZE
  279. int "Key max bit length"
  280. default 256
  281. config RT_HWCRYPTO_USING_GCM
  282. bool "Using Hardware GCM"
  283. default n
  284. config RT_HWCRYPTO_USING_AES
  285. bool "Using Hardware AES"
  286. default n
  287. if RT_HWCRYPTO_USING_AES
  288. config RT_HWCRYPTO_USING_AES_ECB
  289. bool "Using Hardware AES ECB mode"
  290. default y
  291. config RT_HWCRYPTO_USING_AES_CBC
  292. bool "Using Hardware AES CBC mode"
  293. default n
  294. config RT_HWCRYPTO_USING_AES_CFB
  295. bool "Using Hardware AES CFB mode"
  296. default n
  297. config RT_HWCRYPTO_USING_AES_CTR
  298. bool "Using Hardware AES CTR mode"
  299. default n
  300. config RT_HWCRYPTO_USING_AES_OFB
  301. bool "Using Hardware AES OFB mode"
  302. default n
  303. endif
  304. config RT_HWCRYPTO_USING_DES
  305. bool "Using Hardware DES"
  306. default n
  307. if RT_HWCRYPTO_USING_DES
  308. config RT_HWCRYPTO_USING_DES_ECB
  309. bool "Using Hardware DES ECB mode"
  310. default y
  311. config RT_HWCRYPTO_USING_DES_CBC
  312. bool "Using Hardware DES CBC mode"
  313. default n
  314. endif
  315. config RT_HWCRYPTO_USING_3DES
  316. bool "Using Hardware 3DES"
  317. default n
  318. if RT_HWCRYPTO_USING_3DES
  319. config RT_HWCRYPTO_USING_3DES_ECB
  320. bool "Using Hardware 3DES ECB mode"
  321. default y
  322. config RT_HWCRYPTO_USING_3DES_CBC
  323. bool "Using Hardware 3DES CBC mode"
  324. default n
  325. endif
  326. config RT_HWCRYPTO_USING_RC4
  327. bool "Using Hardware RC4"
  328. default n
  329. config RT_HWCRYPTO_USING_MD5
  330. bool "Using Hardware MD5"
  331. default n
  332. config RT_HWCRYPTO_USING_SHA1
  333. bool "Using Hardware SHA1"
  334. default n
  335. config RT_HWCRYPTO_USING_SHA2
  336. bool "Using Hardware SHA2"
  337. default n
  338. if RT_HWCRYPTO_USING_SHA2
  339. config RT_HWCRYPTO_USING_SHA2_224
  340. bool "Using Hardware SHA2_224 mode"
  341. default n
  342. config RT_HWCRYPTO_USING_SHA2_256
  343. bool "Using Hardware SHA2_256 mode"
  344. default y
  345. config RT_HWCRYPTO_USING_SHA2_384
  346. bool "Using Hardware SHA2_384 mode"
  347. default n
  348. config RT_HWCRYPTO_USING_SHA2_512
  349. bool "Using Hardware SHA2_512 mode"
  350. default n
  351. endif
  352. config RT_HWCRYPTO_USING_RNG
  353. bool "Using Hardware RNG"
  354. default n
  355. config RT_HWCRYPTO_USING_CRC
  356. bool "Using Hardware CRC"
  357. default n
  358. if RT_HWCRYPTO_USING_CRC
  359. config RT_HWCRYPTO_USING_CRC_07
  360. bool "Using Hardware CRC-8 0x07 polynomial"
  361. default n
  362. config RT_HWCRYPTO_USING_CRC_8005
  363. bool "Using Hardware CRC-16 0x8005 polynomial"
  364. default n
  365. config RT_HWCRYPTO_USING_CRC_1021
  366. bool "Using Hardware CRC-16 0x1021 polynomial"
  367. default n
  368. config RT_HWCRYPTO_USING_CRC_3D65
  369. bool "Using Hardware CRC-16 0x3D65 polynomial"
  370. default n
  371. config RT_HWCRYPTO_USING_CRC_04C11DB7
  372. bool "Using Hardware CRC-32 0x04C11DB7 polynomial"
  373. default n
  374. endif
  375. config RT_HWCRYPTO_USING_BIGNUM
  376. bool "Using Hardware bignum"
  377. default n
  378. if RT_HWCRYPTO_USING_BIGNUM
  379. config RT_HWCRYPTO_USING_BIGNUM_EXPTMOD
  380. bool "Using Hardware bignum expt_mod operation"
  381. default y
  382. config RT_HWCRYPTO_USING_BIGNUM_MULMOD
  383. bool "Using Hardware bignum mul_mod operation"
  384. default y
  385. config RT_HWCRYPTO_USING_BIGNUM_MUL
  386. bool "Using Hardware bignum mul operation"
  387. default n
  388. config RT_HWCRYPTO_USING_BIGNUM_ADD
  389. bool "Using Hardware bignum add operation"
  390. default n
  391. config RT_HWCRYPTO_USING_BIGNUM_SUB
  392. bool "Using Hardware bignum sub operation"
  393. default n
  394. endif
  395. endif
  396. config RT_USING_PULSE_ENCODER
  397. bool "Using PULSE ENCODER device drivers"
  398. default n
  399. config RT_USING_INPUT_CAPTURE
  400. bool "Using INPUT CAPTURE device drivers"
  401. default n
  402. if RT_USING_INPUT_CAPTURE
  403. config RT_INPUT_CAPTURE_RB_SIZE
  404. int "Set input capture ringbuffer size"
  405. default 100
  406. endif
  407. menuconfig RT_USING_WIFI
  408. bool "Using Wi-Fi framework"
  409. default n
  410. if RT_USING_WIFI
  411. config RT_WLAN_DEVICE_STA_NAME
  412. string "The device name for station"
  413. default "wlan0"
  414. config RT_WLAN_DEVICE_AP_NAME
  415. string "The device name for ap"
  416. default "wlan1"
  417. config RT_WLAN_SSID_MAX_LENGTH
  418. int "SSID maximum length"
  419. default 32
  420. config RT_WLAN_PASSWORD_MAX_LENGTH
  421. int "Password maximum length"
  422. default 32
  423. config RT_WLAN_DEV_EVENT_NUM
  424. int "Driver events maxcount"
  425. default 2
  426. config RT_WLAN_MANAGE_ENABLE
  427. bool "Connection management Enable"
  428. default y
  429. if RT_WLAN_MANAGE_ENABLE
  430. config RT_WLAN_SCAN_WAIT_MS
  431. int "Set scan timeout time(ms)"
  432. default 10000
  433. config RT_WLAN_CONNECT_WAIT_MS
  434. int "Set connect timeout time(ms)"
  435. default 10000
  436. config RT_WLAN_SCAN_SORT
  437. bool "Automatic sorting of scan results"
  438. default y
  439. config RT_WLAN_MSH_CMD_ENABLE
  440. bool "MSH command Enable"
  441. default y
  442. config RT_WLAN_AUTO_CONNECT_ENABLE
  443. bool "Auto connect Enable"
  444. select RT_WLAN_CFG_ENABLE
  445. select RT_WLAN_WORK_THREAD_ENABLE
  446. default y
  447. if RT_WLAN_AUTO_CONNECT_ENABLE
  448. config AUTO_CONNECTION_PERIOD_MS
  449. int "Auto connect period(ms)"
  450. default 2000
  451. endif
  452. endif
  453. config RT_WLAN_CFG_ENABLE
  454. bool "WiFi information automatically saved Enable"
  455. default y
  456. if RT_WLAN_CFG_ENABLE
  457. config RT_WLAN_CFG_INFO_MAX
  458. int "Maximum number of WiFi information automatically saved"
  459. default 3
  460. endif
  461. config RT_WLAN_PROT_ENABLE
  462. bool "Transport protocol manage Enable"
  463. default y
  464. if RT_WLAN_PROT_ENABLE
  465. config RT_WLAN_PROT_NAME_LEN
  466. int "Transport protocol name length"
  467. default 8
  468. config RT_WLAN_PROT_MAX
  469. int "Transport protocol maxcount"
  470. default 2
  471. config RT_WLAN_DEFAULT_PROT
  472. string "Default transport protocol"
  473. default "lwip"
  474. config RT_WLAN_PROT_LWIP_ENABLE
  475. bool "LWIP transport protocol Enable"
  476. select RT_USING_LWIP
  477. default y
  478. if RT_WLAN_PROT_LWIP_ENABLE
  479. config RT_WLAN_PROT_LWIP_NAME
  480. string "LWIP transport protocol name"
  481. default "lwip"
  482. config RT_WLAN_PROT_LWIP_PBUF_FORCE
  483. bool "Forced use of PBUF transmission"
  484. default n
  485. endif
  486. endif
  487. config RT_WLAN_WORK_THREAD_ENABLE
  488. bool "WLAN work queue thread Enable"
  489. default y
  490. if RT_WLAN_WORK_THREAD_ENABLE
  491. config RT_WLAN_WORKQUEUE_THREAD_NAME
  492. string "WLAN work queue thread name"
  493. default "wlan"
  494. config RT_WLAN_WORKQUEUE_THREAD_SIZE
  495. int "WLAN work queue thread size"
  496. default 2048
  497. config RT_WLAN_WORKQUEUE_THREAD_PRIO
  498. int "WLAN work queue thread priority"
  499. default 15
  500. endif
  501. menuconfig RT_WLAN_DEBUG
  502. bool "Enable WLAN Debugging Options"
  503. default n
  504. if RT_WLAN_DEBUG
  505. config RT_WLAN_CMD_DEBUG
  506. bool "Enable Debugging of wlan_cmd.c"
  507. default n
  508. config RT_WLAN_MGNT_DEBUG
  509. bool "Enable Debugging of wlan_mgnt.c"
  510. default n
  511. config RT_WLAN_DEV_DEBUG
  512. bool "Enable Debugging of wlan_dev.c"
  513. default n
  514. config RT_WLAN_PROT_DEBUG
  515. bool "Enable Debugging of wlan_prot.c"
  516. default n
  517. config RT_WLAN_CFG_DEBUG
  518. bool "Enable Debugging of wlan_cfg.c"
  519. default n
  520. config RT_WLAN_LWIP_DEBUG
  521. bool "Enable Debugging of wlan_lwip.c"
  522. default n
  523. endif
  524. endif
  525. menuconfig RT_USING_VIRTIO
  526. bool "Using VirtIO device drivers"
  527. default n
  528. if RT_USING_VIRTIO
  529. choice
  530. prompt "VirtIO Version"
  531. default RT_USING_VIRTIO10
  532. config RT_USING_VIRTIO10
  533. bool "VirtIO v1.0"
  534. endchoice
  535. config RT_USING_VIRTIO_MMIO_ALIGN
  536. bool "Using VirtIO MMIO alignment"
  537. default y
  538. config RT_USING_VIRTIO_BLK
  539. bool "Using VirtIO BLK"
  540. default y
  541. config RT_USING_VIRTIO_NET
  542. bool "Using VirtIO NET"
  543. default y
  544. menuconfig RT_USING_VIRTIO_CONSOLE
  545. bool "Using VirtIO Console"
  546. default y
  547. if RT_USING_VIRTIO_CONSOLE
  548. config RT_USING_VIRTIO_CONSOLE_PORT_MAX_NR
  549. int "Max number of port in VirtIO Console"
  550. default 4
  551. endif
  552. config RT_USING_VIRTIO_GPU
  553. bool "Using VirtIO GPU"
  554. default y
  555. config RT_USING_VIRTIO_INPUT
  556. bool "Using VirtIO Input"
  557. default y
  558. endif
  559. menu "Using USB"
  560. config RT_USING_USB_HOST
  561. bool "Using USB host"
  562. default n
  563. if RT_USING_USB_HOST
  564. config RT_USBH_MSTORAGE
  565. bool "Enable Udisk Drivers"
  566. default n
  567. if RT_USBH_MSTORAGE
  568. config UDISK_MOUNTPOINT
  569. string "Udisk mount dir"
  570. default "/"
  571. endif
  572. endif
  573. config RT_USING_USB_DEVICE
  574. bool "Using USB device"
  575. default n
  576. if RT_USING_USB_DEVICE || RT_USING_USB_HOST
  577. config RT_USBD_THREAD_STACK_SZ
  578. int "usb thread stack size"
  579. default 4096
  580. endif
  581. if RT_USING_USB_DEVICE
  582. config USB_VENDOR_ID
  583. hex "USB Vendor ID"
  584. default 0x0FFE
  585. config USB_PRODUCT_ID
  586. hex "USB Product ID"
  587. default 0x0001
  588. config RT_USB_DEVICE_COMPOSITE
  589. bool "Enable composite device"
  590. default n
  591. choice
  592. prompt "Device type"
  593. default _RT_USB_DEVICE_NONE
  594. depends on !RT_USB_DEVICE_COMPOSITE
  595. config _RT_USB_DEVICE_NONE
  596. bool "Using custom class by register interface"
  597. select RT_USB_DEVICE_NONE
  598. config _RT_USB_DEVICE_CDC
  599. bool "Enable to use device as CDC device"
  600. select RT_USB_DEVICE_CDC
  601. config _RT_USB_DEVICE_MSTORAGE
  602. bool "Enable to use device as Mass Storage device"
  603. select RT_USB_DEVICE_MSTORAGE
  604. config _RT_USB_DEVICE_HID
  605. bool "Enable to use device as HID device"
  606. select RT_USB_DEVICE_HID
  607. config _RT_USB_DEVICE_RNDIS
  608. bool "Enable to use device as rndis device"
  609. select RT_USB_DEVICE_RNDIS
  610. depends on RT_USING_LWIP
  611. config _RT_USB_DEVICE_ECM
  612. bool "Enable to use device as ecm device"
  613. select RT_USB_DEVICE_ECM
  614. depends on RT_USING_LWIP
  615. config _RT_USB_DEVICE_WINUSB
  616. bool "Enable to use device as winusb device"
  617. select RT_USB_DEVICE_WINUSB
  618. config _RT_USB_DEVICE_AUDIO
  619. bool "Enable to use device as audio device"
  620. select RT_USB_DEVICE_AUDIO
  621. endchoice
  622. if RT_USB_DEVICE_COMPOSITE
  623. config RT_USB_DEVICE_CDC
  624. bool "Enable to use device as CDC device"
  625. default n
  626. config RT_USB_DEVICE_NONE
  627. bool
  628. default y
  629. config RT_USB_DEVICE_MSTORAGE
  630. bool "Enable to use device as Mass Storage device"
  631. default n
  632. config RT_USB_DEVICE_HID
  633. bool "Enable to use device as HID device"
  634. default n
  635. config RT_USB_DEVICE_RNDIS
  636. bool "Enable to use device as rndis device"
  637. default n
  638. depends on RT_USING_LWIP
  639. config RT_USB_DEVICE_ECM
  640. bool "Enable to use device as ecm device"
  641. default n
  642. depends on RT_USING_LWIP
  643. config RT_USB_DEVICE_WINUSB
  644. bool "Enable to use device as winusb device"
  645. default n
  646. config RT_USB_DEVICE_AUDIO
  647. bool "Enable to use device as audio device"
  648. default n
  649. endif
  650. if RT_USB_DEVICE_CDC
  651. config RT_VCOM_TASK_STK_SIZE
  652. int "virtual com thread stack size"
  653. default 512
  654. config RT_CDC_RX_BUFSIZE
  655. int "virtual com rx buffer size"
  656. default 128
  657. config RT_VCOM_TX_USE_DMA
  658. bool "Enable to use dma for vcom tx"
  659. default n
  660. config RT_VCOM_SERNO
  661. string "serial number of virtual com"
  662. default "32021919830108"
  663. config RT_VCOM_SER_LEN
  664. int "serial number length of virtual com"
  665. default 14
  666. config RT_VCOM_TX_TIMEOUT
  667. int "tx timeout(ticks) of virtual com"
  668. default 1000
  669. endif
  670. if RT_USB_DEVICE_WINUSB
  671. config RT_WINUSB_GUID
  672. string "Guid for winusb"
  673. default "{6860DC3C-C05F-4807-8807-1CA861CC1D66}"
  674. endif
  675. if RT_USB_DEVICE_MSTORAGE
  676. config RT_USB_MSTORAGE_DISK_NAME
  677. string "msc class disk name"
  678. default "flash0"
  679. endif
  680. if RT_USB_DEVICE_RNDIS
  681. config RNDIS_DELAY_LINK_UP
  682. bool "Delay linkup media connection"
  683. select RT_USING_TIMER_SOFT
  684. default n
  685. endif
  686. if RT_USB_DEVICE_HID
  687. config RT_USB_DEVICE_HID_KEYBOARD
  688. bool "Use to HID device as Keyboard"
  689. default n
  690. if RT_USB_DEVICE_HID_KEYBOARD
  691. config RT_USB_DEVICE_HID_KEYBOARD_NUMBER
  692. int "Number of Keyboard(max 3)"
  693. default 1
  694. range 1 3
  695. endif
  696. config RT_USB_DEVICE_HID_MOUSE
  697. bool "Use to HID device as Mouse"
  698. default n
  699. config RT_USB_DEVICE_HID_GENERAL
  700. bool "Use to HID device as General HID device"
  701. default y
  702. if RT_USB_DEVICE_HID_GENERAL
  703. config RT_USB_DEVICE_HID_GENERAL_OUT_REPORT_LENGTH
  704. int "General HID device out report length"
  705. default 63
  706. range 0 63
  707. config RT_USB_DEVICE_HID_GENERAL_IN_REPORT_LENGTH
  708. int "General HID device in report length"
  709. default 63
  710. range 0 63
  711. endif
  712. config RT_USB_DEVICE_HID_MEDIA
  713. bool "Use to HID device as media keyboard"
  714. default y
  715. endif
  716. if RT_USB_DEVICE_AUDIO
  717. config RT_USB_DEVICE_AUDIO_MIC
  718. bool "Use usb mic device as audio device"
  719. default n
  720. if RT_USB_DEVICE_AUDIO_MIC
  721. config RT_USBD_MIC_DEVICE_NAME
  722. string "audio mic device name"
  723. default "mic0"
  724. endif
  725. config RT_USB_DEVICE_AUDIO_SPEAKER
  726. bool "Use usb speaker device as audio device"
  727. default n
  728. if RT_USB_DEVICE_AUDIO_SPEAKER
  729. config RT_USBD_SPEAKER_DEVICE_NAME
  730. string "audio speaker device name"
  731. default "sound0"
  732. endif
  733. endif
  734. endif
  735. endmenu
  736. endmenu