Kconfig 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838
  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. config RT_USING_LCD
  255. bool "Using LCD graphic drivers"
  256. default n
  257. menuconfig RT_USING_HWCRYPTO
  258. bool "Using Hardware Crypto drivers"
  259. default n
  260. if RT_USING_HWCRYPTO
  261. config RT_HWCRYPTO_DEFAULT_NAME
  262. string "Hardware crypto device name"
  263. default "hwcryto"
  264. config RT_HWCRYPTO_IV_MAX_SIZE
  265. int "IV max size"
  266. default "16"
  267. config RT_HWCRYPTO_KEYBIT_MAX_SIZE
  268. int "Key max bit length"
  269. default 256
  270. config RT_HWCRYPTO_USING_GCM
  271. bool "Using Hardware GCM"
  272. default n
  273. config RT_HWCRYPTO_USING_AES
  274. bool "Using Hardware AES"
  275. default n
  276. if RT_HWCRYPTO_USING_AES
  277. config RT_HWCRYPTO_USING_AES_ECB
  278. bool "Using Hardware AES ECB mode"
  279. default y
  280. config RT_HWCRYPTO_USING_AES_CBC
  281. bool "Using Hardware AES CBC mode"
  282. default n
  283. config RT_HWCRYPTO_USING_AES_CFB
  284. bool "Using Hardware AES CFB mode"
  285. default n
  286. config RT_HWCRYPTO_USING_AES_CTR
  287. bool "Using Hardware AES CTR mode"
  288. default n
  289. config RT_HWCRYPTO_USING_AES_OFB
  290. bool "Using Hardware AES OFB mode"
  291. default n
  292. endif
  293. config RT_HWCRYPTO_USING_DES
  294. bool "Using Hardware DES"
  295. default n
  296. if RT_HWCRYPTO_USING_DES
  297. config RT_HWCRYPTO_USING_DES_ECB
  298. bool "Using Hardware DES ECB mode"
  299. default y
  300. config RT_HWCRYPTO_USING_DES_CBC
  301. bool "Using Hardware DES CBC mode"
  302. default n
  303. endif
  304. config RT_HWCRYPTO_USING_3DES
  305. bool "Using Hardware 3DES"
  306. default n
  307. if RT_HWCRYPTO_USING_3DES
  308. config RT_HWCRYPTO_USING_3DES_ECB
  309. bool "Using Hardware 3DES ECB mode"
  310. default y
  311. config RT_HWCRYPTO_USING_3DES_CBC
  312. bool "Using Hardware 3DES CBC mode"
  313. default n
  314. endif
  315. config RT_HWCRYPTO_USING_RC4
  316. bool "Using Hardware RC4"
  317. default n
  318. config RT_HWCRYPTO_USING_MD5
  319. bool "Using Hardware MD5"
  320. default n
  321. config RT_HWCRYPTO_USING_SHA1
  322. bool "Using Hardware SHA1"
  323. default n
  324. config RT_HWCRYPTO_USING_SHA2
  325. bool "Using Hardware SHA2"
  326. default n
  327. if RT_HWCRYPTO_USING_SHA2
  328. config RT_HWCRYPTO_USING_SHA2_224
  329. bool "Using Hardware SHA2_224 mode"
  330. default n
  331. config RT_HWCRYPTO_USING_SHA2_256
  332. bool "Using Hardware SHA2_256 mode"
  333. default y
  334. config RT_HWCRYPTO_USING_SHA2_384
  335. bool "Using Hardware SHA2_384 mode"
  336. default n
  337. config RT_HWCRYPTO_USING_SHA2_512
  338. bool "Using Hardware SHA2_512 mode"
  339. default n
  340. endif
  341. config RT_HWCRYPTO_USING_RNG
  342. bool "Using Hardware RNG"
  343. default n
  344. config RT_HWCRYPTO_USING_CRC
  345. bool "Using Hardware CRC"
  346. default n
  347. if RT_HWCRYPTO_USING_CRC
  348. config RT_HWCRYPTO_USING_CRC_07
  349. bool "Using Hardware CRC-8 0x07 polynomial"
  350. default n
  351. config RT_HWCRYPTO_USING_CRC_8005
  352. bool "Using Hardware CRC-16 0x8005 polynomial"
  353. default n
  354. config RT_HWCRYPTO_USING_CRC_1021
  355. bool "Using Hardware CRC-16 0x1021 polynomial"
  356. default n
  357. config RT_HWCRYPTO_USING_CRC_3D65
  358. bool "Using Hardware CRC-16 0x3D65 polynomial"
  359. default n
  360. config RT_HWCRYPTO_USING_CRC_04C11DB7
  361. bool "Using Hardware CRC-32 0x04C11DB7 polynomial"
  362. default n
  363. endif
  364. config RT_HWCRYPTO_USING_BIGNUM
  365. bool "Using Hardware bignum"
  366. default n
  367. if RT_HWCRYPTO_USING_BIGNUM
  368. config RT_HWCRYPTO_USING_BIGNUM_EXPTMOD
  369. bool "Using Hardware bignum expt_mod operation"
  370. default y
  371. config RT_HWCRYPTO_USING_BIGNUM_MULMOD
  372. bool "Using Hardware bignum mul_mod operation"
  373. default y
  374. config RT_HWCRYPTO_USING_BIGNUM_MUL
  375. bool "Using Hardware bignum mul operation"
  376. default n
  377. config RT_HWCRYPTO_USING_BIGNUM_ADD
  378. bool "Using Hardware bignum add operation"
  379. default n
  380. config RT_HWCRYPTO_USING_BIGNUM_SUB
  381. bool "Using Hardware bignum sub operation"
  382. default n
  383. endif
  384. endif
  385. config RT_USING_PULSE_ENCODER
  386. bool "Using PULSE ENCODER device drivers"
  387. default n
  388. config RT_USING_INPUT_CAPTURE
  389. bool "Using INPUT CAPTURE device drivers"
  390. default n
  391. if RT_USING_INPUT_CAPTURE
  392. config RT_INPUT_CAPTURE_RB_SIZE
  393. int "Set input capture ringbuffer size"
  394. default 100
  395. endif
  396. menuconfig RT_USING_WIFI
  397. bool "Using Wi-Fi framework"
  398. default n
  399. if RT_USING_WIFI
  400. config RT_WLAN_DEVICE_STA_NAME
  401. string "The device name for station"
  402. default "wlan0"
  403. config RT_WLAN_DEVICE_AP_NAME
  404. string "The device name for ap"
  405. default "wlan1"
  406. config RT_WLAN_SSID_MAX_LENGTH
  407. int "SSID maximum length"
  408. default 32
  409. config RT_WLAN_PASSWORD_MAX_LENGTH
  410. int "Password maximum length"
  411. default 32
  412. config RT_WLAN_DEV_EVENT_NUM
  413. int "Driver events maxcount"
  414. default 2
  415. config RT_WLAN_MANAGE_ENABLE
  416. bool "Connection management Enable"
  417. default y
  418. if RT_WLAN_MANAGE_ENABLE
  419. config RT_WLAN_SCAN_WAIT_MS
  420. int "Set scan timeout time(ms)"
  421. default 10000
  422. config RT_WLAN_CONNECT_WAIT_MS
  423. int "Set connect timeout time(ms)"
  424. default 10000
  425. config RT_WLAN_SCAN_SORT
  426. bool "Automatic sorting of scan results"
  427. default y
  428. config RT_WLAN_MSH_CMD_ENABLE
  429. bool "MSH command Enable"
  430. default y
  431. config RT_WLAN_AUTO_CONNECT_ENABLE
  432. bool "Auto connect Enable"
  433. select RT_WLAN_CFG_ENABLE
  434. select RT_WLAN_WORK_THREAD_ENABLE
  435. default y
  436. if RT_WLAN_AUTO_CONNECT_ENABLE
  437. config AUTO_CONNECTION_PERIOD_MS
  438. int "Auto connect period(ms)"
  439. default 2000
  440. endif
  441. endif
  442. config RT_WLAN_CFG_ENABLE
  443. bool "WiFi information automatically saved Enable"
  444. default y
  445. if RT_WLAN_CFG_ENABLE
  446. config RT_WLAN_CFG_INFO_MAX
  447. int "Maximum number of WiFi information automatically saved"
  448. default 3
  449. endif
  450. config RT_WLAN_PROT_ENABLE
  451. bool "Transport protocol manage Enable"
  452. default y
  453. if RT_WLAN_PROT_ENABLE
  454. config RT_WLAN_PROT_NAME_LEN
  455. int "Transport protocol name length"
  456. default 8
  457. config RT_WLAN_PROT_MAX
  458. int "Transport protocol maxcount"
  459. default 2
  460. config RT_WLAN_DEFAULT_PROT
  461. string "Default transport protocol"
  462. default "lwip"
  463. config RT_WLAN_PROT_LWIP_ENABLE
  464. bool "LWIP transport protocol Enable"
  465. select RT_USING_LWIP
  466. default y
  467. if RT_WLAN_PROT_LWIP_ENABLE
  468. config RT_WLAN_PROT_LWIP_NAME
  469. string "LWIP transport protocol name"
  470. default "lwip"
  471. config RT_WLAN_PROT_LWIP_PBUF_FORCE
  472. bool "Forced use of PBUF transmission"
  473. default n
  474. endif
  475. endif
  476. config RT_WLAN_WORK_THREAD_ENABLE
  477. bool "WLAN work queue thread Enable"
  478. default y
  479. if RT_WLAN_WORK_THREAD_ENABLE
  480. config RT_WLAN_WORKQUEUE_THREAD_NAME
  481. string "WLAN work queue thread name"
  482. default "wlan"
  483. config RT_WLAN_WORKQUEUE_THREAD_SIZE
  484. int "WLAN work queue thread size"
  485. default 2048
  486. config RT_WLAN_WORKQUEUE_THREAD_PRIO
  487. int "WLAN work queue thread priority"
  488. default 15
  489. endif
  490. menuconfig RT_WLAN_DEBUG
  491. bool "Enable WLAN Debugging Options"
  492. default n
  493. if RT_WLAN_DEBUG
  494. config RT_WLAN_CMD_DEBUG
  495. bool "Enable Debugging of wlan_cmd.c"
  496. default n
  497. config RT_WLAN_MGNT_DEBUG
  498. bool "Enable Debugging of wlan_mgnt.c"
  499. default n
  500. config RT_WLAN_DEV_DEBUG
  501. bool "Enable Debugging of wlan_dev.c"
  502. default n
  503. config RT_WLAN_PROT_DEBUG
  504. bool "Enable Debugging of wlan_prot.c"
  505. default n
  506. config RT_WLAN_CFG_DEBUG
  507. bool "Enable Debugging of wlan_cfg.c"
  508. default n
  509. config RT_WLAN_LWIP_DEBUG
  510. bool "Enable Debugging of wlan_lwip.c"
  511. default n
  512. endif
  513. endif
  514. menu "Using USB"
  515. config RT_USING_USB_HOST
  516. bool "Using USB host"
  517. default n
  518. if RT_USING_USB_HOST
  519. config RT_USBH_MSTORAGE
  520. bool "Enable Udisk Drivers"
  521. default n
  522. if RT_USBH_MSTORAGE
  523. config UDISK_MOUNTPOINT
  524. string "Udisk mount dir"
  525. default "/"
  526. endif
  527. endif
  528. config RT_USING_USB_DEVICE
  529. bool "Using USB device"
  530. default n
  531. if RT_USING_USB_DEVICE || RT_USING_USB_HOST
  532. config RT_USBD_THREAD_STACK_SZ
  533. int "usb thread stack size"
  534. default 4096
  535. endif
  536. if RT_USING_USB_DEVICE
  537. config USB_VENDOR_ID
  538. hex "USB Vendor ID"
  539. default 0x0FFE
  540. config USB_PRODUCT_ID
  541. hex "USB Product ID"
  542. default 0x0001
  543. config RT_USB_DEVICE_COMPOSITE
  544. bool "Enable composite device"
  545. default n
  546. choice
  547. prompt "Device type"
  548. default _RT_USB_DEVICE_NONE
  549. depends on !RT_USB_DEVICE_COMPOSITE
  550. config _RT_USB_DEVICE_NONE
  551. bool "Using custom class by register interface"
  552. select RT_USB_DEVICE_NONE
  553. config _RT_USB_DEVICE_CDC
  554. bool "Enable to use device as CDC device"
  555. select RT_USB_DEVICE_CDC
  556. config _RT_USB_DEVICE_MSTORAGE
  557. bool "Enable to use device as Mass Storage device"
  558. select RT_USB_DEVICE_MSTORAGE
  559. config _RT_USB_DEVICE_HID
  560. bool "Enable to use device as HID device"
  561. select RT_USB_DEVICE_HID
  562. config _RT_USB_DEVICE_RNDIS
  563. bool "Enable to use device as rndis device"
  564. select RT_USB_DEVICE_RNDIS
  565. depends on RT_USING_LWIP
  566. config _RT_USB_DEVICE_ECM
  567. bool "Enable to use device as ecm device"
  568. select RT_USB_DEVICE_ECM
  569. depends on RT_USING_LWIP
  570. config _RT_USB_DEVICE_WINUSB
  571. bool "Enable to use device as winusb device"
  572. select RT_USB_DEVICE_WINUSB
  573. config _RT_USB_DEVICE_AUDIO
  574. bool "Enable to use device as audio device"
  575. select RT_USB_DEVICE_AUDIO
  576. endchoice
  577. if RT_USB_DEVICE_COMPOSITE
  578. config RT_USB_DEVICE_CDC
  579. bool "Enable to use device as CDC device"
  580. default n
  581. config RT_USB_DEVICE_NONE
  582. bool
  583. default y
  584. config RT_USB_DEVICE_MSTORAGE
  585. bool "Enable to use device as Mass Storage device"
  586. default n
  587. config RT_USB_DEVICE_HID
  588. bool "Enable to use device as HID device"
  589. default n
  590. config RT_USB_DEVICE_RNDIS
  591. bool "Enable to use device as rndis device"
  592. default n
  593. depends on RT_USING_LWIP
  594. config RT_USB_DEVICE_ECM
  595. bool "Enable to use device as ecm device"
  596. default n
  597. depends on RT_USING_LWIP
  598. config RT_USB_DEVICE_WINUSB
  599. bool "Enable to use device as winusb device"
  600. default n
  601. config RT_USB_DEVICE_AUDIO
  602. bool "Enable to use device as audio device"
  603. default n
  604. endif
  605. if RT_USB_DEVICE_CDC
  606. config RT_VCOM_TASK_STK_SIZE
  607. int "virtual com thread stack size"
  608. default 512
  609. config RT_CDC_RX_BUFSIZE
  610. int "virtual com rx buffer size"
  611. default 128
  612. config RT_VCOM_TX_USE_DMA
  613. bool "Enable to use dma for vcom tx"
  614. default n
  615. config RT_VCOM_SERNO
  616. string "serial number of virtual com"
  617. default "32021919830108"
  618. config RT_VCOM_SER_LEN
  619. int "serial number length of virtual com"
  620. default 14
  621. config RT_VCOM_TX_TIMEOUT
  622. int "tx timeout(ticks) of virtual com"
  623. default 1000
  624. endif
  625. if RT_USB_DEVICE_WINUSB
  626. config RT_WINUSB_GUID
  627. string "Guid for winusb"
  628. default "{6860DC3C-C05F-4807-8807-1CA861CC1D66}"
  629. endif
  630. if RT_USB_DEVICE_MSTORAGE
  631. config RT_USB_MSTORAGE_DISK_NAME
  632. string "msc class disk name"
  633. default "flash0"
  634. endif
  635. if RT_USB_DEVICE_RNDIS
  636. config RNDIS_DELAY_LINK_UP
  637. bool "Delay linkup media connection"
  638. select RT_USING_TIMER_SOFT
  639. default n
  640. endif
  641. if RT_USB_DEVICE_HID
  642. config RT_USB_DEVICE_HID_KEYBOARD
  643. bool "Use to HID device as Keyboard"
  644. default n
  645. if RT_USB_DEVICE_HID_KEYBOARD
  646. config RT_USB_DEVICE_HID_KEYBOARD_NUMBER
  647. int "Number of Keyboard(max 3)"
  648. default 1
  649. range 1 3
  650. endif
  651. config RT_USB_DEVICE_HID_MOUSE
  652. bool "Use to HID device as Mouse"
  653. default n
  654. config RT_USB_DEVICE_HID_GENERAL
  655. bool "Use to HID device as General HID device"
  656. default y
  657. if RT_USB_DEVICE_HID_GENERAL
  658. config RT_USB_DEVICE_HID_GENERAL_OUT_REPORT_LENGTH
  659. int "General HID device out report length"
  660. default 63
  661. range 0 63
  662. config RT_USB_DEVICE_HID_GENERAL_IN_REPORT_LENGTH
  663. int "General HID device in report length"
  664. default 63
  665. range 0 63
  666. endif
  667. config RT_USB_DEVICE_HID_MEDIA
  668. bool "Use to HID device as media keyboard"
  669. default y
  670. endif
  671. if RT_USB_DEVICE_AUDIO
  672. config RT_USB_DEVICE_AUDIO_MIC
  673. bool "Use usb mic device as audio device"
  674. default n
  675. if RT_USB_DEVICE_AUDIO_MIC
  676. config RT_USBD_MIC_DEVICE_NAME
  677. string "audio mic device name"
  678. default "mic0"
  679. endif
  680. config RT_USB_DEVICE_AUDIO_SPEAKER
  681. bool "Use usb speaker device as audio device"
  682. default n
  683. if RT_USB_DEVICE_AUDIO_SPEAKER
  684. config RT_USBD_SPEAKER_DEVICE_NAME
  685. string "audio speaker device name"
  686. default "sound0"
  687. endif
  688. endif
  689. endif
  690. endmenu
  691. endmenu