Kconfig 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  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. default n
  24. config BSP_USING_SPI_FLASH
  25. bool "Enable SPI FLASH (w25q256 spi5)"
  26. select BSP_USING_SPI
  27. select BSP_USING_SPI5
  28. select RT_USING_SFUD
  29. select RT_SFUD_USING_SFDP
  30. default n
  31. config BSP_USING_MPU9250
  32. bool "Enable MPU 9250 (i2c1)"
  33. select BSP_USING_I2C1
  34. select PKG_USING_MPU6XXX
  35. default n
  36. config PHY_USING_LAN8720A
  37. bool
  38. config BSP_USING_ETH
  39. bool "Enable Ethernet"
  40. select BSP_USING_I2C1
  41. select PKG_USING_PCF8574
  42. select RT_USING_LWIP
  43. select PHY_USING_LAN8720A
  44. default n
  45. config BSP_USING_SDCARD
  46. bool "Enable SDCARD (sdio)"
  47. select BSP_USING_SDIO
  48. select RT_USING_DFS
  49. select RT_USING_DFS_ELMFAT
  50. default n
  51. endmenu
  52. menu "On-chip Peripheral Drivers"
  53. config BSP_USING_GPIO
  54. bool "Enable GPIO"
  55. select RT_USING_PIN
  56. default y
  57. menuconfig BSP_USING_UART
  58. bool "Enable UART"
  59. default y
  60. select RT_USING_SERIAL
  61. if BSP_USING_UART
  62. config BSP_USING_UART1
  63. bool "Enable UART1"
  64. default y
  65. config BSP_UART1_RX_USING_DMA
  66. bool "Enable UART1 RX DMA"
  67. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  68. default y
  69. config BSP_USING_UART2
  70. bool "Enable UART2"
  71. default n
  72. config BSP_UART2_RX_USING_DMA
  73. bool "Enable UART2 RX DMA"
  74. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  75. default n
  76. config BSP_USING_UART3
  77. bool "Enable UART3"
  78. default n
  79. config BSP_UART3_RX_USING_DMA
  80. bool "Enable UART3 RX DMA"
  81. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  82. default n
  83. endif
  84. config BSP_USING_ON_CHIP_FLASH
  85. bool "Enable on-chip FLASH"
  86. default n
  87. menuconfig BSP_USING_SPI
  88. bool "Enable SPI BUS"
  89. default n
  90. select RT_USING_SPI
  91. if BSP_USING_SPI
  92. config BSP_USING_SPI1
  93. bool "Enable SPI1 BUS"
  94. default n
  95. config BSP_SPI1_TX_USING_DMA
  96. bool "Enable SPI1 TX DMA"
  97. depends on BSP_USING_SPI1
  98. default n
  99. config BSP_SPI1_RX_USING_DMA
  100. bool "Enable SPI1 RX DMA"
  101. depends on BSP_USING_SPI1
  102. select BSP_SPI1_TX_USING_DMA
  103. default n
  104. config BSP_USING_SPI2
  105. bool "Enable SPI2 BUS"
  106. default n
  107. config BSP_SPI2_TX_USING_DMA
  108. bool "Enable SPI2 TX DMA"
  109. depends on BSP_USING_SPI2
  110. default n
  111. config BSP_SPI2_RX_USING_DMA
  112. bool "Enable SPI2 RX DMA"
  113. depends on BSP_USING_SPI2
  114. select BSP_SPI2_TX_USING_DMA
  115. default n
  116. config BSP_USING_SPI5
  117. bool "Enable SPI5 BUS"
  118. default n
  119. config BSP_SPI5_TX_USING_DMA
  120. bool "Enable SPI5 TX DMA"
  121. depends on BSP_USING_SPI5
  122. default n
  123. config BSP_SPI5_RX_USING_DMA
  124. bool "Enable SPI5 RX DMA"
  125. depends on BSP_USING_SPI5
  126. select BSP_SPI5_TX_USING_DMA
  127. default n
  128. endif
  129. menuconfig BSP_USING_I2C1
  130. bool "Enable I2C1 BUS (software simulation)"
  131. default n
  132. select RT_USING_I2C
  133. select RT_USING_I2C_BITOPS
  134. select RT_USING_PIN
  135. if BSP_USING_I2C1
  136. comment "Notice: PH4 --> 116; PH5 --> 117"
  137. config BSP_I2C1_SCL_PIN
  138. int "I2C1 scl pin number"
  139. range 1 176
  140. default 116
  141. config BSP_I2C1_SDA_PIN
  142. int "I2C1 sda pin number"
  143. range 1 176
  144. default 117
  145. endif
  146. menuconfig BSP_USING_TIM
  147. bool "Enable timer"
  148. default n
  149. select RT_USING_HWTIMER
  150. if BSP_USING_TIM
  151. config BSP_USING_TIM11
  152. bool "Enable TIM11"
  153. default n
  154. config BSP_USING_TIM13
  155. bool "Enable TIM13"
  156. default n
  157. config BSP_USING_TIM14
  158. bool "Enable TIM14"
  159. default n
  160. endif
  161. menuconfig BSP_USING_PWM
  162. bool "Enable pwm"
  163. default n
  164. select RT_USING_PWM
  165. if BSP_USING_PWM
  166. menuconfig BSP_USING_PWM2
  167. bool "Enable timer2 output pwm"
  168. default n
  169. if BSP_USING_PWM2
  170. config BSP_USING_PWM2_CH4
  171. bool "Enable PWM2 channel4"
  172. default n
  173. endif
  174. endif
  175. menuconfig BSP_USING_ADC
  176. bool "Enable ADC"
  177. default n
  178. select RT_USING_ADC
  179. if BSP_USING_ADC
  180. config BSP_USING_ADC1
  181. bool "Enable ADC1"
  182. default n
  183. endif
  184. config BSP_USING_ONCHIP_RTC
  185. bool "Enable RTC"
  186. select RT_USING_RTC
  187. select RT_USING_LIBC
  188. default n
  189. config BSP_USING_WDT
  190. bool "Enable Watchdog Timer"
  191. select RT_USING_WDT
  192. default n
  193. config BSP_USING_SDIO
  194. bool "Enable SDIO"
  195. select RT_USING_SDIO
  196. select RT_USING_DFS
  197. default n
  198. endmenu
  199. menu "Board extended module Drivers"
  200. endmenu
  201. endmenu