Kconfig 36 KB

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