Kconfig 25 KB

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