Kconfig 26 KB

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