Kconfig 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. menu "Hardware Drivers"
  2. config DRV_DEBUG
  3. bool "Enable drivers debug"
  4. default n
  5. menu "On-chip Peripheral Drivers"
  6. menuconfig 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_UART1
  16. bool "Enable UART1"
  17. default y
  18. config RT_USING_UART0
  19. bool "Enable UART0"
  20. default n
  21. endif
  22. menuconfig BSP_USING_SPI
  23. bool "Enable Spi"
  24. default n
  25. select RT_USING_SPI
  26. if BSP_USING_SPI
  27. config RT_USING_SPIM0
  28. bool "Enable spim0"
  29. default n
  30. config RT_USING_SPIM1
  31. bool "Enable spim1"
  32. default n
  33. config RT_USING_SPIM2
  34. bool "Enable spim2"
  35. default n
  36. config RT_USING_SPIM3
  37. bool "Enable spim3"
  38. default n
  39. endif
  40. menuconfig BSP_USING_CAN
  41. bool "Enable CAN"
  42. default n
  43. select RT_USING_CAN
  44. if BSP_USING_CAN
  45. config RT_USING_CANFD
  46. bool "Enable canfd"
  47. select RT_CAN_USING_CANFD
  48. default n
  49. config RT_USING_FILTER
  50. bool "Enable can filter"
  51. select RT_CAN_USING_HDR
  52. default n
  53. config RT_USING_CAN0
  54. bool "Enable can0"
  55. default n
  56. config RT_USING_CAN1
  57. bool "Enable can1"
  58. default n
  59. config RT_USING_CAN2
  60. bool "Enable can2"
  61. default n
  62. endif
  63. menuconfig BSP_USING_GPIO
  64. bool "Enable GPIO"
  65. default n
  66. select RT_USING_PIN
  67. menuconfig BSP_USING_QSPI
  68. bool "Enable QSPI"
  69. default n
  70. select RT_USING_QSPI
  71. select RT_USING_SPI
  72. select RT_USING_PIN
  73. if BSP_USING_QSPI
  74. config USING_QSPI_CHANNEL0
  75. bool "using qspi channel_0"
  76. default n
  77. config USING_QSPI_CHANNEL1
  78. bool "using qspi channel_1"
  79. default n
  80. endif
  81. menuconfig BSP_USING_ETH
  82. bool "Enable ETH"
  83. default n
  84. if BSP_USING_ETH
  85. config RT_LWIP_PBUF_POOL_BUFSIZE
  86. int "The size of each pbuf in the pbuf pool"
  87. range 1500 2000
  88. default 1700
  89. endif
  90. menuconfig BSP_USING_PWM
  91. bool "Enable PWM"
  92. default n
  93. select RT_USING_PWM
  94. if BSP_USING_PWM
  95. config RT_USING_PWM0
  96. bool "Enable pwm0"
  97. default n
  98. config RT_USING_PWM1
  99. bool "Enable pwm1"
  100. default n
  101. config RT_USING_PWM2
  102. bool "Enable pwm2"
  103. default n
  104. config RT_USING_PWM3
  105. bool "Enable pwm3"
  106. default n
  107. config RT_USING_PWM4
  108. bool "Enable pwm4"
  109. default n
  110. config RT_USING_PWM5
  111. bool "Enable pwm5"
  112. default n
  113. config RT_USING_PWM6
  114. bool "Enable pwm6"
  115. default n
  116. endif
  117. menuconfig BSP_USING_I2C
  118. bool "Enable I2C"
  119. default n
  120. select RT_USING_I2C
  121. if BSP_USING_I2C
  122. config I2C_USE_MIO
  123. bool "using i2c mio"
  124. default n
  125. select USE_MIO
  126. select ENABLE_MIO
  127. if I2C_USE_MIO
  128. config RT_USING_MIO0
  129. bool "Enable mio0"
  130. default n
  131. config RT_USING_MIO1
  132. bool "Enable mio1"
  133. default n
  134. config RT_USING_MIO2
  135. bool "Enable mio2"
  136. default n
  137. config RT_USING_MIO3
  138. bool "Enable mio3"
  139. default n
  140. config RT_USING_MIO4
  141. bool "Enable mio4"
  142. default n
  143. config RT_USING_MIO5
  144. bool "Enable mio5"
  145. default n
  146. config RT_USING_MIO6
  147. bool "Enable mio6"
  148. default n
  149. config RT_USING_MIO7
  150. bool "Enable mio7"
  151. default n
  152. config RT_USING_MIO8
  153. bool "Enable mio8"
  154. default n
  155. config RT_USING_MIO9
  156. bool "Enable mio9"
  157. default n
  158. config RT_USING_MIO10
  159. bool "Enable mio10"
  160. default n
  161. config RT_USING_MIO11
  162. bool "Enable mio11"
  163. default n
  164. config RT_USING_MIO12
  165. bool "Enable mio12"
  166. default n
  167. config RT_USING_MIO13
  168. bool "Enable mio13"
  169. default n
  170. config RT_USING_MIO14
  171. bool "Enable mio14"
  172. default n
  173. config RT_USING_MIO15
  174. bool "Enable mio15"
  175. default n
  176. endif
  177. config I2C_USE_CONTROLLER
  178. bool "using i2c controller"
  179. default n
  180. if I2C_USE_CONTROLLER
  181. config RT_USING_I2C0
  182. bool "Enable i2c0"
  183. default n
  184. config RT_USING_I2C1
  185. bool "Enable i2c1"
  186. default n
  187. config RT_USING_I2C2
  188. bool "Enable i2c2"
  189. default n
  190. endif
  191. endif
  192. menuconfig BSP_USING_SDIF
  193. bool "Enable SDIF"
  194. default n
  195. select RT_USING_SDIO
  196. if BSP_USING_SDIF
  197. config BSP_USING_SDCARD_FATFS
  198. bool "Enable SDCARD (FATFS)"
  199. select RT_USING_DFS_ELMFAT
  200. default n
  201. if BSP_USING_SDCARD_FATFS
  202. config BSP_USING_SDCARD_PARTITION
  203. string "Set SDCARD (FATFS) partition index"
  204. default "sd0"
  205. endif
  206. choice
  207. prompt "Choose a card to mount"
  208. default USING_SDIF1
  209. config USING_SDIF0
  210. bool "Use SDIF0"
  211. config USING_SDIF1
  212. bool "Use SDIF1"
  213. config USING_EMMC
  214. bool "Use EMMC"
  215. endchoice
  216. endif
  217. endmenu
  218. menu "Board extended module Drivers"
  219. endmenu
  220. endmenu