Kconfig 36 KB

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