Kconfig 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. menu "Hardware Drivers Config"
  2. config SOC_STM32F103RB
  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. endmenu
  31. menu "On-chip Peripheral Drivers"
  32. config BSP_USING_GPIO
  33. bool "Enable GPIO"
  34. select RT_USING_PIN
  35. default y
  36. menuconfig BSP_USING_UART
  37. bool "Enable UART"
  38. default y
  39. select RT_USING_SERIAL
  40. if BSP_USING_UART
  41. config BSP_USING_UART1
  42. bool "Enable UART1"
  43. default y
  44. config BSP_UART1_RX_USING_DMA
  45. bool "Enable UART1 RX DMA"
  46. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  47. default n
  48. config BSP_USING_UART2
  49. bool "Enable UART2"
  50. default n
  51. config BSP_UART2_RX_USING_DMA
  52. bool "Enable UART2 RX DMA"
  53. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  54. default n
  55. config BSP_USING_UART3
  56. bool "Enable UART3"
  57. default n
  58. config BSP_UART3_RX_USING_DMA
  59. bool "Enable UART3 RX DMA"
  60. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  61. default n
  62. endif
  63. menuconfig BSP_USING_TIM
  64. bool "Enable timer"
  65. default n
  66. select RT_USING_HWTIMER
  67. if BSP_USING_TIM
  68. config BSP_USING_TIM2
  69. bool "Enable TIM2"
  70. default n
  71. config BSP_USING_TIM3
  72. bool "Enable TIM3"
  73. default n
  74. config BSP_USING_TIM4
  75. bool "Enable TIM4"
  76. default n
  77. endif
  78. menuconfig BSP_USING_PWM
  79. bool "Enable PWM"
  80. default n
  81. select RT_USING_PWM
  82. if BSP_USING_PWM
  83. menuconfig BSP_USING_PWM3
  84. bool "Enable timer3 output PWM"
  85. default n
  86. if BSP_USING_PWM3
  87. config BSP_USING_PWM3_CH1
  88. bool "Enable PWM3 channel1"
  89. default n
  90. config BSP_USING_PWM3_CH2
  91. bool "Enable PWM3 channel2"
  92. default n
  93. endif
  94. endif
  95. menuconfig BSP_USING_SPI
  96. bool "Enable SPI BUS"
  97. default n
  98. select RT_USING_SPI
  99. if BSP_USING_SPI
  100. config BSP_USING_SPI1
  101. bool "Enable SPI1 BUS"
  102. default n
  103. config BSP_SPI1_TX_USING_DMA
  104. bool "Enable SPI1 TX DMA"
  105. depends on BSP_USING_SPI1
  106. default n
  107. config BSP_SPI1_RX_USING_DMA
  108. bool "Enable SPI1 RX DMA"
  109. depends on BSP_USING_SPI1
  110. select BSP_SPI1_TX_USING_DMA
  111. default n
  112. config BSP_USING_SPI2
  113. bool "Enable SPI2 BUS"
  114. default n
  115. config BSP_SPI2_TX_USING_DMA
  116. bool "Enable SPI2 TX DMA"
  117. depends on BSP_USING_SPI2
  118. default n
  119. config BSP_SPI2_RX_USING_DMA
  120. bool "Enable SPI2 RX DMA"
  121. depends on BSP_USING_SPI2
  122. select BSP_SPI2_TX_USING_DMA
  123. default n
  124. endif
  125. menuconfig BSP_USING_I2C1
  126. bool "Enable I2C1 BUS (software simulation)"
  127. default n
  128. select RT_USING_I2C
  129. select RT_USING_I2C_BITOPS
  130. select RT_USING_PIN
  131. if BSP_USING_I2C1
  132. config BSP_I2C1_SCL_PIN
  133. int "i2c1 scl pin number"
  134. range 0 63
  135. default 22
  136. config BSP_I2C1_SDA_PIN
  137. int "I2C1 sda pin number"
  138. range 0 63
  139. default 23
  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. config BSP_USING_ON_CHIP_FLASH
  151. bool "Enable on-chip FLASH"
  152. default n
  153. menuconfig BSP_USING_ONCHIP_RTC
  154. bool "Enable RTC"
  155. select RT_USING_RTC
  156. default n
  157. if BSP_USING_ONCHIP_RTC
  158. choice
  159. prompt "Select clock source"
  160. default BSP_RTC_USING_LSE
  161. config BSP_RTC_USING_LSE
  162. bool "RTC USING LSE"
  163. config BSP_RTC_USING_LSI
  164. bool "RTC USING LSI"
  165. endchoice
  166. endif
  167. config BSP_USING_WDT
  168. bool "Enable Watchdog Timer"
  169. select RT_USING_WDT
  170. default n
  171. source "../libraries/HAL_Drivers/Kconfig"
  172. endmenu
  173. menu "Board extended module Drivers"
  174. endmenu
  175. endmenu