Kconfig 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  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. menuconfig BSP_USING_TIM
  62. bool "Enable timer"
  63. default n
  64. select RT_USING_HWTIMER
  65. if BSP_USING_TIM
  66. config BSP_USING_TIM2
  67. bool "Enable TIM2"
  68. default n
  69. config BSP_USING_TIM3
  70. bool "Enable TIM3"
  71. default n
  72. config BSP_USING_TIM4
  73. bool "Enable TIM4"
  74. default n
  75. endif
  76. menuconfig BSP_USING_PWM
  77. bool "Enable pwm"
  78. default n
  79. select RT_USING_PWM
  80. if BSP_USING_PWM
  81. menuconfig BSP_USING_PWM3
  82. bool "Enable timer3 output pwm"
  83. default n
  84. if BSP_USING_PWM3
  85. config BSP_USING_PWM3_CH1
  86. bool "Enable PWM3 channel1"
  87. default n
  88. config BSP_USING_PWM3_CH2
  89. bool "Enable PWM3 channel2"
  90. default n
  91. endif
  92. endif
  93. menuconfig BSP_USING_SPI
  94. bool "Enable SPI BUS"
  95. default n
  96. select RT_USING_SPI
  97. if BSP_USING_SPI
  98. config BSP_USING_SPI1
  99. bool "Enable SPI1 BUS"
  100. default n
  101. config BSP_SPI1_TX_USING_DMA
  102. bool "Enable SPI1 TX DMA"
  103. depends on BSP_USING_SPI1
  104. default n
  105. config BSP_SPI1_RX_USING_DMA
  106. bool "Enable SPI1 RX DMA"
  107. depends on BSP_USING_SPI1
  108. select BSP_SPI1_TX_USING_DMA
  109. default n
  110. config BSP_USING_SPI2
  111. bool "Enable SPI2 BUS"
  112. default n
  113. config BSP_SPI2_TX_USING_DMA
  114. bool "Enable SPI2 TX DMA"
  115. depends on BSP_USING_SPI2
  116. default n
  117. config BSP_SPI2_RX_USING_DMA
  118. bool "Enable SPI2 RX DMA"
  119. depends on BSP_USING_SPI2
  120. select BSP_SPI2_TX_USING_DMA
  121. default n
  122. endif
  123. menuconfig BSP_USING_I2C1
  124. bool "Enable I2C1 BUS (software simulation)"
  125. default n
  126. select RT_USING_I2C
  127. select RT_USING_I2C_BITOPS
  128. select RT_USING_PIN
  129. if BSP_USING_I2C1
  130. config BSP_I2C1_SCL_PIN
  131. int "i2c1 scl pin number"
  132. range 0 63
  133. default 22
  134. config BSP_I2C1_SDA_PIN
  135. int "I2C1 sda pin number"
  136. range 0 63
  137. default 23
  138. endif
  139. menuconfig BSP_USING_ADC
  140. bool "Enable ADC"
  141. default n
  142. select RT_USING_ADC
  143. if BSP_USING_ADC
  144. config BSP_USING_ADC1
  145. bool "Enable ADC1"
  146. default n
  147. endif
  148. config BSP_USING_ON_CHIP_FLASH
  149. bool "Enable on-chip FLASH"
  150. default n
  151. config BSP_USING_ONCHIP_RTC
  152. bool "Enable RTC"
  153. select RT_USING_RTC
  154. select RT_USING_LIBC
  155. default n
  156. config BSP_USING_WDT
  157. bool "Enable Watchdog Timer"
  158. select RT_USING_WDT
  159. default n
  160. endmenu
  161. menu "Board extended module Drivers"
  162. endmenu
  163. endmenu