Kconfig 24 KB

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