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. 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_ADC
  322. bool "Using ADC device drivers"
  323. default n
  324. config RT_USING_DAC
  325. bool "Using DAC device drivers"
  326. default n
  327. config RT_USING_NULL
  328. bool "Using NULL device drivers"
  329. default n
  330. config RT_USING_ZERO
  331. bool "Using ZERO device drivers"
  332. default n
  333. config RT_USING_RANDOM
  334. bool "Using RANDOM device drivers"
  335. default n
  336. config RT_USING_PWM
  337. bool "Using PWM device drivers"
  338. default n
  339. config RT_USING_MTD_NOR
  340. bool "Using MTD Nor Flash device drivers"
  341. default n
  342. config RT_USING_MTD_NAND
  343. bool "Using MTD Nand Flash device drivers"
  344. default n
  345. if RT_USING_MTD_NAND
  346. config RT_MTD_NAND_DEBUG
  347. bool "Enable MTD Nand operations debug information"
  348. default n
  349. endif
  350. config RT_USING_PM
  351. bool "Using Power Management device drivers"
  352. default n
  353. if RT_USING_PM
  354. config PM_TICKLESS_THRESHOLD_TIME
  355. int "PM tickless threashold time"
  356. default 2
  357. config PM_USING_CUSTOM_CONFIG
  358. bool "PM using custom pm config"
  359. default n
  360. config PM_ENABLE_DEBUG
  361. bool "PM Enable Debug"
  362. default n
  363. config PM_ENABLE_SUSPEND_SLEEP_MODE
  364. bool "PM Device suspend change sleep mode"
  365. default n
  366. config PM_ENABLE_THRESHOLD_SLEEP_MODE
  367. bool "PM using threshold time change sleep mode"
  368. default n
  369. if PM_ENABLE_THRESHOLD_SLEEP_MODE
  370. config PM_LIGHT_THRESHOLD_TIME
  371. int "PM light mode threashold time"
  372. default 5
  373. config PM_DEEP_THRESHOLD_TIME
  374. int "PM deep mode threashold time"
  375. default 20
  376. config PM_STANDBY_THRESHOLD_TIME
  377. int "PM standby mode threashold time"
  378. default 100
  379. endif
  380. endif
  381. config RT_USING_RTC
  382. bool "Using RTC device drivers"
  383. default n
  384. if RT_USING_RTC
  385. config RT_USING_ALARM
  386. bool "Using RTC alarm"
  387. default n
  388. config RT_USING_SOFT_RTC
  389. bool "Using software simulation RTC device"
  390. default n
  391. endif
  392. config RT_USING_SDIO
  393. bool "Using SD/MMC device drivers"
  394. default n
  395. if RT_USING_SDIO
  396. config RT_SDIO_STACK_SIZE
  397. int "The stack size for sdio irq thread"
  398. default 512
  399. config RT_SDIO_THREAD_PRIORITY
  400. int "The priority level value of sdio irq thread"
  401. default 15
  402. config RT_MMCSD_STACK_SIZE
  403. int "The stack size for mmcsd thread"
  404. default 1024
  405. config RT_MMCSD_THREAD_PREORITY
  406. int "The priority level value of mmcsd thread"
  407. default 22
  408. config RT_MMCSD_MAX_PARTITION
  409. int "mmcsd max partition"
  410. default 16
  411. config RT_SDIO_DEBUG
  412. bool "Enable SDIO debug log output"
  413. default n
  414. endif
  415. config RT_USING_SPI
  416. bool "Using SPI Bus/Device device drivers"
  417. default n
  418. if RT_USING_SPI
  419. config RT_USING_SPI_BITOPS
  420. select RT_USING_PIN
  421. bool "Use GPIO to simulate SPI"
  422. default n
  423. if RT_USING_SPI_BITOPS
  424. config RT_SPI_BITOPS_DEBUG
  425. bool "Use simulate SPI debug message"
  426. default n
  427. endif
  428. config RT_USING_QSPI
  429. bool "Enable QSPI mode"
  430. default n
  431. config RT_USING_SPI_MSD
  432. bool "Using SD/TF card driver with spi"
  433. select RT_USING_DFS
  434. default n
  435. config RT_USING_SFUD
  436. bool "Using Serial Flash Universal Driver"
  437. default n
  438. help
  439. An using JEDEC's SFDP standard serial (SPI) flash universal driver library
  440. if RT_USING_SFUD
  441. config RT_SFUD_USING_SFDP
  442. bool "Using auto probe flash JEDEC SFDP parameter"
  443. default y
  444. config RT_SFUD_USING_FLASH_INFO_TABLE
  445. bool "Using defined supported flash chip information table"
  446. default y
  447. config RT_SFUD_USING_QSPI
  448. bool "Using QSPI mode support"
  449. select RT_USING_QSPI
  450. default n
  451. config RT_SFUD_SPI_MAX_HZ
  452. int "Default spi maximum speed(HZ)"
  453. range 0 50000000
  454. default 50000000
  455. help
  456. Read the JEDEC SFDP command must run at 50 MHz or less,and you also can use rt_spi_configure(); to config spi speed.
  457. config RT_DEBUG_SFUD
  458. bool "Show more SFUD debug information"
  459. default n
  460. endif
  461. config RT_USING_ENC28J60
  462. bool "Using ENC28J60 SPI Ethernet network interface"
  463. select RT_USING_LWIP
  464. default n
  465. config RT_USING_SPI_WIFI
  466. bool "Using RW009/007 SPI Wi-Fi wireless interface"
  467. select RT_USING_LWIP
  468. default n
  469. endif
  470. config RT_USING_WDT
  471. bool "Using Watch Dog device drivers"
  472. default n
  473. config RT_USING_AUDIO
  474. bool "Using Audio device drivers"
  475. default n
  476. if RT_USING_AUDIO
  477. config RT_AUDIO_REPLAY_MP_BLOCK_SIZE
  478. int "Replay memory pool block size"
  479. default 4096
  480. config RT_AUDIO_REPLAY_MP_BLOCK_COUNT
  481. int "Replay memory pool block count"
  482. default 2
  483. config RT_AUDIO_RECORD_PIPE_SIZE
  484. int "Record pipe size"
  485. default 2048
  486. endif
  487. config RT_USING_SENSOR
  488. bool "Using Sensor device drivers"
  489. select RT_USING_PIN
  490. default n
  491. if RT_USING_SENSOR
  492. # config RT_USING_SENSOR_V2
  493. # bool "Enable Sensor Framework v2"
  494. # default n
  495. config RT_USING_SENSOR_CMD
  496. bool "Using Sensor cmd"
  497. select PKG_USING_RT_VSNPRINTF_FULL if RT_USING_SENSOR_V2
  498. default y
  499. endif
  500. config RT_USING_TOUCH
  501. bool "Using Touch device drivers"
  502. default n
  503. if RT_USING_TOUCH
  504. config RT_TOUCH_PIN_IRQ
  505. bool "touch irq use pin irq"
  506. default n
  507. endif
  508. config RT_USING_LCD
  509. bool "Using LCD graphic drivers"
  510. default n
  511. menuconfig RT_USING_HWCRYPTO
  512. bool "Using Hardware Crypto drivers"
  513. default n
  514. if RT_USING_HWCRYPTO
  515. config RT_HWCRYPTO_DEFAULT_NAME
  516. string "Hardware crypto device name"
  517. default "hwcryto"
  518. config RT_HWCRYPTO_IV_MAX_SIZE
  519. int "IV max size"
  520. default "16"
  521. config RT_HWCRYPTO_KEYBIT_MAX_SIZE
  522. int "Key max bit length"
  523. default 256
  524. config RT_HWCRYPTO_USING_GCM
  525. bool "Using Hardware GCM"
  526. default n
  527. config RT_HWCRYPTO_USING_AES
  528. bool "Using Hardware AES"
  529. default n
  530. if RT_HWCRYPTO_USING_AES
  531. config RT_HWCRYPTO_USING_AES_ECB
  532. bool "Using Hardware AES ECB mode"
  533. default y
  534. config RT_HWCRYPTO_USING_AES_CBC
  535. bool "Using Hardware AES CBC mode"
  536. default n
  537. config RT_HWCRYPTO_USING_AES_CFB
  538. bool "Using Hardware AES CFB mode"
  539. default n
  540. config RT_HWCRYPTO_USING_AES_CTR
  541. bool "Using Hardware AES CTR mode"
  542. default n
  543. config RT_HWCRYPTO_USING_AES_OFB
  544. bool "Using Hardware AES OFB mode"
  545. default n
  546. endif
  547. config RT_HWCRYPTO_USING_DES
  548. bool "Using Hardware DES"
  549. default n
  550. if RT_HWCRYPTO_USING_DES
  551. config RT_HWCRYPTO_USING_DES_ECB
  552. bool "Using Hardware DES ECB mode"
  553. default y
  554. config RT_HWCRYPTO_USING_DES_CBC
  555. bool "Using Hardware DES CBC mode"
  556. default n
  557. endif
  558. config RT_HWCRYPTO_USING_3DES
  559. bool "Using Hardware 3DES"
  560. default n
  561. if RT_HWCRYPTO_USING_3DES
  562. config RT_HWCRYPTO_USING_3DES_ECB
  563. bool "Using Hardware 3DES ECB mode"
  564. default y
  565. config RT_HWCRYPTO_USING_3DES_CBC
  566. bool "Using Hardware 3DES CBC mode"
  567. default n
  568. endif
  569. config RT_HWCRYPTO_USING_RC4
  570. bool "Using Hardware RC4"
  571. default n
  572. config RT_HWCRYPTO_USING_MD5
  573. bool "Using Hardware MD5"
  574. default n
  575. config RT_HWCRYPTO_USING_SHA1
  576. bool "Using Hardware SHA1"
  577. default n
  578. config RT_HWCRYPTO_USING_SHA2
  579. bool "Using Hardware SHA2"
  580. default n
  581. if RT_HWCRYPTO_USING_SHA2
  582. config RT_HWCRYPTO_USING_SHA2_224
  583. bool "Using Hardware SHA2_224 mode"
  584. default n
  585. config RT_HWCRYPTO_USING_SHA2_256
  586. bool "Using Hardware SHA2_256 mode"
  587. default y
  588. config RT_HWCRYPTO_USING_SHA2_384
  589. bool "Using Hardware SHA2_384 mode"
  590. default n
  591. config RT_HWCRYPTO_USING_SHA2_512
  592. bool "Using Hardware SHA2_512 mode"
  593. default n
  594. endif
  595. config RT_HWCRYPTO_USING_RNG
  596. bool "Using Hardware RNG"
  597. default n
  598. config RT_HWCRYPTO_USING_CRC
  599. bool "Using Hardware CRC"
  600. default n
  601. if RT_HWCRYPTO_USING_CRC
  602. config RT_HWCRYPTO_USING_CRC_07
  603. bool "Using Hardware CRC-8 0x07 polynomial"
  604. default n
  605. config RT_HWCRYPTO_USING_CRC_8005
  606. bool "Using Hardware CRC-16 0x8005 polynomial"
  607. default n
  608. config RT_HWCRYPTO_USING_CRC_1021
  609. bool "Using Hardware CRC-16 0x1021 polynomial"
  610. default n
  611. config RT_HWCRYPTO_USING_CRC_3D65
  612. bool "Using Hardware CRC-16 0x3D65 polynomial"
  613. default n
  614. config RT_HWCRYPTO_USING_CRC_04C11DB7
  615. bool "Using Hardware CRC-32 0x04C11DB7 polynomial"
  616. default n
  617. endif
  618. config RT_HWCRYPTO_USING_BIGNUM
  619. bool "Using Hardware bignum"
  620. default n
  621. if RT_HWCRYPTO_USING_BIGNUM
  622. config RT_HWCRYPTO_USING_BIGNUM_EXPTMOD
  623. bool "Using Hardware bignum expt_mod operation"
  624. default y
  625. config RT_HWCRYPTO_USING_BIGNUM_MULMOD
  626. bool "Using Hardware bignum mul_mod operation"
  627. default y
  628. config RT_HWCRYPTO_USING_BIGNUM_MUL
  629. bool "Using Hardware bignum mul operation"
  630. default n
  631. config RT_HWCRYPTO_USING_BIGNUM_ADD
  632. bool "Using Hardware bignum add operation"
  633. default n
  634. config RT_HWCRYPTO_USING_BIGNUM_SUB
  635. bool "Using Hardware bignum sub operation"
  636. default n
  637. endif
  638. endif
  639. config RT_USING_PULSE_ENCODER
  640. bool "Using PULSE ENCODER device drivers"
  641. default n
  642. config RT_USING_INPUT_CAPTURE
  643. bool "Using INPUT CAPTURE device drivers"
  644. default n
  645. if RT_USING_INPUT_CAPTURE
  646. config RT_INPUT_CAPTURE_RB_SIZE
  647. int "Set input capture ringbuffer size"
  648. default 100
  649. endif
  650. config RT_USING_DEV_BUS
  651. bool "Using Device Bus device drivers"
  652. default y if RT_USING_SMART
  653. default n
  654. menuconfig RT_USING_WIFI
  655. bool "Using Wi-Fi framework"
  656. default n
  657. if RT_USING_WIFI
  658. config RT_WLAN_DEVICE_STA_NAME
  659. string "The device name for station"
  660. default "wlan0"
  661. config RT_WLAN_DEVICE_AP_NAME
  662. string "The device name for ap"
  663. default "wlan1"
  664. config RT_WLAN_SSID_MAX_LENGTH
  665. int "SSID maximum length"
  666. default 32
  667. config RT_WLAN_PASSWORD_MAX_LENGTH
  668. int "Password maximum length"
  669. default 32
  670. config RT_WLAN_DEV_EVENT_NUM
  671. int "Driver events maxcount"
  672. default 2
  673. config RT_WLAN_MANAGE_ENABLE
  674. bool "Connection management Enable"
  675. default y
  676. if RT_WLAN_MANAGE_ENABLE
  677. config RT_WLAN_SCAN_WAIT_MS
  678. int "Set scan timeout time(ms)"
  679. default 10000
  680. config RT_WLAN_CONNECT_WAIT_MS
  681. int "Set connect timeout time(ms)"
  682. default 10000
  683. config RT_WLAN_SCAN_SORT
  684. bool "Automatic sorting of scan results"
  685. default y
  686. config RT_WLAN_MSH_CMD_ENABLE
  687. bool "MSH command Enable"
  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. 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