Kconfig 24 KB

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