Kconfig 24 KB

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