Kconfig 8.7 KB

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