Kconfig 24 KB

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