Kconfig 36 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171
  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_AUTO_CONNECT_ENABLE
  687. bool "Auto connect Enable"
  688. select RT_WLAN_CFG_ENABLE
  689. select RT_WLAN_WORK_THREAD_ENABLE
  690. default y
  691. if RT_WLAN_AUTO_CONNECT_ENABLE
  692. config AUTO_CONNECTION_PERIOD_MS
  693. int "Auto connect period(ms)"
  694. default 2000
  695. endif
  696. endif
  697. config RT_WLAN_CFG_ENABLE
  698. bool "WiFi information automatically saved Enable"
  699. default y
  700. if RT_WLAN_CFG_ENABLE
  701. config RT_WLAN_CFG_INFO_MAX
  702. int "Maximum number of WiFi information automatically saved"
  703. default 3
  704. endif
  705. config RT_WLAN_PROT_ENABLE
  706. bool "Transport protocol manage Enable"
  707. default y
  708. if RT_WLAN_PROT_ENABLE
  709. config RT_WLAN_PROT_NAME_LEN
  710. int "Transport protocol name length"
  711. default 8
  712. config RT_WLAN_PROT_MAX
  713. int "Transport protocol maxcount"
  714. default 2
  715. config RT_WLAN_DEFAULT_PROT
  716. string "Default transport protocol"
  717. default "lwip"
  718. config RT_WLAN_PROT_LWIP_ENABLE
  719. bool "LWIP transport protocol Enable"
  720. select RT_USING_LWIP
  721. default y
  722. if RT_WLAN_PROT_LWIP_ENABLE
  723. config RT_WLAN_PROT_LWIP_NAME
  724. string "LWIP transport protocol name"
  725. default "lwip"
  726. config RT_WLAN_PROT_LWIP_PBUF_FORCE
  727. bool "Forced use of PBUF transmission"
  728. default n
  729. endif
  730. endif
  731. config RT_WLAN_WORK_THREAD_ENABLE
  732. bool "WLAN work queue thread Enable"
  733. default y
  734. if RT_WLAN_WORK_THREAD_ENABLE
  735. config RT_WLAN_WORKQUEUE_THREAD_NAME
  736. string "WLAN work queue thread name"
  737. default "wlan"
  738. config RT_WLAN_WORKQUEUE_THREAD_SIZE
  739. int "WLAN work queue thread size"
  740. default 2048
  741. config RT_WLAN_WORKQUEUE_THREAD_PRIO
  742. int "WLAN work queue thread priority"
  743. default 15
  744. endif
  745. menuconfig RT_WLAN_DEBUG
  746. bool "Enable WLAN Debugging Options"
  747. default n
  748. if RT_WLAN_DEBUG
  749. config RT_WLAN_CMD_DEBUG
  750. bool "Enable Debugging of wlan_cmd.c"
  751. default n
  752. config RT_WLAN_MGNT_DEBUG
  753. bool "Enable Debugging of wlan_mgnt.c"
  754. default n
  755. config RT_WLAN_DEV_DEBUG
  756. bool "Enable Debugging of wlan_dev.c"
  757. default n
  758. config RT_WLAN_PROT_DEBUG
  759. bool "Enable Debugging of wlan_prot.c"
  760. default n
  761. config RT_WLAN_CFG_DEBUG
  762. bool "Enable Debugging of wlan_cfg.c"
  763. default n
  764. config RT_WLAN_LWIP_DEBUG
  765. bool "Enable Debugging of wlan_lwip.c"
  766. default n
  767. endif
  768. endif
  769. menuconfig RT_USING_VIRTIO
  770. bool "Using VirtIO device drivers"
  771. default n
  772. if RT_USING_VIRTIO
  773. choice
  774. prompt "VirtIO Version"
  775. default RT_USING_VIRTIO10
  776. config RT_USING_VIRTIO10
  777. bool "VirtIO v1.0"
  778. endchoice
  779. config RT_USING_VIRTIO_MMIO_ALIGN
  780. bool "Using VirtIO MMIO alignment"
  781. default y
  782. config RT_USING_VIRTIO_BLK
  783. bool "Using VirtIO BLK"
  784. default y
  785. config RT_USING_VIRTIO_NET
  786. bool "Using VirtIO NET"
  787. default y
  788. menuconfig RT_USING_VIRTIO_CONSOLE
  789. bool "Using VirtIO Console"
  790. default y
  791. if RT_USING_VIRTIO_CONSOLE
  792. config RT_USING_VIRTIO_CONSOLE_PORT_MAX_NR
  793. int "Max number of port in VirtIO Console"
  794. default 4
  795. endif
  796. config RT_USING_VIRTIO_GPU
  797. bool "Using VirtIO GPU"
  798. default y
  799. config RT_USING_VIRTIO_INPUT
  800. bool "Using VirtIO Input"
  801. default y
  802. endif
  803. source "$RTT_DIR/components/drivers/ofw/Kconfig"
  804. source "$RTT_DIR/components/drivers/pic/Kconfig"
  805. source "$RTT_DIR/components/drivers/pin/Kconfig"
  806. source "$RTT_DIR/components/drivers/pinctrl/Kconfig"
  807. source "$RTT_DIR/components/drivers/ktime/Kconfig"
  808. source "$RTT_DIR/components/drivers/clk/Kconfig"
  809. source "$RTT_DIR/components/drivers/hwtimer/Kconfig"
  810. menu "Using USB"
  811. config RT_USING_USB
  812. bool
  813. default n
  814. config RT_USING_USB_HOST
  815. bool "Using USB host"
  816. default n
  817. select RT_USING_USB
  818. if RT_USING_USB_HOST
  819. config RT_USBH_MSTORAGE
  820. bool "Enable Udisk Drivers"
  821. default n
  822. if RT_USBH_MSTORAGE
  823. config UDISK_MOUNTPOINT
  824. string "Udisk mount dir"
  825. default "/"
  826. endif
  827. config RT_USBH_HID
  828. bool "Enable HID Drivers"
  829. default n
  830. if RT_USBH_HID
  831. config RT_USBH_HID_MOUSE
  832. bool "Enable HID mouse protocol"
  833. default n
  834. config RT_USBH_HID_KEYBOARD
  835. bool "Enable HID keyboard protocol"
  836. default n
  837. endif
  838. endif
  839. config RT_USING_USB_DEVICE
  840. bool "Using USB device"
  841. default n
  842. select RT_USING_USB
  843. if RT_USING_USB_DEVICE || RT_USING_USB_HOST
  844. config RT_USBD_THREAD_STACK_SZ
  845. int "usb thread stack size"
  846. default 4096
  847. endif
  848. if RT_USING_USB_DEVICE
  849. config USB_VENDOR_ID
  850. hex "USB Vendor ID"
  851. default 0x0FFE
  852. config USB_PRODUCT_ID
  853. hex "USB Product ID"
  854. default 0x0001
  855. config RT_USB_DEVICE_COMPOSITE
  856. bool "Enable composite device"
  857. default n
  858. choice
  859. prompt "Device type"
  860. default _RT_USB_DEVICE_NONE
  861. depends on !RT_USB_DEVICE_COMPOSITE
  862. config _RT_USB_DEVICE_NONE
  863. bool "Using custom class by register interface"
  864. select RT_USB_DEVICE_NONE
  865. config _RT_USB_DEVICE_CDC
  866. bool "Enable to use device as CDC device"
  867. select RT_USB_DEVICE_CDC
  868. config _RT_USB_DEVICE_MSTORAGE
  869. bool "Enable to use device as Mass Storage device"
  870. select RT_USB_DEVICE_MSTORAGE
  871. config _RT_USB_DEVICE_HID
  872. bool "Enable to use device as HID device"
  873. select RT_USB_DEVICE_HID
  874. config _RT_USB_DEVICE_RNDIS
  875. bool "Enable to use device as rndis device"
  876. select RT_USB_DEVICE_RNDIS
  877. depends on RT_USING_LWIP
  878. config _RT_USB_DEVICE_ECM
  879. bool "Enable to use device as ecm device"
  880. select RT_USB_DEVICE_ECM
  881. depends on RT_USING_LWIP
  882. config _RT_USB_DEVICE_WINUSB
  883. bool "Enable to use device as winusb device"
  884. select RT_USB_DEVICE_WINUSB
  885. config _RT_USB_DEVICE_AUDIO
  886. bool "Enable to use device as audio device"
  887. select RT_USB_DEVICE_AUDIO
  888. endchoice
  889. if RT_USB_DEVICE_COMPOSITE
  890. config RT_USB_DEVICE_CDC
  891. bool "Enable to use device as CDC device"
  892. default n
  893. config RT_USB_DEVICE_NONE
  894. bool
  895. default y
  896. config RT_USB_DEVICE_MSTORAGE
  897. bool "Enable to use device as Mass Storage device"
  898. default n
  899. config RT_USB_DEVICE_HID
  900. bool "Enable to use device as HID device"
  901. default n
  902. config RT_USB_DEVICE_RNDIS
  903. bool "Enable to use device as rndis device"
  904. default n
  905. depends on RT_USING_LWIP
  906. config RT_USB_DEVICE_ECM
  907. bool "Enable to use device as ecm device"
  908. default n
  909. depends on RT_USING_LWIP
  910. config RT_USB_DEVICE_WINUSB
  911. bool "Enable to use device as winusb device"
  912. default n
  913. config RT_USB_DEVICE_AUDIO
  914. bool "Enable to use device as audio device"
  915. default n
  916. endif
  917. if RT_USB_DEVICE_CDC
  918. config RT_VCOM_TASK_STK_SIZE
  919. int "virtual com thread stack size"
  920. default 512
  921. config RT_CDC_RX_BUFSIZE
  922. int "virtual com rx buffer size"
  923. default 128
  924. config RT_VCOM_TX_USE_DMA
  925. bool "Enable to use dma for vcom tx"
  926. default n
  927. config RT_VCOM_SERNO
  928. string "serial number of virtual com"
  929. default "32021919830108"
  930. config RT_VCOM_SER_LEN
  931. int "serial number length of virtual com"
  932. default 14
  933. config RT_VCOM_TX_TIMEOUT
  934. int "tx timeout(ticks) of virtual com"
  935. default 1000
  936. endif
  937. if RT_USB_DEVICE_WINUSB
  938. config RT_WINUSB_GUID
  939. string "Guid for winusb"
  940. default "{6860DC3C-C05F-4807-8807-1CA861CC1D66}"
  941. endif
  942. if RT_USB_DEVICE_MSTORAGE
  943. config RT_USB_MSTORAGE_DISK_NAME
  944. string "msc class disk name"
  945. default "flash0"
  946. endif
  947. if RT_USB_DEVICE_RNDIS
  948. config RNDIS_DELAY_LINK_UP
  949. bool "Delay linkup media connection"
  950. select RT_USING_TIMER_SOFT
  951. default n
  952. endif
  953. if RT_USB_DEVICE_HID
  954. config RT_USB_DEVICE_HID_KEYBOARD
  955. bool "Use to HID device as Keyboard"
  956. default n
  957. if RT_USB_DEVICE_HID_KEYBOARD
  958. config RT_USB_DEVICE_HID_KEYBOARD_NUMBER
  959. int "Number of Keyboard(max 3)"
  960. default 1
  961. range 1 3
  962. endif
  963. config RT_USB_DEVICE_HID_MOUSE
  964. bool "Use to HID device as Mouse"
  965. default n
  966. config RT_USB_DEVICE_HID_GENERAL
  967. bool "Use to HID device as General HID device"
  968. default y
  969. if RT_USB_DEVICE_HID_GENERAL
  970. config RT_USB_DEVICE_HID_GENERAL_OUT_REPORT_LENGTH
  971. int "General HID device out report length"
  972. default 63
  973. range 0 63
  974. config RT_USB_DEVICE_HID_GENERAL_IN_REPORT_LENGTH
  975. int "General HID device in report length"
  976. default 63
  977. range 0 63
  978. endif
  979. config RT_USB_DEVICE_HID_MEDIA
  980. bool "Use to HID device as media keyboard"
  981. default y
  982. endif
  983. if RT_USB_DEVICE_AUDIO
  984. config RT_USB_DEVICE_AUDIO_MIC
  985. bool "Use usb mic device as audio device"
  986. default n
  987. if RT_USB_DEVICE_AUDIO_MIC
  988. config RT_USBD_MIC_DEVICE_NAME
  989. string "audio mic device name"
  990. default "mic0"
  991. endif
  992. config RT_USB_DEVICE_AUDIO_SPEAKER
  993. bool "Use usb speaker device as audio device"
  994. default n
  995. if RT_USB_DEVICE_AUDIO_SPEAKER
  996. config RT_USBD_SPEAKER_DEVICE_NAME
  997. string "audio speaker device name"
  998. default "sound0"
  999. endif
  1000. endif
  1001. endif
  1002. endmenu
  1003. endmenu