Kconfig 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  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. config BSP_USING_DCMI
  65. bool "Enable CAMERA (ov5640)"
  66. select BSP_USING_MFX
  67. select BSP_USING_PMIC
  68. select BSP_USING_I2C
  69. select BSP_USING_I2C2
  70. default n
  71. config BSP_USING_MFX
  72. bool "Enable Multi Function eXpander"
  73. default n
  74. endmenu
  75. menu "On-chip Peripheral Drivers"
  76. config BSP_USING_GPIO
  77. bool "Enable GPIO"
  78. select RT_USING_PIN
  79. default y
  80. menuconfig BSP_USING_UART
  81. bool "Enable UART"
  82. select RT_USING_SERIAL
  83. default y
  84. if BSP_USING_UART
  85. config BSP_USING_UART3
  86. bool "Enable UART3"
  87. default n
  88. config BSP_UART3_RX_USING_DMA
  89. bool "Enable UART3 RX DMA"
  90. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  91. default n
  92. config BSP_UART3_TX_USING_DMA
  93. bool "Enable UART3 TX DMA"
  94. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  95. default n
  96. config BSP_USING_UART4
  97. bool "Enable UART4"
  98. default n
  99. config BSP_UART4_RX_USING_DMA
  100. bool "Enable UART4 RX DMA"
  101. depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA
  102. default n
  103. config BSP_UART4_TX_USING_DMA
  104. bool "Enable UART4 TX DMA"
  105. depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA
  106. default n
  107. endif
  108. menuconfig BSP_USING_TIM
  109. bool "Enable timer"
  110. default n
  111. select RT_USING_HWTIMER
  112. if BSP_USING_TIM
  113. config BSP_USING_TIM14
  114. bool "Enable TIM14"
  115. default n
  116. config BSP_USING_TIM16
  117. bool "Enable TIM16"
  118. default n
  119. config BSP_USING_TIM17
  120. bool "Enable TIM17"
  121. default n
  122. endif
  123. menuconfig BSP_USING_PWM
  124. bool "Enable pwm"
  125. default n
  126. select RT_USING_PWM
  127. if BSP_USING_PWM
  128. menuconfig BSP_USING_PWM4
  129. bool "Enable timer4 output pwm"
  130. default n
  131. if BSP_USING_PWM4
  132. config BSP_USING_PWM4_CH2
  133. bool "Enable PWM4 channel2"
  134. default n
  135. endif
  136. endif
  137. menuconfig BSP_USING_ADC
  138. bool "Enable ADC"
  139. default n
  140. select RT_USING_ADC
  141. if BSP_USING_ADC
  142. config BSP_USING_ADC2
  143. bool "Enable ADC2"
  144. default n
  145. endif
  146. menuconfig BSP_USING_DAC
  147. bool "Enable DAC"
  148. default n
  149. select RT_USING_DAC
  150. if BSP_USING_DAC
  151. config BSP_USING_DAC1
  152. bool "Enable DAC1"
  153. default n
  154. endif
  155. menuconfig BSP_USING_I2C
  156. bool "Enable I2C BUS (software simulation)"
  157. select RT_USING_I2C
  158. select RT_USING_I2C_BITOPS
  159. select RT_USING_PIN
  160. default n
  161. if BSP_USING_I2C
  162. menuconfig BSP_USING_I2C1
  163. bool "Enable I2C1 BUS (software simulation)"
  164. default n
  165. if BSP_USING_I2C1
  166. comment "Notice: PD7 --> 55; PG15 --> 111"
  167. config BSP_I2C1_SCL_PIN
  168. int "I2C1 scl pin number"
  169. range 1 176
  170. default 55
  171. config BSP_I2C1_SDA_PIN
  172. int "I2C1 sda pin number"
  173. range 1 176
  174. default 111
  175. endif
  176. menuconfig BSP_USING_I2C2
  177. bool "Enable I2C2 BUS (software simulation)"
  178. default n
  179. if BSP_USING_I2C2
  180. comment "Notice: PH4 --> 116; PH5 --> 117"
  181. config BSP_I2C2_SCL_PIN
  182. int "i2c2 scl pin number"
  183. range 1 176
  184. default 116
  185. config BSP_I2C2_SDA_PIN
  186. int "I2C2 sda pin number"
  187. range 1 176
  188. default 117
  189. endif
  190. menuconfig BSP_USING_I2C3
  191. bool "Enable I2C3 BUS (software simulation)"
  192. default n
  193. if BSP_USING_I2C3
  194. comment "Notice: PZ4 --> 180; PZ5 --> 181"
  195. config BSP_I2C3_SCL_PIN
  196. int "i2c3 scl pin number"
  197. range 1 191
  198. default 180
  199. config BSP_I2C3_SDA_PIN
  200. int "I2C3 sda pin number"
  201. range 1 191
  202. default 181
  203. endif
  204. endif
  205. menuconfig BSP_USING_SPI
  206. bool "Enable SPI BUS"
  207. select RT_USING_SPI
  208. default n
  209. if BSP_USING_SPI
  210. config BSP_USING_SPI5
  211. bool "Enable SPI5 BUS"
  212. default n
  213. config BSP_SPI5_TX_USING_DMA
  214. bool "Enable SPI5 TX DMA"
  215. depends on BSP_USING_SPI5
  216. default n
  217. config BSP_SPI5_RX_USING_DMA
  218. bool "Enable SPI5 RX DMA"
  219. depends on BSP_USING_SPI5
  220. select BSP_SPI5_TX_USING_DMA
  221. default n
  222. endif
  223. menuconfig BSP_USING_FDCAN
  224. bool "Enable FDCAN"
  225. default n
  226. if BSP_USING_FDCAN
  227. config BSP_USING_FDCAN1
  228. bool "Enable FDCAN1"
  229. default n
  230. endif
  231. source "../libraries/HAL_Drivers/Kconfig"
  232. endmenu
  233. menu "Board extended module Drivers"
  234. endmenu
  235. endmenu