Kconfig 27 KB

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