Kconfig 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  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. endmenu
  55. menu "On-chip Peripheral Drivers"
  56. config BSP_USING_GPIO
  57. bool "Enable GPIO"
  58. select RT_USING_PIN
  59. default y
  60. config BSP_USING_WWDG
  61. bool "Enable WWDG"
  62. select RT_USING_WWDG
  63. default n
  64. menuconfig BSP_USING_UART
  65. bool "Enable UART"
  66. select RT_USING_SERIAL
  67. default y
  68. if BSP_USING_UART
  69. config BSP_USING_UART3
  70. bool "Enable UART3"
  71. default y
  72. config BSP_UART3_RX_USING_DMA
  73. bool "Enable UART3 RX DMA"
  74. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  75. default n
  76. config BSP_UART3_TX_USING_DMA
  77. bool "Enable UART3 TX DMA"
  78. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  79. default n
  80. config BSP_USING_UART4
  81. bool "Enable UART4"
  82. default y
  83. config BSP_UART4_RX_USING_DMA
  84. bool "Enable UART4 RX DMA"
  85. depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA
  86. default n
  87. config BSP_UART4_TX_USING_DMA
  88. bool "Enable UART4 TX DMA"
  89. depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA
  90. default n
  91. endif
  92. menuconfig BSP_USING_TIM
  93. bool "Enable timer"
  94. default n
  95. select RT_USING_HWTIMER
  96. if BSP_USING_TIM
  97. config BSP_USING_TIM14
  98. bool "Enable TIM14"
  99. default n
  100. config BSP_USING_TIM16
  101. bool "Enable TIM16"
  102. default n
  103. config BSP_USING_TIM17
  104. bool "Enable TIM17"
  105. default n
  106. endif
  107. menuconfig BSP_USING_LPTIM
  108. bool "Enable lptimer"
  109. default n
  110. select RT_USING_LPTIMER
  111. if BSP_USING_LPTIM
  112. config BSP_USING_LPTIM1
  113. bool "Enable LPTIM1"
  114. default n
  115. endif
  116. menuconfig BSP_USING_PWM
  117. bool "Enable pwm"
  118. default n
  119. select RT_USING_PWM
  120. if BSP_USING_PWM
  121. menuconfig BSP_USING_PWM4
  122. bool "Enable timer4 output pwm"
  123. default n
  124. if BSP_USING_PWM4
  125. config BSP_USING_PWM4_CH2
  126. bool "Enable PWM4 channel2"
  127. default n
  128. endif
  129. endif
  130. menuconfig BSP_USING_ADC
  131. bool "Enable ADC"
  132. default n
  133. select RT_USING_ADC
  134. if BSP_USING_ADC
  135. config BSP_USING_ADC2
  136. bool "Enable ADC2"
  137. select BSP_USING_PMIC
  138. default n
  139. endif
  140. menuconfig BSP_USING_DAC
  141. bool "Enable DAC"
  142. default n
  143. select RT_USING_DAC
  144. if BSP_USING_DAC
  145. config BSP_USING_DAC1
  146. bool "Enable DAC1"
  147. default n
  148. endif
  149. menuconfig BSP_USING_I2C
  150. bool "Enable I2C BUS (software simulation)"
  151. select RT_USING_I2C
  152. select RT_USING_I2C_BITOPS
  153. select RT_USING_PIN
  154. default n
  155. if BSP_USING_I2C
  156. menuconfig BSP_USING_I2C1
  157. bool "Enable I2C1 BUS (software simulation)"
  158. default n
  159. if BSP_USING_I2C1
  160. comment "Notice: PD7 --> 55; PG15 --> 111"
  161. config BSP_I2C1_SCL_PIN
  162. int "I2C1 scl pin number"
  163. range 1 176
  164. default 55
  165. config BSP_I2C1_SDA_PIN
  166. int "I2C1 sda pin number"
  167. range 1 176
  168. default 111
  169. endif
  170. menuconfig BSP_USING_I2C2
  171. bool "Enable I2C2 BUS (software simulation)"
  172. default n
  173. if BSP_USING_I2C2
  174. comment "Notice: PH4 --> 116; PH5 --> 117"
  175. config BSP_I2C2_SCL_PIN
  176. int "i2c2 scl pin number"
  177. range 1 176
  178. default 116
  179. config BSP_I2C2_SDA_PIN
  180. int "I2C2 sda pin number"
  181. range 1 176
  182. default 117
  183. endif
  184. menuconfig BSP_USING_I2C3
  185. bool "Enable I2C3 BUS (software simulation)"
  186. default n
  187. if BSP_USING_I2C3
  188. comment "Notice: PZ4 --> 180; PZ5 --> 181"
  189. config BSP_I2C3_SCL_PIN
  190. int "i2c3 scl pin number"
  191. range 1 191
  192. default 180
  193. config BSP_I2C3_SDA_PIN
  194. int "I2C3 sda pin number"
  195. range 1 191
  196. default 181
  197. endif
  198. menuconfig BSP_USING_I2C4
  199. bool "Enable I2C2 BUS (software simulation)"
  200. default n
  201. if BSP_USING_I2C4
  202. comment "Notice: PD12 --> 60; PF15 --> 95"
  203. config BSP_I2C4_SCL_PIN
  204. int "i2c4 scl pin number"
  205. range 1 191
  206. default 60
  207. config BSP_I2C4_SDA_PIN
  208. int "I2C4 sda pin number"
  209. range 1 191
  210. default 95
  211. endif
  212. endif
  213. menuconfig BSP_USING_SPI
  214. bool "Enable SPI BUS"
  215. select RT_USING_SPI
  216. default n
  217. if BSP_USING_SPI
  218. config BSP_USING_SPI5
  219. bool "Enable SPI5 BUS"
  220. default n
  221. config BSP_SPI5_TX_USING_DMA
  222. bool "Enable SPI5 TX DMA"
  223. depends on BSP_USING_SPI5
  224. default n
  225. config BSP_SPI5_RX_USING_DMA
  226. bool "Enable SPI5 RX DMA"
  227. depends on BSP_USING_SPI5
  228. select BSP_SPI5_TX_USING_DMA
  229. default n
  230. endif
  231. source "../libraries/HAL_Drivers/Kconfig"
  232. endmenu
  233. menu "Board extended module Drivers"
  234. endmenu
  235. endmenu