Kconfig 6.3 KB

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