Kconfig 6.9 KB

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