Kconfig 29 KB

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