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