Kconfig 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. menu "Hardware Drivers Config"
  2. config SOC_STM32F103RB
  3. bool
  4. select SOC_SERIES_STM32F1
  5. default y
  6. menu "Onboard Peripheral Drivers"
  7. config BSP_USING_USB_TO_USART
  8. bool "Enable USB TO USART (uart1)"
  9. select BSP_USING_UART
  10. select BSP_USING_UART1
  11. default y
  12. config BSP_USING_EEPROM
  13. bool "Enable I2C EEPROM (i2c1)"
  14. select BSP_USING_I2C1
  15. default n
  16. config BSP_USING_SPI_FLASH
  17. bool "Enable SPI FLASH (w25q16 spi2)"
  18. select BSP_USING_SPI
  19. select BSP_USING_SPI2
  20. select RT_USING_SFUD
  21. select RT_SFUD_USING_SFDP
  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. endmenu
  29. menu "On-chip Peripheral Drivers"
  30. config BSP_USING_GPIO
  31. bool "Enable GPIO"
  32. select RT_USING_PIN
  33. default y
  34. menuconfig BSP_USING_UART
  35. bool "Enable UART"
  36. default y
  37. select RT_USING_SERIAL
  38. if BSP_USING_UART
  39. config BSP_USING_UART1
  40. bool "Enable UART1"
  41. default y
  42. config BSP_UART1_RX_USING_DMA
  43. bool "Enable UART1 RX DMA"
  44. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  45. default n
  46. config BSP_USING_UART2
  47. bool "Enable UART2"
  48. default n
  49. config BSP_UART2_RX_USING_DMA
  50. bool "Enable UART2 RX DMA"
  51. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  52. default n
  53. config BSP_USING_UART3
  54. bool "Enable UART3"
  55. default n
  56. config BSP_UART3_RX_USING_DMA
  57. bool "Enable UART3 RX DMA"
  58. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  59. default n
  60. endif
  61. config BSP_USING_UART1
  62. bool "Enable UART1"
  63. select RT_USING_SERIAL
  64. default y
  65. config BSP_USING_UART2
  66. bool "Enable UART2"
  67. select RT_USING_SERIAL
  68. default n
  69. config BSP_USING_UART3
  70. bool "Enable UART3"
  71. select RT_USING_SERIAL
  72. default n
  73. menuconfig BSP_USING_TIM
  74. bool "Enable timer"
  75. default n
  76. select RT_USING_HWTIMER
  77. if BSP_USING_TIM
  78. config BSP_USING_TIM2
  79. bool "Enable TIM2"
  80. default n
  81. config BSP_USING_TIM3
  82. bool "Enable TIM3"
  83. default n
  84. config BSP_USING_TIM4
  85. bool "Enable TIM4"
  86. default n
  87. endif
  88. menuconfig BSP_USING_PWM
  89. bool "Enable pwm"
  90. default n
  91. select RT_USING_PWM
  92. if BSP_USING_PWM
  93. menuconfig BSP_USING_PWM3
  94. bool "Enable timer3 output pwm"
  95. default n
  96. if BSP_USING_PWM3
  97. config BSP_USING_PWM3_CH1
  98. bool "Enable PWM3 channel1"
  99. default n
  100. config BSP_USING_PWM3_CH2
  101. bool "Enable PWM3 channel2"
  102. default n
  103. endif
  104. endif
  105. menuconfig BSP_USING_SPI
  106. bool "Enable SPI BUS"
  107. default n
  108. select RT_USING_SPI
  109. if BSP_USING_SPI
  110. config BSP_USING_SPI1
  111. bool "Enable SPI1 BUS"
  112. default n
  113. config BSP_SPI1_TX_USING_DMA
  114. bool "Enable SPI1 TX DMA"
  115. depends on BSP_USING_SPI1
  116. default n
  117. config BSP_SPI1_RX_USING_DMA
  118. bool "Enable SPI1 RX DMA"
  119. depends on BSP_USING_SPI1
  120. select BSP_SPI1_TX_USING_DMA
  121. default n
  122. config BSP_USING_SPI2
  123. bool "Enable SPI2 BUS"
  124. default n
  125. config BSP_SPI2_TX_USING_DMA
  126. bool "Enable SPI2 TX DMA"
  127. depends on BSP_USING_SPI2
  128. default n
  129. config BSP_SPI2_RX_USING_DMA
  130. bool "Enable SPI2 RX DMA"
  131. depends on BSP_USING_SPI2
  132. select BSP_SPI2_TX_USING_DMA
  133. default n
  134. endif
  135. menuconfig BSP_USING_I2C1
  136. bool "Enable I2C1 BUS (software simulation)"
  137. default n
  138. select RT_USING_I2C
  139. select RT_USING_I2C_BITOPS
  140. select RT_USING_PIN
  141. if BSP_USING_I2C1
  142. config BSP_I2C1_SCL_PIN
  143. int "i2c1 scl pin number"
  144. range 0 63
  145. default 22
  146. config BSP_I2C1_SDA_PIN
  147. int "I2C1 sda pin number"
  148. range 0 63
  149. default 23
  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. config BSP_USING_ON_CHIP_FLASH
  161. bool "Enable on-chip FLASH"
  162. default n
  163. config BSP_USING_ONCHIP_RTC
  164. bool "Enable RTC"
  165. select RT_USING_RTC
  166. select RT_USING_LIBC
  167. default n
  168. config BSP_USING_WDT
  169. bool "Enable Watchdog Timer"
  170. select RT_USING_WDT
  171. default n
  172. endmenu
  173. menu "Board extended module Drivers"
  174. endmenu
  175. endmenu