Kconfig 6.5 KB

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