Kconfig 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. menu "Hardware Drivers Config"
  2. config SOC_STM32F746ZG
  3. bool
  4. select SOC_SERIES_STM32F7
  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 (uart3)"
  11. select BSP_USING_UART3
  12. default y
  13. config BSP_USING_ETH
  14. bool "Enable Ethernet"
  15. select RT_USING_LWIP
  16. default n
  17. if BSP_USING_ETH
  18. choice
  19. prompt "On-board PHY chip"
  20. default PHY_USING_LAN8742A
  21. config PHY_USING_LAN8720A
  22. bool "LAN8720A"
  23. config PHY_USING_DM9161CEP
  24. bool "DM9161CEP"
  25. config PHY_USING_LAN8742A
  26. bool "LAN8742A"
  27. endchoice
  28. endif
  29. endmenu
  30. menu "On-chip Peripheral Drivers"
  31. config BSP_USING_GPIO
  32. bool "Enable GPIO"
  33. select RT_USING_PIN
  34. default y
  35. menuconfig BSP_USING_UART
  36. bool "Enable UART"
  37. default y
  38. select RT_USING_SERIAL
  39. if BSP_USING_UART
  40. config BSP_USING_UART3
  41. bool "Enable UART3"
  42. default n
  43. config BSP_UART3_RX_USING_DMA
  44. bool "Enable UART3 RX DMA"
  45. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  46. default n
  47. config BSP_USING_UART5
  48. bool "Enable UART5"
  49. default n
  50. config BSP_UART5_RX_USING_DMA
  51. bool "Enable UART5 RX DMA"
  52. depends on BSP_USING_UART5 && RT_SERIAL_USING_DMA
  53. default n
  54. endif
  55. menuconfig BSP_USING_SPI
  56. bool "Enable SPI BUS"
  57. default n
  58. select RT_USING_SPI
  59. if BSP_USING_SPI
  60. config BSP_USING_SPI1
  61. bool "Enable SPI1 BUS"
  62. default n
  63. config BSP_SPI1_TX_USING_DMA
  64. bool "Enable SPI1 TX DMA"
  65. depends on BSP_USING_SPI1
  66. default n
  67. config BSP_SPI1_RX_USING_DMA
  68. bool "Enable SPI1 RX DMA"
  69. depends on BSP_USING_SPI1
  70. select BSP_SPI1_TX_USING_DMA
  71. default n
  72. config BSP_USING_SPI2
  73. bool "Enable SPI2 BUS"
  74. default n
  75. config BSP_SPI2_TX_USING_DMA
  76. bool "Enable SPI2 TX DMA"
  77. depends on BSP_USING_SPI2
  78. default n
  79. config BSP_SPI2_RX_USING_DMA
  80. bool "Enable SPI2 RX DMA"
  81. depends on BSP_USING_SPI2
  82. select BSP_SPI2_TX_USING_DMA
  83. default n
  84. config BSP_USING_SPI3
  85. bool "Enable SPI3 BUS"
  86. default n
  87. config BSP_SPI3_TX_USING_DMA
  88. bool "Enable SPI3 TX DMA"
  89. depends on BSP_USING_SPI3
  90. default n
  91. config BSP_SPI3_RX_USING_DMA
  92. bool "Enable SPI3 RX DMA"
  93. depends on BSP_USING_SPI3
  94. select BSP_SPI3_TX_USING_DMA
  95. default n
  96. endif
  97. menuconfig BSP_USING_I2C1
  98. bool "Enable I2C1 BUS (software simulation)"
  99. default n
  100. select RT_USING_I2C
  101. select RT_USING_I2C_BITOPS
  102. select RT_USING_PIN
  103. if BSP_USING_I2C1
  104. config BSP_I2C1_SCL_PIN
  105. int "i2c1 scl pin number"
  106. range 0 175
  107. default 22
  108. config BSP_I2C1_SDA_PIN
  109. int "I2C1 sda pin number"
  110. range 0 175
  111. default 23
  112. endif
  113. menuconfig BSP_USING_TIM
  114. bool "Enable timer"
  115. default n
  116. select RT_USING_HWTIMER
  117. if BSP_USING_TIM
  118. config BSP_USING_TIM2
  119. bool "Enable TIM2"
  120. default n
  121. config BSP_USING_TIM3
  122. bool "Enable TIM3"
  123. default n
  124. config BSP_USING_TIM4
  125. bool "Enable TIM4"
  126. default n
  127. config BSP_USING_TIM5
  128. bool "Enable TIM5"
  129. default n
  130. endif
  131. menuconfig BSP_USING_PWM
  132. bool "Enable PWM"
  133. default n
  134. select RT_USING_PWM
  135. if BSP_USING_PWM
  136. menuconfig BSP_USING_PWM3
  137. bool "Enable timer3 output PWM"
  138. default n
  139. if BSP_USING_PWM3
  140. config BSP_USING_PWM3_CH2
  141. bool "Enable PWM3 channel2"
  142. default n
  143. config BSP_USING_PWM3_CH3
  144. bool "Enable PWM3 channel3"
  145. default n
  146. config BSP_USING_PWM3_CH4
  147. bool "Enable PWM3 channel4"
  148. default n
  149. endif
  150. endif
  151. menuconfig BSP_USING_ADC
  152. bool "Enable ADC"
  153. default n
  154. select RT_USING_ADC
  155. if BSP_USING_ADC
  156. config BSP_USING_ADC1
  157. bool "Enable ADC1"
  158. default n
  159. endif
  160. menuconfig BSP_USING_ONCHIP_RTC
  161. bool "Enable RTC"
  162. select RT_USING_RTC
  163. default n
  164. if BSP_USING_ONCHIP_RTC
  165. choice
  166. prompt "Select clock source"
  167. default BSP_RTC_USING_LSE
  168. config BSP_RTC_USING_LSE
  169. bool "RTC USING LSE"
  170. config BSP_RTC_USING_LSI
  171. bool "RTC USING LSI"
  172. endchoice
  173. endif
  174. config BSP_USING_WDT
  175. bool "Enable Watchdog Timer"
  176. select RT_USING_WDT
  177. default n
  178. config BSP_USING_SDIO
  179. bool "Enable SDIO"
  180. select RT_USING_SDIO
  181. select RT_USING_DFS
  182. default n
  183. menuconfig BSP_USING_CAN
  184. bool "Enable CAN"
  185. default n
  186. select RT_USING_CAN
  187. if BSP_USING_CAN
  188. config BSP_USING_CAN1
  189. bool "using CAN1"
  190. default n
  191. endif
  192. config BSP_USING_USBD
  193. bool "Enable USB device"
  194. select RT_USING_USB_DEVICE
  195. default n
  196. if BSP_USING_USBD
  197. config BSP_USB_CONNECT_PIN
  198. int "USB connect pin"
  199. default 67
  200. config BSP_USB_PULL_UP_STATUS
  201. int "USB PULL UP STATUS"
  202. default 0
  203. endif
  204. source "../libraries/HAL_Drivers/Kconfig"
  205. endmenu
  206. menu "Board extended module Drivers"
  207. endmenu
  208. endmenu