Kconfig 5.7 KB

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