Kconfig 25 KB

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