Kconfig 36 KB

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