Kconfig 35 KB

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