Kconfig 30 KB

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