Kconfig 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462
  1. menu "Hardware Drivers"
  2. config DRV_DEBUG
  3. bool "Enable drivers debug"
  4. default n
  5. menu "On-chip Peripheral Drivers"
  6. config BSP_USING_DRIVERS_EXAMPLE
  7. bool "Enable drivers example"
  8. default n
  9. if BSP_USING_DRIVERS_EXAMPLE
  10. config BSP_USING_DRIVERS_AUTO_TEST
  11. bool "Enable drivers example"
  12. default n
  13. endif
  14. config BSP_USING_IOPAD
  15. bool "Enable IOPAD"
  16. default y
  17. menuconfig BSP_USING_UART_LAYER
  18. bool "Enable Uart Layer"
  19. default n
  20. select USE_SERIAL # sdk serial component
  21. select RT_USING_SERIAL
  22. if BSP_USING_UART_LAYER
  23. choice
  24. prompt "Select Uart Mode"
  25. config BSP_USING_UART
  26. bool "Standard Uart"
  27. help
  28. Use standard uart communication mode
  29. config BSP_USING_UART_MSG
  30. bool "message-based Uart"
  31. help
  32. Use message-based uart communication
  33. endchoice
  34. if BSP_USING_UART
  35. config RT_USING_UART0
  36. bool "Enable UART0"
  37. default n
  38. config RT_USING_UART1
  39. bool "Enable UART1"
  40. default y
  41. config RT_USING_UART2
  42. bool "Enable UART2"
  43. default n
  44. config RT_USING_UART3
  45. bool "Enable UART3"
  46. default n
  47. endif
  48. if BSP_USING_UART_MSG
  49. config RT_USING_UART0_MSG
  50. bool "Enable UART0_MSG"
  51. default n
  52. config RT_USING_UART1_MSG
  53. bool "Enable UART1_MSG"
  54. default n
  55. config RT_USING_UART2_MSG
  56. bool "Enable UART2_MSG"
  57. default y
  58. endif
  59. endif
  60. menuconfig BSP_USING_SPI_LAYER
  61. menuconfig BSP_USING_SPI_LAYER
  62. bool "Enable SPI Layer"
  63. default n
  64. select RT_USING_SPI
  65. if BSP_USING_SPI_LAYER
  66. choice
  67. prompt "Select SPI Mode"
  68. config BSP_USING_SPI
  69. bool "Standard SPI"
  70. help
  71. Use standard SPI communication mode
  72. config BSP_USING_SPI_MSG
  73. bool "IOP message-based SPI"
  74. help
  75. Use IOP message-based SPI communication
  76. endchoice
  77. if BSP_USING_SPI
  78. config RT_USING_SPIM0
  79. bool "Enable SPIM0"
  80. default n
  81. config RT_USING_SPIM1
  82. bool "Enable SPIM1"
  83. default n
  84. config RT_USING_SPIM2
  85. bool "Enable SPIM2"
  86. default n
  87. config RT_USING_SPIM3
  88. bool "Enable SPIM3"
  89. default n
  90. endif
  91. if BSP_USING_SPI_MSG
  92. config RT_USING_SPIM0_MSG
  93. bool "Enable SPIM0_MSG"
  94. default n
  95. config RT_USING_SPIM1_MSG
  96. bool "Enable SPIM1_MSG"
  97. default n
  98. config RT_USING_SPIM2_MSG
  99. bool "Enable SPIM2_MSG"
  100. default n
  101. config RT_USING_SPIM3_MSG
  102. bool "Enable SPIM3_MSG"
  103. default n
  104. endif
  105. endif
  106. menuconfig BSP_USING_I2C_LAYER
  107. bool "Enable I2C Layer"
  108. default n
  109. select RT_USING_I2C
  110. if BSP_USING_I2C_LAYER
  111. choice
  112. prompt "Select I2C Mode"
  113. config BSP_USING_I2C
  114. bool "Standard I2C"
  115. help
  116. Use standard I2C communication mode
  117. config BSP_USING_I2C_MSG
  118. bool "IOP message-based I2C"
  119. help
  120. Use IOP message-based I2C communication
  121. endchoice
  122. if BSP_USING_I2C
  123. config I2C_USE_MIO
  124. bool "using i2c mio"
  125. default n
  126. select USE_MIO
  127. select ENABLE_MIO
  128. if I2C_USE_MIO
  129. config RT_USING_MIO0
  130. bool "Enable mio0"
  131. default n
  132. config RT_USING_MIO1
  133. bool "Enable mio1"
  134. default n
  135. config RT_USING_MIO2
  136. bool "Enable mio2"
  137. default n
  138. config RT_USING_MIO3
  139. bool "Enable mio3"
  140. default n
  141. config RT_USING_MIO4
  142. bool "Enable mio4"
  143. default n
  144. config RT_USING_MIO5
  145. bool "Enable mio5"
  146. default n
  147. config RT_USING_MIO6
  148. bool "Enable mio6"
  149. default n
  150. config RT_USING_MIO7
  151. bool "Enable mio7"
  152. default n
  153. config RT_USING_MIO8
  154. bool "Enable mio8"
  155. default n
  156. config RT_USING_MIO9
  157. bool "Enable mio9"
  158. default n
  159. config RT_USING_MIO10
  160. bool "Enable mio10"
  161. default n
  162. config RT_USING_MIO11
  163. bool "Enable mio11"
  164. default n
  165. config RT_USING_MIO12
  166. bool "Enable mio12"
  167. default n
  168. config RT_USING_MIO13
  169. bool "Enable mio13"
  170. default n
  171. config RT_USING_MIO14
  172. bool "Enable mio14"
  173. default n
  174. config RT_USING_MIO15
  175. bool "Enable mio15"
  176. default n
  177. endif
  178. config I2C_USE_CONTROLLER
  179. bool "using i2c controller"
  180. default n
  181. if I2C_USE_CONTROLLER
  182. config RT_USING_I2C0
  183. bool "Enable i2c0"
  184. default n
  185. config RT_USING_I2C1
  186. bool "Enable i2c1"
  187. default n
  188. config RT_USING_I2C2
  189. bool "Enable i2c2"
  190. default n
  191. config RT_USING_I2C3
  192. bool "Enable i2c3"
  193. default n
  194. endif
  195. endif
  196. if BSP_USING_I2C_MSG
  197. config RT_USING_I2C0_MSG
  198. bool "Enable i2c0 msg"
  199. default n
  200. config RT_USING_I2C1_MSG
  201. bool "Enable i2c1 msg"
  202. default n
  203. config RT_USING_I2C2_MSG
  204. bool "Enable i2c2 msg"
  205. default n
  206. config RT_USING_I2C3_MSG
  207. bool "Enable i2c3 msg"
  208. default n
  209. endif
  210. endif
  211. menuconfig BSP_USING_CAN
  212. bool "Enable CAN"
  213. default n
  214. select RT_USING_CAN
  215. if BSP_USING_CAN
  216. config RT_USING_CANFD
  217. bool "Enable canfd"
  218. select RT_CAN_USING_CANFD
  219. default n
  220. config RT_USING_FILTER
  221. bool "Enable can filter"
  222. select RT_CAN_USING_HDR
  223. default n
  224. config RT_USING_CAN0
  225. bool "Enable can0"
  226. default n
  227. config RT_USING_CAN1
  228. bool "Enable can1"
  229. default n
  230. endif
  231. menuconfig BSP_USING_GPIO
  232. bool "Enable GPIO"
  233. default n
  234. select RT_USING_PIN
  235. menuconfig BSP_USING_QSPI
  236. bool "Enable QSPI"
  237. default n
  238. select RT_USING_QSPI
  239. select RT_USING_SPI
  240. select RT_USING_PIN
  241. if BSP_USING_QSPI
  242. config RT_USING_QSPI0
  243. bool "Enable qspi0"
  244. default n
  245. if RT_USING_QSPI0
  246. config USING_QSPI_CHANNEL0
  247. bool "using qspi channel_0"
  248. default n
  249. config USING_QSPI_CHANNEL1
  250. bool "using qspi channel_1"
  251. default n
  252. endif
  253. endif
  254. menuconfig BSP_USING_ETH_LAYER
  255. bool "Enable ETH Layer"
  256. default n
  257. if BSP_USING_ETH_LAYER
  258. config RT_LWIP_PBUF_POOL_BUFSIZE
  259. int "The size of each pbuf in the pbuf pool"
  260. range 1500 2000
  261. default 1700
  262. choice
  263. prompt "Select ETH Mode"
  264. config BSP_USING_ETH
  265. bool "Standard ETH"
  266. help
  267. Use standard ETH communication mode
  268. config BSP_USING_ETH_MSG
  269. bool "IOP message-based ETH"
  270. help
  271. Use IOP message-based ETH communication
  272. endchoice
  273. if BSP_USING_ETH
  274. config RT_USING_XMAC0
  275. bool "Enable XMAC0"
  276. default n
  277. config RT_USING_XMAC1
  278. bool "Enable XMAC1"
  279. default n
  280. config RT_USING_XMAC2
  281. bool "Enable XMAC2"
  282. default n
  283. config RT_USING_XMAC3
  284. bool "Enable XMAC3"
  285. default n
  286. endif
  287. if BSP_USING_ETH_MSG
  288. config RT_USING_XMAC0_MSG
  289. bool "Enable XMAC0_MSG"
  290. default n
  291. config RT_USING_XMAC1_MSG
  292. bool "Enable XMAC1_MSG"
  293. default n
  294. config RT_USING_XMAC2_MSG
  295. bool "Enable XMAC2_MSG"
  296. default n
  297. config RT_USING_XMAC3_MSG
  298. bool "Enable XMAC3_MSG"
  299. default n
  300. endif
  301. endif
  302. menuconfig BSP_USING_PWM
  303. bool "Enable PWM"
  304. default n
  305. select RT_USING_PWM
  306. if BSP_USING_PWM
  307. config RT_USING_PWM0
  308. bool "Enable pwm0"
  309. default n
  310. config RT_USING_PWM1
  311. bool "Enable pwm1"
  312. default n
  313. config RT_USING_PWM2
  314. bool "Enable pwm2"
  315. default n
  316. config RT_USING_PWM3
  317. bool "Enable pwm3"
  318. default n
  319. config RT_USING_PWM4
  320. bool "Enable pwm4"
  321. default n
  322. config RT_USING_PWM5
  323. bool "Enable pwm5"
  324. default n
  325. config RT_USING_PWM6
  326. bool "Enable pwm6"
  327. default n
  328. config RT_USING_PWM7
  329. bool "Enable pwm7"
  330. default n
  331. endif
  332. menuconfig BSP_USING_SDIF_LAYER
  333. bool "Enable SDIF Layer"
  334. default n
  335. select RT_USING_SDIO
  336. if BSP_USING_SDIF_LAYER
  337. config BSP_USING_SDCARD_FATFS
  338. bool "Enable SDCARD (FATFS)"
  339. select RT_USING_DFS_ELMFAT
  340. default n
  341. choice
  342. prompt "Select SD Mode"
  343. default BSP_USING_SDIF
  344. config BSP_USING_SDIF
  345. bool "Standard SD"
  346. help
  347. Use standard SD protocol
  348. config BSP_USING_SDIF_MSG
  349. bool "Message-based SD"
  350. help
  351. Use message-based SD communication
  352. endchoice
  353. if (BSP_USING_SDIF || BSP_USING_SDIF_MSG)
  354. config USING_SDIF0
  355. bool "Use SDIF0"
  356. default n
  357. if USING_SDIF0
  358. choice
  359. prompt "Select SD0 Usage"
  360. default USE_SDIF0_TF
  361. config USE_SDIF0_TF
  362. bool "SD0(TF)"
  363. config USE_SDIF0_EMMC
  364. bool "SD0(eMMC)"
  365. endchoice
  366. endif
  367. endif
  368. if (BSP_USING_SDIF)
  369. config USING_SDIF1
  370. bool "Use SDIF1"
  371. default n
  372. if USING_SDIF1
  373. choice
  374. prompt "Select SD1 Usage"
  375. default USE_SDIF1_TF
  376. config USE_SDIF1_TF
  377. bool "SD1(TF)"
  378. config USE_SDIF1_EMMC
  379. bool "SD1(eMMC)"
  380. endchoice
  381. endif
  382. endif
  383. endif
  384. menuconfig BSP_USING_DC
  385. bool "Enable DC"
  386. default n
  387. select RT_USING_DC
  388. if BSP_USING_DC
  389. config RT_USING_DC_CHANNEL0
  390. bool "using dc channel_0"
  391. default n
  392. config RT_USING_DC_CHANNEL1
  393. bool "using dc channel_1"
  394. default n
  395. endif
  396. menuconfig BSP_USING_I2S
  397. bool "Enable I2S"
  398. default n
  399. select RT_USING_AUDIO
  400. select BSP_USING_DEVICE
  401. if BSP_USING_I2S
  402. config RT_I2S_SAMPLERATE
  403. int "The samplerate param"
  404. default 8000
  405. config RT_I2S_SAMPLEBITS
  406. int "The samplebits param"
  407. default 16
  408. config RT_USING_I2S0
  409. bool "Enable i2s0"
  410. default n
  411. endif
  412. menuconfig BSP_USING_DEVICE
  413. bool "Enable Device"
  414. default n
  415. if BSP_USING_DEVICE
  416. config BSP_USING_ES8336
  417. bool "Enable ES8336"
  418. default n
  419. config BSP_USING_ES8388
  420. bool "Enable ES8388"
  421. default n
  422. endif
  423. endmenu
  424. menu "Board extended module Drivers"
  425. endmenu
  426. endmenu