Kconfig 24 KB

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