Kconfig 24 KB

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