1
0

Kconfig 27 KB

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