Kconfig 24 KB

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