Kconfig 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942
  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. source "$RTT_DIR/components/drivers/usb/cherryusb/Kconfig"
  786. endmenu