Kconfig 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. menu "Platform Driver Configuration"
  2. menu "Select UART Driver"
  3. if RT_USING_SERIAL
  4. config BSP_USING_UART1
  5. bool "Enable UART1"
  6. default y
  7. config BSP_USING_UART2
  8. bool "Enable UART2"
  9. default n
  10. config BSP_USING_UART3
  11. bool "Enable UART3"
  12. default n
  13. config BSP_USING_UART4
  14. bool "Enable UART4"
  15. default n
  16. config BSP_USING_UART5
  17. bool "Enable UART5"
  18. default n
  19. config BSP_USING_UART6
  20. bool "Enable UART6"
  21. default n
  22. config BSP_USING_UART7
  23. bool "Enable UART7"
  24. default n
  25. config BSP_USING_UART8
  26. bool "Enable UART8"
  27. default n
  28. endif
  29. endmenu
  30. menu "Select SPI Driver"
  31. config BSP_USING_SPI
  32. bool "Enable SPI"
  33. select RT_USING_SPI
  34. default n
  35. if BSP_USING_SPI
  36. config BSP_USING_SPI1
  37. bool "Enable SPI1"
  38. default n
  39. config BSP_USING_SPI2
  40. bool "Enable SPI2"
  41. default n
  42. config BSP_USING_SPI3
  43. bool "Enable SPI3"
  44. default y
  45. config BSP_USING_SPI4
  46. bool "Enable SPI4"
  47. default n
  48. endif
  49. endmenu
  50. menu "Select I2C Driver"
  51. config BSP_USING_I2C
  52. bool "Enable I2C"
  53. select RT_USING_I2C
  54. default n
  55. if BSP_USING_I2C
  56. config BSP_USING_I2C1
  57. bool "Enable I2C1"
  58. default n
  59. if BSP_USING_I2C1
  60. config I2C1_BAUD_RATE
  61. int "Set i2c1 baud rate (HZ)"
  62. default 100000
  63. endif
  64. config BSP_USING_I2C2
  65. bool "Enable I2C2"
  66. default n
  67. if BSP_USING_I2C2
  68. config I2C2_BAUD_RATE
  69. int "Set i2c2 baud rate (HZ)"
  70. default 100000
  71. endif
  72. config BSP_USING_I2C3
  73. bool "Enable I2C3"
  74. default n
  75. if BSP_USING_I2C3
  76. config I2C3_BAUD_RATE
  77. int "Set i2c3 baud rate (HZ)"
  78. default 100000
  79. endif
  80. config BSP_USING_I2C4
  81. bool "Enable I2C4"
  82. default n
  83. if BSP_USING_I2C4
  84. config I2C4_BAUD_RATE
  85. int "Set i2c4 baud rate (HZ)"
  86. default 100000
  87. endif
  88. endif
  89. endmenu
  90. menu "Select LCD Driver"
  91. config BSP_USING_LCD
  92. bool "Enable LCD"
  93. select RT_USING_LCD
  94. default y
  95. if BSP_USING_LCD
  96. config BSP_LCD_WIDTH
  97. int "Width of LCD panel"
  98. default 1000
  99. config BSP_LCD_HEIGHT
  100. int "Height of LCD panel"
  101. default 600
  102. config BSP_LCD_VSW
  103. int "value of LCD_VSW"
  104. default 2
  105. config BSP_LCD_VBP
  106. int "value of LCD_VBP"
  107. default 23
  108. config BSP_LCD_VFP
  109. int "value of LCD_VFP"
  110. default 22
  111. config BSP_LCD_HSW
  112. int "value of LCD_HSW"
  113. default 2
  114. config BSP_LCD_HBP
  115. int "value of LCD_HBP"
  116. default 46
  117. config BSP_LCD_HFP
  118. int "value of LCD_HFP"
  119. default 210
  120. config BSP_LCD_PLL_DIV
  121. int "value of PLL DIV"
  122. default 8
  123. endif
  124. endmenu
  125. menu "Select SDHC Driver"
  126. if RT_USING_SDIO
  127. config RT_USING_SDIO1
  128. bool "Enable SDHC1"
  129. default n
  130. config RT_USING_SDIO2
  131. bool "Enable SDHC2"
  132. default n
  133. endif
  134. endmenu
  135. menu "Select RTC Driver"
  136. if RT_USING_RTC
  137. config BSP_USING_ONCHIP_RTC
  138. bool "Enable On-Chip RTC"
  139. default y
  140. endif
  141. endmenu
  142. menu "Select PWM Driver"
  143. config RT_USING_PWM
  144. bool "Enable PWM"
  145. default n
  146. if RT_USING_PWM
  147. config BSP_USING_PWM1
  148. bool "Enable PWM1"
  149. default n
  150. config BSP_USING_PWM2
  151. bool "Enable PWM2"
  152. default n
  153. config BSP_USING_PWM3
  154. bool "Enable PWM3"
  155. default n
  156. config BSP_USING_PWM4
  157. bool "Enable PWM4"
  158. default n
  159. endif
  160. endmenu
  161. menu "Select ADC Driver"
  162. config RT_USING_ADC
  163. bool "Enable ADC"
  164. default n
  165. if RT_USING_ADC
  166. config BSP_USING_ADC1_1
  167. bool "Enable ADC1 CH1"
  168. default n
  169. config BSP_USING_ADC1_2
  170. bool "Enable ADC1 CH2"
  171. default n
  172. config BSP_USING_ADC1_3
  173. bool "Enable ADC1 CH3"
  174. default n
  175. config BSP_USING_ADC1_4
  176. bool "Enable ADC1 CH4"
  177. default n
  178. endif
  179. endmenu
  180. menu "Select WDT Driver"
  181. if RT_USING_WDT
  182. config RT_USING_WDT1
  183. bool "Enable WDT1"
  184. default n
  185. config RT_USING_WDT2
  186. bool "Enable WDT2"
  187. default n
  188. config RT_USING_WDT3
  189. bool "Enable WDT3"
  190. default n
  191. endif
  192. endmenu
  193. menu "Select ENET Driver"
  194. config RT_USING_ENET1
  195. bool "Enable ENET1"
  196. default y
  197. config RT_USING_ENET2
  198. bool "Enable ENET2"
  199. default n
  200. endmenu
  201. menu "Select Wifi Driver"
  202. config RT_USING_WIFI_RW007
  203. bool "Enable wifi RW007"
  204. select BSP_USING_SPI2
  205. select PKG_USING_RW007
  206. select RT_USING_WIFI
  207. default n
  208. if RT_USING_WIFI_RW007
  209. config RW007_DAFAULT_SSID
  210. string "default ssid"
  211. default "rt-thread"
  212. config RW007_DAFAULT_PASSWARD
  213. string "default passward"
  214. default "12345678"
  215. endif
  216. endmenu
  217. menu "Select USB Driver"
  218. config BSP_USING_USB_DEVICE
  219. bool "Enable USB device"
  220. default y
  221. endmenu
  222. endmenu