Kconfig 26 KB

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