Kconfig 7.9 KB

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