Kconfig 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. menu "Hardware Drivers Config"
  2. config SOC_STM32F429IG
  3. bool
  4. select SOC_SERIES_STM32F4
  5. default y
  6. menu "Onboard Peripheral Drivers"
  7. config BSP_USING_USB_TO_USART
  8. bool "Enable USB TO USART (uart1)"
  9. select BSP_USING_UART
  10. select BSP_USING_UART1
  11. default y
  12. config BSP_USING_COM2
  13. bool "Enable COM2 (uart2 pin conflict with Ethernet and PWM)"
  14. select BSP_USING_UART
  15. select BSP_USING_UART2
  16. default n
  17. config BSP_USING_COM3
  18. bool "Enable COM3 (uart3 pin conflict with Ethernet)"
  19. select BSP_USING_UART3
  20. default n
  21. config BSP_USING_SDRAM
  22. bool "Enable SDRAM"
  23. select BSP_USING_FMC
  24. default n
  25. config BSP_USING_SPI_FLASH
  26. bool "Enable SPI FLASH (W25Q256 spi5)"
  27. select BSP_USING_SPI
  28. select BSP_USING_SPI5
  29. select RT_USING_SFUD
  30. select RT_SFUD_USING_SFDP
  31. default n
  32. config BSP_USING_MPU9250
  33. bool "Enable MPU 9250 (i2c1)"
  34. select BSP_USING_I2C1
  35. select PKG_USING_MPU6XXX
  36. default n
  37. config PHY_USING_LAN8720A
  38. bool
  39. config BSP_USING_ETH
  40. bool "Enable Ethernet"
  41. select BSP_USING_I2C1
  42. select PKG_USING_PCF8574
  43. select RT_USING_LWIP
  44. select PHY_USING_LAN8720A
  45. default n
  46. config BSP_USING_SDCARD
  47. bool "Enable SDCARD (sdio)"
  48. select BSP_USING_SDIO
  49. select RT_USING_DFS
  50. select RT_USING_DFS_ELMFAT
  51. default n
  52. config BSP_USING_AUDIO
  53. bool "Enable AUDIO (WM8978)"
  54. select BSP_USING_I2C1
  55. select RT_USING_AUDIO
  56. default n
  57. if BSP_USING_AUDIO
  58. config BSP_USING_AUDIO_PLAY
  59. bool "Enable Audio Play"
  60. default y
  61. config BSP_USING_AUDIO_RECORD
  62. bool "Enable Audio Record"
  63. select BSP_USING_AUDIO_PLAY
  64. default n
  65. endif
  66. endmenu
  67. menu "On-chip Peripheral Drivers"
  68. config BSP_USING_GPIO
  69. bool "Enable GPIO"
  70. select RT_USING_PIN
  71. default y
  72. menuconfig BSP_USING_UART
  73. bool "Enable UART"
  74. default y
  75. select RT_USING_SERIAL
  76. if BSP_USING_UART
  77. config BSP_USING_UART1
  78. bool "Enable UART1"
  79. default y
  80. config BSP_UART1_RX_USING_DMA
  81. bool "Enable UART1 RX DMA"
  82. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  83. default n
  84. config BSP_USING_UART2
  85. bool "Enable UART2"
  86. default n
  87. config BSP_UART2_RX_USING_DMA
  88. bool "Enable UART2 RX DMA"
  89. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  90. default n
  91. config BSP_USING_UART3
  92. bool "Enable UART3"
  93. default n
  94. config BSP_UART3_RX_USING_DMA
  95. bool "Enable UART3 RX DMA"
  96. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  97. default n
  98. endif
  99. config BSP_USING_ON_CHIP_FLASH
  100. bool "Enable on-chip FLASH"
  101. default n
  102. menuconfig BSP_USING_CAN
  103. bool "Enable CAN"
  104. default n
  105. select RT_USING_CAN
  106. if BSP_USING_CAN
  107. config BSP_USING_CAN1
  108. bool "Enable CAN1"
  109. default n
  110. endif
  111. menuconfig BSP_USING_SPI
  112. bool "Enable SPI BUS"
  113. default n
  114. select RT_USING_SPI
  115. if BSP_USING_SPI
  116. config BSP_USING_SPI1
  117. bool "Enable SPI1 BUS"
  118. default n
  119. config BSP_SPI1_TX_USING_DMA
  120. bool "Enable SPI1 TX DMA"
  121. depends on BSP_USING_SPI1
  122. default n
  123. config BSP_SPI1_RX_USING_DMA
  124. bool "Enable SPI1 RX DMA"
  125. depends on BSP_USING_SPI1
  126. select BSP_SPI1_TX_USING_DMA
  127. default n
  128. config BSP_USING_SPI2
  129. bool "Enable SPI2 BUS"
  130. default n
  131. config BSP_SPI2_TX_USING_DMA
  132. bool "Enable SPI2 TX DMA"
  133. depends on BSP_USING_SPI2
  134. default n
  135. config BSP_SPI2_RX_USING_DMA
  136. bool "Enable SPI2 RX DMA"
  137. depends on BSP_USING_SPI2
  138. select BSP_SPI2_TX_USING_DMA
  139. default n
  140. config BSP_USING_SPI5
  141. bool "Enable SPI5 BUS"
  142. default n
  143. config BSP_SPI5_TX_USING_DMA
  144. bool "Enable SPI5 TX DMA"
  145. depends on BSP_USING_SPI5
  146. default n
  147. config BSP_SPI5_RX_USING_DMA
  148. bool "Enable SPI5 RX DMA"
  149. depends on BSP_USING_SPI5
  150. select BSP_SPI5_TX_USING_DMA
  151. default n
  152. endif
  153. menuconfig BSP_USING_I2C1
  154. bool "Enable I2C1 BUS (software simulation)"
  155. default n
  156. select RT_USING_I2C
  157. select RT_USING_I2C_BITOPS
  158. select RT_USING_PIN
  159. if BSP_USING_I2C1
  160. comment "Notice: PH4 --> 116; PH5 --> 117"
  161. config BSP_I2C1_SCL_PIN
  162. int "I2C1 scl pin number"
  163. range 1 176
  164. default 116
  165. config BSP_I2C1_SDA_PIN
  166. int "I2C1 sda pin number"
  167. range 1 176
  168. default 117
  169. endif
  170. menuconfig BSP_USING_TIM
  171. bool "Enable timer"
  172. default n
  173. select RT_USING_HWTIMER
  174. if BSP_USING_TIM
  175. config BSP_USING_TIM11
  176. bool "Enable TIM11"
  177. default n
  178. config BSP_USING_TIM13
  179. bool "Enable TIM13"
  180. default n
  181. config BSP_USING_TIM14
  182. bool "Enable TIM14"
  183. default n
  184. endif
  185. menuconfig BSP_USING_PWM
  186. bool "Enable pwm"
  187. default n
  188. select RT_USING_PWM
  189. if BSP_USING_PWM
  190. menuconfig BSP_USING_PWM2
  191. bool "Enable timer2 output pwm"
  192. default n
  193. if BSP_USING_PWM2
  194. config BSP_USING_PWM2_CH4
  195. bool "Enable PWM2 channel4"
  196. default n
  197. endif
  198. endif
  199. menuconfig BSP_USING_ADC
  200. bool "Enable ADC"
  201. default n
  202. select RT_USING_ADC
  203. if BSP_USING_ADC
  204. config BSP_USING_ADC1
  205. bool "Enable ADC1"
  206. default n
  207. endif
  208. menuconfig BSP_USING_ONCHIP_RTC
  209. bool "Enable RTC"
  210. select RT_USING_RTC
  211. select RT_USING_LIBC
  212. default n
  213. if BSP_USING_ONCHIP_RTC
  214. choice
  215. prompt "Select clock source"
  216. default BSP_RTC_USING_LSE
  217. config BSP_RTC_USING_LSE
  218. bool "RTC USING LSE"
  219. config BSP_RTC_USING_LSI
  220. bool "RTC USING LSI"
  221. endchoice
  222. endif
  223. config BSP_USING_WDT
  224. bool "Enable Watchdog Timer"
  225. select RT_USING_WDT
  226. default n
  227. config BSP_USING_SDIO
  228. bool "Enable SDIO"
  229. select RT_USING_SDIO
  230. select RT_USING_DFS
  231. default n
  232. config BSP_USING_FMC
  233. bool
  234. default n
  235. source "../libraries/HAL_Drivers/Kconfig"
  236. endmenu
  237. menu "Board extended module Drivers"
  238. endmenu
  239. endmenu