Kconfig 8.3 KB

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