Kconfig 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  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_IOPAD
  7. bool "Enable IOPAD"
  8. default y
  9. menuconfig BSP_USING_UART
  10. bool "Enable UART"
  11. default y
  12. select USE_SERIAL # sdk serial component
  13. select RT_USING_SERIAL
  14. if BSP_USING_UART
  15. config RT_USING_UART0
  16. bool "Enable UART0"
  17. default n
  18. config RT_USING_UART1
  19. bool "Enable UART1"
  20. default y
  21. config RT_USING_UART2
  22. bool "Enable UART2"
  23. default n
  24. config RT_USING_UART3
  25. bool "Enable UART3"
  26. default n
  27. endif
  28. menuconfig BSP_USING_SPI
  29. bool "Enable Spi"
  30. default n
  31. select RT_USING_SPI
  32. if BSP_USING_SPI
  33. config RT_USING_SPIM0
  34. bool "Enable spim0"
  35. default n
  36. config RT_USING_SPIM1
  37. bool "Enable spim1"
  38. default n
  39. config RT_USING_SPIM2
  40. bool "Enable spim2"
  41. default n
  42. config RT_USING_SPIM3
  43. bool "Enable spim3"
  44. default n
  45. endif
  46. menuconfig BSP_USING_CAN
  47. bool "Enable CAN"
  48. default n
  49. select RT_USING_CAN
  50. if BSP_USING_CAN
  51. config RT_USING_CANFD
  52. bool "Enable canfd"
  53. select RT_CAN_USING_CANFD
  54. default n
  55. config RT_USING_FILTER
  56. bool "Enable can filter"
  57. select RT_CAN_USING_HDR
  58. default n
  59. config RT_USING_CAN0
  60. bool "Enable can0"
  61. default n
  62. config RT_USING_CAN1
  63. bool "Enable can1"
  64. default n
  65. endif
  66. menuconfig BSP_USING_GPIO
  67. bool "Enable GPIO"
  68. default n
  69. select RT_USING_PIN
  70. menuconfig BSP_USING_QSPI
  71. bool "Enable QSPI"
  72. default n
  73. select RT_USING_QSPI
  74. select RT_USING_SPI
  75. select RT_USING_PIN
  76. if BSP_USING_QSPI
  77. config RT_USING_QSPI0
  78. bool "Enable qspi0"
  79. default n
  80. if RT_USING_QSPI0
  81. config USING_QSPI_CHANNEL0
  82. bool "using qspi channel_0"
  83. default n
  84. config USING_QSPI_CHANNEL1
  85. bool "using qspi channel_1"
  86. default n
  87. endif
  88. endif
  89. menuconfig BSP_USING_ETH
  90. bool "Enable ETH"
  91. default n
  92. if BSP_USING_ETH
  93. config RT_LWIP_PBUF_POOL_BUFSIZE
  94. int "The size of each pbuf in the pbuf pool"
  95. range 1500 2000
  96. default 1700
  97. endif
  98. menuconfig BSP_USING_PWM
  99. bool "Enable PWM"
  100. default n
  101. select RT_USING_PWM
  102. if BSP_USING_PWM
  103. config RT_USING_PWM0
  104. bool "Enable pwm0"
  105. default n
  106. config RT_USING_PWM1
  107. bool "Enable pwm1"
  108. default n
  109. config RT_USING_PWM2
  110. bool "Enable pwm2"
  111. default n
  112. config RT_USING_PWM3
  113. bool "Enable pwm3"
  114. default n
  115. config RT_USING_PWM4
  116. bool "Enable pwm4"
  117. default n
  118. config RT_USING_PWM5
  119. bool "Enable pwm5"
  120. default n
  121. config RT_USING_PWM6
  122. bool "Enable pwm6"
  123. default n
  124. config RT_USING_PWM7
  125. bool "Enable pwm7"
  126. default n
  127. endif
  128. menuconfig BSP_USING_I2C
  129. bool "Enable I2C"
  130. default n
  131. select RT_USING_I2C
  132. if BSP_USING_I2C
  133. config I2C_USE_MIO
  134. bool "using i2c mio"
  135. default n
  136. select USE_MIO
  137. select ENABLE_MIO
  138. if I2C_USE_MIO
  139. config RT_USING_MIO0
  140. bool "Enable mio0"
  141. default n
  142. config RT_USING_MIO1
  143. bool "Enable mio1"
  144. default n
  145. config RT_USING_MIO2
  146. bool "Enable mio2"
  147. default n
  148. config RT_USING_MIO3
  149. bool "Enable mio3"
  150. default n
  151. config RT_USING_MIO4
  152. bool "Enable mio4"
  153. default n
  154. config RT_USING_MIO5
  155. bool "Enable mio5"
  156. default n
  157. config RT_USING_MIO6
  158. bool "Enable mio6"
  159. default n
  160. config RT_USING_MIO7
  161. bool "Enable mio7"
  162. default n
  163. config RT_USING_MIO8
  164. bool "Enable mio8"
  165. default n
  166. config RT_USING_MIO9
  167. bool "Enable mio9"
  168. default n
  169. config RT_USING_MIO10
  170. bool "Enable mio10"
  171. default n
  172. config RT_USING_MIO11
  173. bool "Enable mio11"
  174. default n
  175. config RT_USING_MIO12
  176. bool "Enable mio12"
  177. default n
  178. config RT_USING_MIO13
  179. bool "Enable mio13"
  180. default n
  181. config RT_USING_MIO14
  182. bool "Enable mio14"
  183. default n
  184. config RT_USING_MIO15
  185. bool "Enable mio15"
  186. default n
  187. endif
  188. config I2C_USE_CONTROLLER
  189. bool "using i2c controller"
  190. default n
  191. if I2C_USE_CONTROLLER
  192. config RT_USING_I2C0
  193. bool "Enable i2c0"
  194. default n
  195. config RT_USING_I2C1
  196. bool "Enable i2c1"
  197. default n
  198. config RT_USING_I2C2
  199. bool "Enable i2c2"
  200. default n
  201. config RT_USING_I2C3
  202. bool "Enable i2c3"
  203. default n
  204. endif
  205. endif
  206. menuconfig BSP_USING_SDIF
  207. bool "Enable SDIF"
  208. default n
  209. select RT_USING_SDIO
  210. if BSP_USING_SDIF
  211. config BSP_USING_SDCARD_FATFS
  212. bool "Enable SDCARD (FATFS)"
  213. select RT_USING_DFS_ELMFAT
  214. default n
  215. config USING_SDIF0
  216. bool "Use SDIF0"
  217. if USING_SDIF0
  218. choice
  219. prompt "Select SD0 Usage"
  220. default USE_SDIF0_TF
  221. config USE_SDIF0_TF
  222. bool "SD0(TF)"
  223. config USE_SDIF0_EMMC
  224. bool "SD0(eMMC)"
  225. endchoice
  226. endif
  227. config USING_SDIF1
  228. bool "Use SDIF1"
  229. if USING_SDIF1
  230. choice
  231. prompt "Select SD1 Usage"
  232. default USE_SDIF1_TF
  233. config USE_SDIF1_TF
  234. bool "SD1(TF)"
  235. config USE_SDIF1_EMMC
  236. bool "SD1(eMMC)"
  237. endchoice
  238. endif
  239. endif
  240. menuconfig BSP_USING_DC
  241. bool "Enable DC"
  242. default n
  243. select RT_USING_DC
  244. if BSP_USING_DC
  245. config RT_USING_DC_CHANNEL0
  246. bool "using dc channel_0"
  247. default n
  248. config RT_USING_DC_CHANNEL1
  249. bool "using dc channel_1"
  250. default n
  251. endif
  252. menuconfig BSP_USING_XHCI
  253. bool "Enable USB3.0(XHCI)"
  254. default n
  255. select PKG_USING_CHERRYUSB
  256. if BSP_USING_XHCI
  257. config RT_USING_XHCI0
  258. bool "Enable xhci0"
  259. default y if BSP_USING_XHCI
  260. endif
  261. menuconfig BSP_USING_PUSB2
  262. bool "Enable USB2.0(PUSB2)"
  263. default n
  264. select PKG_USING_CHERRYUSB
  265. if BSP_USING_PUSB2
  266. config RT_USING_PUSB20
  267. bool "Enable pusb20"
  268. default y if BSP_USING_PUSB2
  269. endif
  270. endmenu
  271. menu "Board extended module Drivers"
  272. endmenu
  273. endmenu