Kconfig 25 KB

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