Kconfig 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  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. default name
  120. config BSP_USING_QSPI
  121. bool "Enable QSPI BUS"
  122. select RT_USING_QSPI
  123. select RT_USING_SPI
  124. default n
  125. config BSP_USING_SPDIFRX
  126. bool "Enable spdifrx"
  127. select BSP_USING_AUDIO
  128. default n
  129. config BSP_USING_DFSDM
  130. bool "Enable dfsdm"
  131. select BSP_USING_AUDIO
  132. default n
  133. menuconfig BSP_USING_UART
  134. bool "Enable UART"
  135. select RT_USING_SERIAL
  136. default y
  137. if BSP_USING_UART
  138. config BSP_USING_UART3
  139. bool "Enable UART3"
  140. default n
  141. config BSP_UART3_RX_USING_DMA
  142. bool "Enable UART3 RX DMA"
  143. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  144. default n
  145. config BSP_UART3_TX_USING_DMA
  146. bool "Enable UART3 TX DMA"
  147. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  148. default n
  149. config BSP_USING_UART4
  150. bool "Enable UART4"
  151. default n
  152. config BSP_UART4_RX_USING_DMA
  153. bool "Enable UART4 RX DMA"
  154. depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA
  155. default n
  156. config BSP_UART4_TX_USING_DMA
  157. bool "Enable UART4 TX DMA"
  158. depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA
  159. default n
  160. endif
  161. menuconfig BSP_USING_TIM
  162. bool "Enable timer"
  163. default n
  164. select RT_USING_HWTIMER
  165. if BSP_USING_TIM
  166. config BSP_USING_TIM14
  167. bool "Enable TIM14"
  168. default n
  169. config BSP_USING_TIM16
  170. bool "Enable TIM16"
  171. default n
  172. config BSP_USING_TIM17
  173. bool "Enable TIM17"
  174. default n
  175. endif
  176. menuconfig BSP_USING_LPTIM
  177. bool "Enable lptimer"
  178. default n
  179. select RT_USING_LPTIMER
  180. if BSP_USING_LPTIM
  181. config BSP_USING_LPTIM1
  182. bool "Enable LPTIM1"
  183. default n
  184. endif
  185. menuconfig BSP_USING_PWM
  186. bool "Enable pwm"
  187. default n
  188. select RT_USING_PWM
  189. if BSP_USING_PWM
  190. menuconfig BSP_USING_PWM4
  191. bool "Enable timer4 output pwm"
  192. default n
  193. if BSP_USING_PWM4
  194. config BSP_USING_PWM4_CH2
  195. bool "Enable PWM4 channel2"
  196. default n
  197. endif
  198. endif
  199. menuconfig BSP_USING_ADC
  200. bool "Enable ADC"
  201. default n
  202. select RT_USING_ADC
  203. if BSP_USING_ADC
  204. config BSP_USING_ADC2
  205. bool "Enable ADC2"
  206. default n
  207. endif
  208. menuconfig BSP_USING_DAC
  209. bool "Enable DAC"
  210. default n
  211. select RT_USING_DAC
  212. if BSP_USING_DAC
  213. config BSP_USING_DAC1
  214. bool "Enable DAC1"
  215. default n
  216. endif
  217. menuconfig BSP_USING_I2C
  218. bool "Enable I2C BUS (software simulation)"
  219. select RT_USING_I2C
  220. select RT_USING_I2C_BITOPS
  221. select RT_USING_PIN
  222. default n
  223. if BSP_USING_I2C
  224. menuconfig BSP_USING_I2C1
  225. bool "Enable I2C1 BUS (software simulation)"
  226. default n
  227. if BSP_USING_I2C1
  228. comment "Notice: PD7 --> 55; PG15 --> 111"
  229. config BSP_I2C1_SCL_PIN
  230. int "I2C1 scl pin number"
  231. range 1 176
  232. default 55
  233. config BSP_I2C1_SDA_PIN
  234. int "I2C1 sda pin number"
  235. range 1 176
  236. default 111
  237. endif
  238. menuconfig BSP_USING_I2C2
  239. bool "Enable I2C2 BUS (software simulation)"
  240. default n
  241. if BSP_USING_I2C2
  242. comment "Notice: PH4 --> 116; PH5 --> 117"
  243. config BSP_I2C2_SCL_PIN
  244. int "i2c2 scl pin number"
  245. range 1 176
  246. default 116
  247. config BSP_I2C2_SDA_PIN
  248. int "I2C2 sda pin number"
  249. range 1 176
  250. default 117
  251. endif
  252. menuconfig BSP_USING_I2C3
  253. bool "Enable I2C3 BUS (software simulation)"
  254. default n
  255. if BSP_USING_I2C3
  256. comment "Notice: PZ4 --> 180; PZ5 --> 181"
  257. config BSP_I2C3_SCL_PIN
  258. int "i2c3 scl pin number"
  259. range 1 191
  260. default 180
  261. config BSP_I2C3_SDA_PIN
  262. int "I2C3 sda pin number"
  263. range 1 191
  264. default 181
  265. endif
  266. endif
  267. menuconfig BSP_USING_SPI
  268. bool "Enable SPI BUS"
  269. select RT_USING_SPI
  270. default n
  271. if BSP_USING_SPI
  272. config BSP_USING_SPI1
  273. bool "Enable SPI1 BUS"
  274. default n
  275. endif
  276. menuconfig BSP_USING_FDCAN
  277. bool "Enable FDCAN"
  278. default n
  279. if BSP_USING_FDCAN
  280. config BSP_USING_FDCAN1
  281. bool "Enable FDCAN1"
  282. default n
  283. endif
  284. source "../libraries/HAL_Drivers/Kconfig"
  285. endmenu
  286. menu "Board extended module Drivers"
  287. endmenu
  288. endmenu