Kconfig 25 KB

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