Kconfig 5.8 KB

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