Kconfig 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. menu "Hardware Drivers Config"
  2. config SOC_STM32F103ZE
  3. bool
  4. select SOC_SERIES_STM32F1
  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_RGB
  15. bool "Enable RGB LED (timer3 channel2 - 4)"
  16. select RT_USING_PWM
  17. select BSP_USING_PWM
  18. select BSP_USING_PWM3
  19. select BSP_USING_PWM3_CH2
  20. select BSP_USING_PWM3_CH3
  21. select BSP_USING_PWM3_CH4
  22. default n
  23. config BSP_USING_POT
  24. bool "Enable potentiometer"
  25. select BSP_USING_ADC
  26. select BSP_USING_ADC1
  27. default n
  28. config BSP_USING_SPI_FLASH
  29. bool "Enable SPI FLASH (W25Q64 spi1)"
  30. select BSP_USING_SPI
  31. select BSP_USING_SPI1
  32. select RT_USING_SFUD
  33. select RT_SFUD_USING_SFDP
  34. default n
  35. config BSP_USING_EEPROM
  36. bool "Enable I2C EEPROM (i2c1)"
  37. select BSP_USING_I2C1
  38. default n
  39. endmenu
  40. menu "On-chip Peripheral Drivers"
  41. config BSP_USING_GPIO
  42. bool "Enable GPIO"
  43. select RT_USING_PIN
  44. default y
  45. menuconfig BSP_USING_UART
  46. bool "Enable UART"
  47. default y
  48. select RT_USING_SERIAL
  49. if BSP_USING_UART
  50. config BSP_USING_UART1
  51. bool "Enable UART1"
  52. default y
  53. config BSP_UART1_RX_USING_DMA
  54. bool "Enable UART1 RX DMA"
  55. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  56. default n
  57. config BSP_USING_UART2
  58. bool "Enable UART2"
  59. default n
  60. config BSP_UART2_RX_USING_DMA
  61. bool "Enable UART2 RX DMA"
  62. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  63. default n
  64. config BSP_USING_UART3
  65. bool "Enable UART3"
  66. default n
  67. config BSP_UART3_RX_USING_DMA
  68. bool "Enable UART3 RX DMA"
  69. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  70. default n
  71. endif
  72. menuconfig BSP_USING_SPI
  73. bool "Enable SPI BUS"
  74. default n
  75. select RT_USING_SPI
  76. if BSP_USING_SPI
  77. config BSP_USING_SPI1
  78. bool "Enable SPI1 BUS"
  79. default n
  80. config BSP_SPI1_TX_USING_DMA
  81. bool "Enable SPI1 TX DMA"
  82. depends on BSP_USING_SPI1
  83. default n
  84. config BSP_SPI1_RX_USING_DMA
  85. bool "Enable SPI1 RX DMA"
  86. depends on BSP_USING_SPI1
  87. select BSP_SPI1_TX_USING_DMA
  88. default n
  89. config BSP_USING_SPI2
  90. bool "Enable SPI2 BUS"
  91. default n
  92. config BSP_SPI2_TX_USING_DMA
  93. bool "Enable SPI2 TX DMA"
  94. depends on BSP_USING_SPI2
  95. default n
  96. config BSP_SPI2_RX_USING_DMA
  97. bool "Enable SPI2 RX DMA"
  98. depends on BSP_USING_SPI2
  99. select BSP_SPI2_TX_USING_DMA
  100. default n
  101. endif
  102. menuconfig BSP_USING_ADC
  103. bool "Enable ADC"
  104. default n
  105. select RT_USING_ADC
  106. if BSP_USING_ADC
  107. config BSP_USING_ADC1
  108. bool "Enable ADC1"
  109. default n
  110. config BSP_USING_ADC2
  111. bool "Enable ADC2"
  112. default n
  113. config BSP_USING_ADC3
  114. bool "Enable ADC3"
  115. default n
  116. endif
  117. menuconfig BSP_USING_I2C1
  118. bool "Enable I2C1 BUS (software simulation)"
  119. default n
  120. select RT_USING_I2C
  121. select RT_USING_I2C_BITOPS
  122. select RT_USING_PIN
  123. if BSP_USING_I2C1
  124. config BSP_I2C1_SCL_PIN
  125. int "i2c1 scl pin number"
  126. range 0 175
  127. default 22
  128. config BSP_I2C1_SDA_PIN
  129. int "I2C1 sda pin number"
  130. range 0 175
  131. default 23
  132. endif
  133. menuconfig BSP_USING_TIM
  134. bool "Enable timer"
  135. default n
  136. select RT_USING_HWTIMER
  137. if BSP_USING_TIM
  138. config BSP_USING_TIM2
  139. bool "Enable TIM2"
  140. default n
  141. config BSP_USING_TIM3
  142. bool "Enable TIM3"
  143. default n
  144. config BSP_USING_TIM4
  145. bool "Enable TIM4"
  146. default n
  147. config BSP_USING_TIM5
  148. bool "Enable TIM5"
  149. default n
  150. endif
  151. menuconfig BSP_USING_PWM
  152. bool "Enable PWM"
  153. default n
  154. select RT_USING_PWM
  155. if BSP_USING_PWM
  156. menuconfig BSP_USING_PWM3
  157. bool "Enable timer3 output PWM"
  158. default n
  159. if BSP_USING_PWM3
  160. config BSP_USING_PWM3_CH2
  161. bool "Enable PWM3 channel2"
  162. default n
  163. config BSP_USING_PWM3_CH3
  164. bool "Enable PWM3 channel3"
  165. default n
  166. config BSP_USING_PWM3_CH4
  167. bool "Enable PWM3 channel4"
  168. default n
  169. endif
  170. endif
  171. config BSP_USING_CAN
  172. bool "Enable CAN"
  173. select RT_USING_CAN
  174. default n
  175. source "../libraries/HAL_Drivers/Kconfig"
  176. endmenu
  177. menu "Board extended module Drivers"
  178. endmenu
  179. endmenu