Kconfig 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  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. if BSP_USING_SDMMC
  53. menuconfig BSP_USING_SDCARD
  54. bool "Enable sd card"
  55. select BSP_USING_PMIC
  56. default n
  57. if BSP_USING_SDCARD
  58. config BSP_USING_SDCARD_FS
  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 BSP_USING_EMMC_FS
  67. bool "emmc card fatfs"
  68. default y
  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_SDCARD
  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_SDMMC
  86. select BSP_USING_SDCARD
  87. select BSP_USING_I2C
  88. select BSP_USING_I2C2
  89. default n
  90. config BSP_USING_MFX
  91. bool "Enable Multi Function eXpander"
  92. default n
  93. menuconfig BSP_USING_RS485
  94. bool "Enable RS485 "
  95. default n
  96. if BSP_USING_RS485
  97. comment "set rts pin number "
  98. config BSP_RS485_RTS_PIN
  99. int "RS485 rts pin number"
  100. range 1 176
  101. default 5
  102. config RS485_UART_DEVICE_NAME
  103. string "the uart name for rs485"
  104. default "uart3"
  105. endif
  106. endmenu
  107. menu "On-chip Peripheral Drivers"
  108. config BSP_USING_GPIO
  109. bool "Enable GPIO"
  110. select RT_USING_PIN
  111. default y
  112. config BSP_USING_WWDG
  113. bool "Enable WWDG"
  114. select RT_USING_WWDG
  115. select RT_USING_WDT
  116. default n
  117. config BSP_USING_DMA
  118. bool "Enable DMA Test"
  119. select BSP_USING_UART
  120. select BSP_USING_UART3
  121. select BSP_UART3_RX_USING_DMA
  122. default name
  123. config BSP_USING_QSPI
  124. bool "Enable QSPI BUS"
  125. select RT_USING_QSPI
  126. select RT_USING_SPI
  127. default n
  128. config BSP_USING_SPDIFRX
  129. bool "Enable spdifrx"
  130. select BSP_USING_AUDIO
  131. default n
  132. config BSP_USING_DFSDM
  133. bool "Enable dfsdm"
  134. select BSP_USING_AUDIO
  135. default n
  136. menuconfig BSP_USING_UART
  137. bool "Enable UART"
  138. select RT_USING_SERIAL
  139. default y
  140. if BSP_USING_UART
  141. config BSP_USING_UART3
  142. bool "Enable UART3"
  143. default n
  144. config BSP_UART3_RX_USING_DMA
  145. bool "Enable UART3 RX DMA"
  146. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  147. default n
  148. config BSP_UART3_TX_USING_DMA
  149. bool "Enable UART3 TX DMA"
  150. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  151. default n
  152. config BSP_USING_UART4
  153. bool "Enable UART4"
  154. default n
  155. config BSP_UART4_RX_USING_DMA
  156. bool "Enable UART4 RX DMA"
  157. depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA
  158. default n
  159. config BSP_UART4_TX_USING_DMA
  160. bool "Enable UART4 TX DMA"
  161. depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA
  162. default n
  163. endif
  164. menuconfig BSP_USING_TIM
  165. bool "Enable timer"
  166. default n
  167. select RT_USING_HWTIMER
  168. if BSP_USING_TIM
  169. config BSP_USING_TIM14
  170. bool "Enable TIM14"
  171. default n
  172. config BSP_USING_TIM16
  173. bool "Enable TIM16"
  174. default n
  175. config BSP_USING_TIM17
  176. bool "Enable TIM17"
  177. default n
  178. endif
  179. menuconfig BSP_USING_LPTIM
  180. bool "Enable lptimer"
  181. default n
  182. select RT_USING_LPTIMER
  183. if BSP_USING_LPTIM
  184. config BSP_USING_LPTIM1
  185. bool "Enable LPTIM1"
  186. default n
  187. endif
  188. menuconfig BSP_USING_PWM
  189. bool "Enable PWM"
  190. default n
  191. select RT_USING_PWM
  192. if BSP_USING_PWM
  193. menuconfig BSP_USING_PWM4
  194. bool "Enable timer4 output PWM"
  195. default n
  196. if BSP_USING_PWM4
  197. config BSP_USING_PWM4_CH2
  198. bool "Enable PWM4 channel2"
  199. default n
  200. endif
  201. endif
  202. menuconfig BSP_USING_ADC
  203. bool "Enable ADC"
  204. default n
  205. select RT_USING_ADC
  206. if BSP_USING_ADC
  207. config BSP_USING_ADC2
  208. bool "Enable ADC2"
  209. default n
  210. endif
  211. menuconfig BSP_USING_DAC
  212. bool "Enable DAC"
  213. default n
  214. select RT_USING_DAC
  215. if BSP_USING_DAC
  216. config BSP_USING_DAC1
  217. bool "Enable DAC1"
  218. default n
  219. endif
  220. menuconfig BSP_USING_I2C
  221. bool "Enable I2C BUS (software simulation)"
  222. select RT_USING_I2C
  223. select RT_USING_I2C_BITOPS
  224. select RT_USING_PIN
  225. default n
  226. if BSP_USING_I2C
  227. menuconfig BSP_USING_I2C1
  228. bool "Enable I2C1 BUS (software simulation)"
  229. default n
  230. if BSP_USING_I2C1
  231. comment "Notice: PD7 --> 55; PG15 --> 111"
  232. config BSP_I2C1_SCL_PIN
  233. int "I2C1 scl pin number"
  234. range 1 176
  235. default 55
  236. config BSP_I2C1_SDA_PIN
  237. int "I2C1 sda pin number"
  238. range 1 176
  239. default 111
  240. endif
  241. menuconfig BSP_USING_I2C2
  242. bool "Enable I2C2 BUS (software simulation)"
  243. default n
  244. if BSP_USING_I2C2
  245. comment "Notice: PH4 --> 116; PH5 --> 117"
  246. config BSP_I2C2_SCL_PIN
  247. int "i2c2 scl pin number"
  248. range 1 176
  249. default 116
  250. config BSP_I2C2_SDA_PIN
  251. int "I2C2 sda pin number"
  252. range 1 176
  253. default 117
  254. endif
  255. menuconfig BSP_USING_I2C3
  256. bool "Enable I2C3 BUS (software simulation)"
  257. default n
  258. if BSP_USING_I2C3
  259. comment "Notice: PZ4 --> 180; PZ5 --> 181"
  260. config BSP_I2C3_SCL_PIN
  261. int "i2c3 scl pin number"
  262. range 1 191
  263. default 180
  264. config BSP_I2C3_SDA_PIN
  265. int "I2C3 sda pin number"
  266. range 1 191
  267. default 181
  268. endif
  269. endif
  270. menuconfig BSP_USING_SPI
  271. bool "Enable SPI BUS"
  272. select RT_USING_SPI
  273. default n
  274. if BSP_USING_SPI
  275. config BSP_USING_SPI1
  276. bool "Enable SPI1 BUS"
  277. default n
  278. endif
  279. menuconfig BSP_USING_FDCAN
  280. bool "Enable FDCAN"
  281. default n
  282. if BSP_USING_FDCAN
  283. config BSP_USING_FDCAN1
  284. bool "Enable FDCAN1"
  285. default n
  286. endif
  287. source "../libraries/HAL_Drivers/Kconfig"
  288. endmenu
  289. menu "Board extended module Drivers"
  290. endmenu
  291. endmenu