Kconfig 8.4 KB

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