Kconfig 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  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. default n
  25. config BSP_USING_RCC
  26. bool "Enable rcc use sample"
  27. default n
  28. config BSP_USING_OPENAMP
  29. bool "Enable OpenAMP"
  30. default n
  31. menuconfig BSP_USING_RS485
  32. bool "Enable RS485 "
  33. default n
  34. if BSP_USING_RS485
  35. comment "set rts pin number "
  36. config BSP_RS485_RTS_PIN
  37. int "RS485 rts pin number"
  38. range 1 176
  39. default 5
  40. config RS485_UART_DEVICE_NAME
  41. string "the uart name for rs485"
  42. default "uart3"
  43. endif
  44. config BSP_USING_GBE
  45. bool "Enable Ethernet"
  46. default n
  47. select RT_USING_LWIP
  48. config BSP_USING_SDMMC
  49. bool "Enable SDMMC (SD card)"
  50. select RT_USING_SDIO
  51. select RT_USING_DFS
  52. select RT_USING_DFS_ELMFAT
  53. default n
  54. menuconfig BSP_USING_AUDIO
  55. bool "Enable Audio Device"
  56. select RT_USING_AUDIO
  57. select BSP_USING_PMIC
  58. select BSP_USING_SDMMC
  59. select BSP_USING_I2C
  60. select BSP_USING_I2C4
  61. default n
  62. if BSP_USING_AUDIO
  63. config BSP_USING_AUDIO_PLAY
  64. bool "Enable Audio Play"
  65. default y
  66. config BSP_USING_AUDIO_RECORD
  67. bool "Enable Audio Record"
  68. default n
  69. endif
  70. endmenu
  71. menu "On-chip Peripheral Drivers"
  72. config BSP_USING_GPIO
  73. bool "Enable GPIO"
  74. select RT_USING_PIN
  75. default y
  76. config BSP_USING_WWDG
  77. bool "Enable WWDG"
  78. select RT_USING_WWDG
  79. default n
  80. menuconfig BSP_USING_UART
  81. bool "Enable UART"
  82. select RT_USING_SERIAL
  83. default y
  84. if BSP_USING_UART
  85. config BSP_USING_UART3
  86. bool "Enable UART3"
  87. default y
  88. config BSP_UART3_RX_USING_DMA
  89. bool "Enable UART3 RX DMA"
  90. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  91. default n
  92. config BSP_UART3_TX_USING_DMA
  93. bool "Enable UART3 TX DMA"
  94. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  95. default n
  96. config BSP_USING_UART4
  97. bool "Enable UART4"
  98. default y
  99. config BSP_UART4_RX_USING_DMA
  100. bool "Enable UART4 RX DMA"
  101. depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA
  102. default n
  103. config BSP_UART4_TX_USING_DMA
  104. bool "Enable UART4 TX DMA"
  105. depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA
  106. default n
  107. endif
  108. menuconfig BSP_USING_TIM
  109. bool "Enable timer"
  110. default n
  111. select RT_USING_HWTIMER
  112. if BSP_USING_TIM
  113. config BSP_USING_TIM14
  114. bool "Enable TIM14"
  115. default n
  116. config BSP_USING_TIM16
  117. bool "Enable TIM16"
  118. default n
  119. config BSP_USING_TIM17
  120. bool "Enable TIM17"
  121. default n
  122. endif
  123. menuconfig BSP_USING_LPTIM
  124. bool "Enable lptimer"
  125. default n
  126. select RT_USING_LPTIMER
  127. if BSP_USING_LPTIM
  128. config BSP_USING_LPTIM1
  129. bool "Enable LPTIM1"
  130. default n
  131. endif
  132. menuconfig BSP_USING_PWM
  133. bool "Enable pwm"
  134. default n
  135. select RT_USING_PWM
  136. if BSP_USING_PWM
  137. menuconfig BSP_USING_PWM4
  138. bool "Enable timer4 output pwm"
  139. default n
  140. if BSP_USING_PWM4
  141. config BSP_USING_PWM4_CH2
  142. bool "Enable PWM4 channel2"
  143. default n
  144. endif
  145. endif
  146. menuconfig BSP_USING_ADC
  147. bool "Enable ADC"
  148. default n
  149. select RT_USING_ADC
  150. if BSP_USING_ADC
  151. config BSP_USING_ADC2
  152. bool "Enable ADC2"
  153. select BSP_USING_PMIC
  154. default n
  155. endif
  156. menuconfig BSP_USING_DAC
  157. bool "Enable DAC"
  158. default n
  159. select RT_USING_DAC
  160. if BSP_USING_DAC
  161. config BSP_USING_DAC1
  162. bool "Enable DAC1"
  163. default n
  164. endif
  165. menuconfig BSP_USING_I2C
  166. bool "Enable I2C BUS (software simulation)"
  167. select RT_USING_I2C
  168. select RT_USING_I2C_BITOPS
  169. select RT_USING_PIN
  170. default n
  171. if BSP_USING_I2C
  172. menuconfig BSP_USING_I2C1
  173. bool "Enable I2C1 BUS (software simulation)"
  174. default n
  175. if BSP_USING_I2C1
  176. comment "Notice: PD7 --> 55; PG15 --> 111"
  177. config BSP_I2C1_SCL_PIN
  178. int "I2C1 scl pin number"
  179. range 1 176
  180. default 55
  181. config BSP_I2C1_SDA_PIN
  182. int "I2C1 sda pin number"
  183. range 1 176
  184. default 111
  185. endif
  186. menuconfig BSP_USING_I2C2
  187. bool "Enable I2C2 BUS (software simulation)"
  188. default n
  189. if BSP_USING_I2C2
  190. comment "Notice: PH4 --> 116; PH5 --> 117"
  191. config BSP_I2C2_SCL_PIN
  192. int "i2c2 scl pin number"
  193. range 1 176
  194. default 116
  195. config BSP_I2C2_SDA_PIN
  196. int "I2C2 sda pin number"
  197. range 1 176
  198. default 117
  199. endif
  200. menuconfig BSP_USING_I2C3
  201. bool "Enable I2C3 BUS (software simulation)"
  202. default n
  203. if BSP_USING_I2C3
  204. comment "Notice: PZ4 --> 180; PZ5 --> 181"
  205. config BSP_I2C3_SCL_PIN
  206. int "i2c3 scl pin number"
  207. range 1 191
  208. default 180
  209. config BSP_I2C3_SDA_PIN
  210. int "I2C3 sda pin number"
  211. range 1 191
  212. default 181
  213. endif
  214. menuconfig BSP_USING_I2C4
  215. bool "Enable I2C4 BUS (software simulation)"
  216. default n
  217. if BSP_USING_I2C4
  218. comment "Notice: PD12 --> 60; PF15 --> 95"
  219. config BSP_I2C4_SCL_PIN
  220. int "i2c4 scl pin number"
  221. range 1 191
  222. default 60
  223. config BSP_I2C4_SDA_PIN
  224. int "I2C4 sda pin number"
  225. range 1 191
  226. default 95
  227. endif
  228. endif
  229. menuconfig BSP_USING_SPI
  230. bool "Enable SPI BUS"
  231. select RT_USING_SPI
  232. default n
  233. if BSP_USING_SPI
  234. config BSP_USING_SPI5
  235. bool "Enable SPI5 BUS"
  236. default n
  237. config BSP_SPI5_TX_USING_DMA
  238. bool "Enable SPI5 TX DMA"
  239. depends on BSP_USING_SPI5
  240. default n
  241. config BSP_SPI5_RX_USING_DMA
  242. bool "Enable SPI5 RX DMA"
  243. depends on BSP_USING_SPI5
  244. select BSP_SPI5_TX_USING_DMA
  245. default n
  246. endif
  247. source "../libraries/HAL_Drivers/Kconfig"
  248. endmenu
  249. menu "Board extended module Drivers"
  250. endmenu
  251. endmenu