Kconfig 36 KB

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