Kconfig 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337
  1. menu "Hardware Drivers Config"
  2. menu "Onboard Peripheral Drivers"
  3. config BSP_USING_STLINK_TO_USART
  4. bool "Enable STLINK TO USART (uart4)"
  5. select BSP_USING_UART
  6. select BSP_USING_UART4
  7. default y
  8. config BSP_USING_EXTI
  9. bool "Enable exti sample"
  10. default n
  11. config BSP_USING_PMIC
  12. bool "Enable PMIC"
  13. select BSP_USING_I2C
  14. select BSP_USING_I2C3
  15. default y
  16. config BSP_USING_PWR
  17. bool "Enable PM (power control)"
  18. select BSP_USING_LPTIM
  19. select BSP_USING_LPTIM1
  20. default n
  21. config BSP_USING_NAND
  22. bool "Enable FMC (MT29F8G08ABACAH4)"
  23. select RT_USING_FMC
  24. select RT_USING_MTD_NAND
  25. select RT_MTD_NAND_DEBUG
  26. default n
  27. config BSP_USING_QSPI_FLASH
  28. bool "Enable QSPI FLASH (MX25L51245G)"
  29. select BSP_USING_QSPI
  30. select RT_USING_SFUD
  31. select RT_SFUD_USING_QSPI
  32. default n
  33. config BSP_USING_OPENAMP
  34. bool "Enable OpenAMP"
  35. select RT_USING_OPENAMP
  36. default n
  37. config BSP_USING_GBE
  38. bool "Enable Ethernet"
  39. default n
  40. select RT_USING_LWIP
  41. menuconfig BSP_USING_SDMMC
  42. bool "Enable SDMMC"
  43. select RT_USING_SDIO
  44. select RT_USING_DFS
  45. select RT_USING_DFS_ELMFAT
  46. if BSP_USING_SDMMC
  47. menuconfig BSP_USING_SDCARD
  48. bool "Enable sd card"
  49. select BSP_USING_PMIC
  50. default n
  51. if BSP_USING_SDCARD
  52. config BSP_USING_SDCARD_FS
  53. bool "sd card fatfs"
  54. default y
  55. endif
  56. menuconfig BSP_USING_EMMC
  57. bool "Enable eMMC (32 Gbits)"
  58. default n
  59. if BSP_USING_EMMC
  60. config BSP_USING_EMMC_FS
  61. bool "emmc card fatfs"
  62. default y
  63. endif
  64. endif
  65. config BSP_USING_AUDIO
  66. bool "Enable Audio Device (WM8994)"
  67. select RT_USING_AUDIO
  68. select BSP_USING_PMIC
  69. select BSP_USING_SDMMC
  70. select BSP_USING_SDCARD
  71. select SD_USING_DFS
  72. select BSP_USING_I2C
  73. select BSP_USING_I2C2
  74. default n
  75. config BSP_USING_DCMI
  76. bool "Enable CAMERA (ov5640)"
  77. select BSP_USING_MFX
  78. select BSP_USING_PMIC
  79. select BSP_USING_SDMMC
  80. select BSP_USING_SDCARD
  81. select BSP_USING_I2C
  82. select BSP_USING_I2C2
  83. default n
  84. config BSP_USING_MFX
  85. bool "Enable Multi Function eXpander"
  86. default n
  87. menuconfig BSP_USING_RS485
  88. bool "Enable RS485 "
  89. default n
  90. if BSP_USING_RS485
  91. comment "set rts pin number "
  92. config BSP_RS485_RTS_PIN
  93. int "RS485 rts pin number"
  94. range 1 176
  95. default 5
  96. config RS485_UART_DEVICE_NAME
  97. string "the uart name for rs485"
  98. default "uart3"
  99. endif
  100. endmenu
  101. menu "On-chip Peripheral Drivers"
  102. config BSP_USING_GPIO
  103. bool "Enable GPIO"
  104. select RT_USING_PIN
  105. default y
  106. config BSP_USING_WWDG
  107. bool "Enable WWDG"
  108. select RT_USING_WWDG
  109. select RT_USING_WDT
  110. default n
  111. config BSP_USING_DMA
  112. bool "Enable DMA Test"
  113. select BSP_USING_UART
  114. select BSP_USING_UART3
  115. select BSP_UART3_RX_USING_DMA
  116. default name
  117. config BSP_USING_QSPI
  118. bool "Enable QSPI BUS"
  119. select RT_USING_QSPI
  120. select RT_USING_SPI
  121. default n
  122. config BSP_USING_SPDIFRX
  123. bool "Enable spdifrx"
  124. select BSP_USING_AUDIO
  125. default n
  126. config BSP_USING_DFSDM
  127. bool "Enable dfsdm"
  128. select BSP_USING_AUDIO
  129. default n
  130. menuconfig BSP_USING_UART
  131. bool "Enable UART"
  132. select RT_USING_SERIAL
  133. default y
  134. if BSP_USING_UART
  135. config BSP_STM32_UART_V1_TX_TIMEOUT
  136. int "UART TX timeout"
  137. default 2000
  138. depends on RT_USING_SERIAL_V1
  139. config BSP_USING_UART3
  140. bool "Enable UART3"
  141. default n
  142. config BSP_UART3_RX_USING_DMA
  143. bool "Enable UART3 RX DMA"
  144. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  145. default n
  146. config BSP_UART3_TX_USING_DMA
  147. bool "Enable UART3 TX DMA"
  148. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  149. default n
  150. config BSP_USING_UART4
  151. bool "Enable UART4"
  152. default n
  153. config BSP_UART4_RX_USING_DMA
  154. bool "Enable UART4 RX DMA"
  155. depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA
  156. default n
  157. config BSP_UART4_TX_USING_DMA
  158. bool "Enable UART4 TX DMA"
  159. depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA
  160. default n
  161. endif
  162. menuconfig BSP_USING_TIM
  163. bool "Enable timer"
  164. default n
  165. select RT_USING_HWTIMER
  166. if BSP_USING_TIM
  167. config BSP_USING_TIM14
  168. bool "Enable TIM14"
  169. default n
  170. config BSP_USING_TIM16
  171. bool "Enable TIM16"
  172. default n
  173. config BSP_USING_TIM17
  174. bool "Enable TIM17"
  175. default n
  176. endif
  177. menuconfig BSP_USING_LPTIM
  178. bool "Enable lptimer"
  179. default n
  180. select RT_USING_LPTIMER
  181. if BSP_USING_LPTIM
  182. config BSP_USING_LPTIM1
  183. bool "Enable LPTIM1"
  184. default n
  185. endif
  186. menuconfig BSP_USING_PWM
  187. bool "Enable PWM"
  188. default n
  189. select RT_USING_PWM
  190. if BSP_USING_PWM
  191. menuconfig BSP_USING_PWM4
  192. bool "Enable timer4 output PWM"
  193. default n
  194. if BSP_USING_PWM4
  195. config BSP_USING_PWM4_CH2
  196. bool "Enable PWM4 channel2"
  197. default n
  198. endif
  199. endif
  200. menuconfig BSP_USING_ADC
  201. bool "Enable ADC"
  202. default n
  203. select RT_USING_ADC
  204. if BSP_USING_ADC
  205. config BSP_USING_ADC2
  206. bool "Enable ADC2"
  207. default n
  208. endif
  209. menuconfig BSP_USING_DAC
  210. bool "Enable DAC"
  211. default n
  212. select RT_USING_DAC
  213. if BSP_USING_DAC
  214. config BSP_USING_DAC1
  215. bool "Enable DAC1"
  216. default n
  217. endif
  218. menuconfig BSP_USING_I2C
  219. bool "Enable I2C BUS (software simulation)"
  220. select RT_USING_I2C
  221. select RT_USING_I2C_BITOPS
  222. select RT_USING_PIN
  223. default n
  224. if BSP_USING_I2C
  225. menuconfig BSP_USING_I2C1
  226. bool "Enable I2C1 BUS (software simulation)"
  227. default n
  228. if BSP_USING_I2C1
  229. comment "Notice: PD7 --> 55; PG15 --> 111"
  230. config BSP_I2C1_SCL_PIN
  231. int "I2C1 scl pin number"
  232. range 1 176
  233. default 55
  234. config BSP_I2C1_SDA_PIN
  235. int "I2C1 sda pin number"
  236. range 1 176
  237. default 111
  238. endif
  239. menuconfig BSP_USING_I2C2
  240. bool "Enable I2C2 BUS (software simulation)"
  241. default n
  242. if BSP_USING_I2C2
  243. comment "Notice: PH4 --> 116; PH5 --> 117"
  244. config BSP_I2C2_SCL_PIN
  245. int "i2c2 scl pin number"
  246. range 1 176
  247. default 116
  248. config BSP_I2C2_SDA_PIN
  249. int "I2C2 sda pin number"
  250. range 1 176
  251. default 117
  252. endif
  253. menuconfig BSP_USING_I2C3
  254. bool "Enable I2C3 BUS (software simulation)"
  255. default n
  256. if BSP_USING_I2C3
  257. comment "Notice: PZ4 --> 180; PZ5 --> 181"
  258. config BSP_I2C3_SCL_PIN
  259. int "i2c3 scl pin number"
  260. range 1 191
  261. default 180
  262. config BSP_I2C3_SDA_PIN
  263. int "I2C3 sda pin number"
  264. range 1 191
  265. default 181
  266. endif
  267. endif
  268. menuconfig BSP_USING_SPI
  269. bool "Enable SPI BUS"
  270. select RT_USING_SPI
  271. default n
  272. if BSP_USING_SPI
  273. config BSP_USING_SPI1
  274. bool "Enable SPI1 BUS"
  275. default n
  276. endif
  277. menuconfig BSP_USING_FDCAN
  278. bool "Enable FDCAN"
  279. default n
  280. if BSP_USING_FDCAN
  281. config BSP_USING_FDCAN1
  282. bool "Enable FDCAN1"
  283. default n
  284. endif
  285. source "$(BSP_DIR)/../libraries/HAL_Drivers/drivers/Kconfig"
  286. endmenu
  287. menu "Board extended module Drivers"
  288. endmenu
  289. endmenu