Kconfig 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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. endmenu
  15. menu "On-chip Peripheral Drivers"
  16. config BSP_USING_GPIO
  17. bool "Enable GPIO"
  18. select RT_USING_PIN
  19. default y
  20. config BSP_USING_WWDG
  21. bool "Enable WWDG"
  22. select RT_USING_WWDG
  23. default n
  24. menuconfig BSP_USING_UART
  25. bool "Enable UART"
  26. select RT_USING_SERIAL
  27. default y
  28. if BSP_USING_UART
  29. config BSP_USING_UART3
  30. bool "Enable UART3"
  31. default y
  32. config BSP_UART3_RX_USING_DMA
  33. bool "Enable UART3 RX DMA"
  34. depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA
  35. default n
  36. config BSP_UART3_TX_USING_DMA
  37. bool "Enable UART3 TX DMA"
  38. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  39. default n
  40. config BSP_USING_UART4
  41. bool "Enable UART4"
  42. default y
  43. config BSP_UART4_RX_USING_DMA
  44. bool "Enable UART4 RX DMA"
  45. depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA
  46. default n
  47. config BSP_UART4_TX_USING_DMA
  48. bool "Enable UART4 TX DMA"
  49. depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA
  50. default n
  51. endif
  52. menuconfig BSP_USING_TIM
  53. bool "Enable timer"
  54. default n
  55. select RT_USING_HWTIMER
  56. if BSP_USING_TIM
  57. config BSP_USING_TIM14
  58. bool "Enable TIM14"
  59. default n
  60. config BSP_USING_TIM16
  61. bool "Enable TIM16"
  62. default n
  63. config BSP_USING_TIM17
  64. bool "Enable TIM17"
  65. default n
  66. endif
  67. menuconfig BSP_USING_LPTIM
  68. bool "Enable lptimer"
  69. default n
  70. select RT_USING_LPTIMER
  71. if BSP_USING_LPTIM
  72. config BSP_USING_LPTIM1
  73. bool "Enable LPTIM1"
  74. default n
  75. endif
  76. menuconfig BSP_USING_PWM
  77. bool "Enable pwm"
  78. default n
  79. select RT_USING_PWM
  80. if BSP_USING_PWM
  81. menuconfig BSP_USING_PWM4
  82. bool "Enable timer4 output pwm"
  83. default n
  84. if BSP_USING_PWM4
  85. config BSP_USING_PWM4_CH2
  86. bool "Enable PWM4 channel2"
  87. default n
  88. endif
  89. endif
  90. menuconfig BSP_USING_ADC
  91. bool "Enable ADC"
  92. default n
  93. select RT_USING_ADC
  94. if BSP_USING_ADC
  95. config BSP_USING_ADC2
  96. bool "Enable ADC2"
  97. default n
  98. endif
  99. menuconfig BSP_USING_DAC
  100. bool "Enable DAC"
  101. default n
  102. select RT_USING_DAC
  103. if BSP_USING_DAC
  104. config BSP_USING_DAC1
  105. bool "Enable DAC1"
  106. default n
  107. endif
  108. menuconfig BSP_USING_I2C1
  109. bool "Enable I2C1 BUS (software simulation)"
  110. select RT_USING_I2C
  111. select RT_USING_I2C_BITOPS
  112. select RT_USING_PIN
  113. default n
  114. if BSP_USING_I2C1
  115. comment "Notice: PD7 --> 55; PG15 --> 111"
  116. config BSP_I2C1_SCL_PIN
  117. int "I2C1 scl pin number"
  118. range 1 176
  119. default 55
  120. config BSP_I2C1_SDA_PIN
  121. int "I2C1 sda pin number"
  122. range 1 176
  123. default 111
  124. endif
  125. menuconfig BSP_USING_SPI
  126. bool "Enable SPI BUS"
  127. select RT_USING_SPI
  128. default n
  129. if BSP_USING_SPI
  130. config BSP_USING_SPI5
  131. bool "Enable SPI5 BUS"
  132. default n
  133. config BSP_SPI5_TX_USING_DMA
  134. bool "Enable SPI5 TX DMA"
  135. depends on BSP_USING_SPI5
  136. default n
  137. config BSP_SPI5_RX_USING_DMA
  138. bool "Enable SPI5 RX DMA"
  139. depends on BSP_USING_SPI5
  140. select BSP_SPI5_TX_USING_DMA
  141. default n
  142. endif
  143. source "../libraries/HAL_Drivers/Kconfig"
  144. endmenu
  145. menu "Board extended module Drivers"
  146. endmenu
  147. endmenu