Kconfig 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. menu "Hardware Drivers Config"
  2. config SOC_STM32F767IG
  3. bool
  4. select SOC_SERIES_STM32F7
  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_RS232
  13. bool "Enable RS232 (uart2 pin conflict with Ethernet)"
  14. select BSP_USING_UART
  15. select BSP_USING_UART2
  16. default n
  17. config BSP_USING_SDRAM
  18. bool "Enable SDRAM"
  19. default n
  20. config BSP_USING_QSPI_FLASH
  21. bool "Enable QSPI FLASH (W25Q256 qspi)"
  22. select BSP_USING_QSPI
  23. select RT_USING_SFUD
  24. select RT_SFUD_USING_QSPI
  25. default n
  26. config BSP_USING_MPU9250
  27. bool "Enable MPU 9250 (i2c2)"
  28. select BSP_USING_I2C2
  29. select PKG_USING_MPU6XXX
  30. default n
  31. config PHY_USING_LAN8720A
  32. bool
  33. config BSP_USING_ETH
  34. bool "Enable Ethernet"
  35. select BSP_USING_I2C2
  36. select PKG_USING_PCF8574
  37. select RT_USING_LWIP
  38. select PHY_USING_LAN8720A
  39. default n
  40. config BSP_USING_POT
  41. bool "Enable potentiometer"
  42. select BSP_USING_ADC
  43. select BSP_USING_ADC1
  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 n
  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. endif
  77. config BSP_USING_ON_CHIP_FLASH
  78. bool "Enable on-chip FLASH"
  79. default n
  80. menuconfig BSP_USING_SPI
  81. bool "Enable SPI BUS"
  82. default n
  83. select RT_USING_SPI
  84. if BSP_USING_SPI
  85. config BSP_USING_SPI1
  86. bool "Enable SPI1 BUS"
  87. default n
  88. config BSP_SPI1_TX_USING_DMA
  89. bool "Enable SPI1 TX DMA"
  90. depends on BSP_USING_SPI1
  91. default n
  92. config BSP_SPI1_RX_USING_DMA
  93. bool "Enable SPI1 RX DMA"
  94. depends on BSP_USING_SPI1
  95. select BSP_SPI1_TX_USING_DMA
  96. default n
  97. config BSP_USING_SPI2
  98. bool "Enable SPI2 BUS"
  99. default n
  100. config BSP_SPI2_TX_USING_DMA
  101. bool "Enable SPI2 TX DMA"
  102. depends on BSP_USING_SPI2
  103. default n
  104. config BSP_SPI2_RX_USING_DMA
  105. bool "Enable SPI2 RX DMA"
  106. depends on BSP_USING_SPI2
  107. select BSP_SPI2_TX_USING_DMA
  108. default n
  109. endif
  110. config BSP_USING_QSPI
  111. bool "Enable QSPI BUS"
  112. select RT_USING_QSPI
  113. select RT_USING_SPI
  114. default n
  115. config BSP_QSPI_USING_DMA
  116. bool "Enable QSPI DMA support"
  117. default n
  118. menuconfig BSP_USING_TIM
  119. bool "Enable timer"
  120. default n
  121. select RT_USING_HWTIMER
  122. if BSP_USING_TIM
  123. config BSP_USING_TIM11
  124. bool "Enable TIM11"
  125. default n
  126. endif
  127. menuconfig BSP_USING_PWM
  128. bool "Enable pwm"
  129. default n
  130. select RT_USING_PWM
  131. if BSP_USING_PWM
  132. menuconfig BSP_USING_PWM3
  133. bool "Enable timer3 output pwm"
  134. default n
  135. if BSP_USING_PWM3
  136. config BSP_USING_PWM3_CH3
  137. bool "Enable PWM3 channel3"
  138. default n
  139. endif
  140. endif
  141. menuconfig BSP_USING_ADC
  142. bool "Enable ADC"
  143. default n
  144. select RT_USING_ADC
  145. if BSP_USING_ADC
  146. config BSP_USING_ADC1
  147. bool "Enable ADC1"
  148. default n
  149. endif
  150. menuconfig BSP_USING_I2C1
  151. bool "Enable I2C1 BUS (software simulation)"
  152. default n
  153. select RT_USING_I2C
  154. select RT_USING_I2C_BITOPS
  155. select RT_USING_PIN
  156. if BSP_USING_I2C1
  157. comment "Notice: PB8 --> 24; PB9 --> 25"
  158. config BSP_I2C1_SCL_PIN
  159. int "I2C1 scl pin number"
  160. range 1 176
  161. default 24
  162. config BSP_I2C1_SDA_PIN
  163. int "I2C1 sda pin number"
  164. range 1 176
  165. default 25
  166. endif
  167. menuconfig BSP_USING_I2C2
  168. bool "Enable I2C2 BUS (software simulation)"
  169. default n
  170. select RT_USING_I2C
  171. select RT_USING_I2C_BITOPS
  172. select RT_USING_PIN
  173. if BSP_USING_I2C2
  174. comment "Notice: PH4 --> 116; PH5 --> 117"
  175. config BSP_I2C2_SCL_PIN
  176. int "i2c2 scl pin number"
  177. range 1 176
  178. default 116
  179. config BSP_I2C2_SDA_PIN
  180. int "I2C2 sda pin number"
  181. range 1 176
  182. default 117
  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