Kconfig 36 KB

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