Kconfig 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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_UART1
  10. default y
  11. config BSP_USING_EEPROM
  12. bool "Enable I2C EEPROM (i2c1)"
  13. select BSP_USING_I2C1
  14. default n
  15. config BSP_USING_SPI_FLASH
  16. bool "Enable SPI FLASH (w25q16 spi2)"
  17. select BSP_USING_SPI2
  18. select RT_USING_SFUD
  19. select RT_SFUD_USING_SFDP
  20. default n
  21. config BSP_USING_POT
  22. bool "Enable potentiometer"
  23. select BSP_USING_ADC
  24. select BSP_USING_ADC1
  25. default n
  26. endmenu
  27. menu "On-chip Peripheral Drivers"
  28. config BSP_USING_GPIO
  29. bool "Enable GPIO"
  30. select RT_USING_PIN
  31. default y
  32. config BSP_USING_UART1
  33. bool "Enable UART1"
  34. select RT_USING_SERIAL
  35. default y
  36. config BSP_USING_UART2
  37. bool "Enable UART2"
  38. select RT_USING_SERIAL
  39. default n
  40. config BSP_USING_UART3
  41. bool "Enable UART3"
  42. select RT_USING_SERIAL
  43. default n
  44. menuconfig BSP_USING_TIM
  45. bool "Enable timer"
  46. default n
  47. select RT_USING_HWTIMER
  48. if BSP_USING_TIM
  49. config BSP_USING_TIM2
  50. bool "Enable TIM2"
  51. default n
  52. config BSP_USING_TIM3
  53. bool "Enable TIM3"
  54. default n
  55. config BSP_USING_TIM4
  56. bool "Enable TIM4"
  57. default n
  58. endif
  59. menuconfig BSP_USING_PWM
  60. bool "Enable pwm"
  61. default n
  62. select RT_USING_PWM
  63. if BSP_USING_PWM
  64. menuconfig BSP_USING_PWM3
  65. bool "Enable timer3 output pwm"
  66. default n
  67. if BSP_USING_PWM3
  68. config BSP_USING_PWM3_CH1
  69. bool "Enable PWM3 channel1"
  70. default n
  71. config BSP_USING_PWM3_CH2
  72. bool "Enable PWM3 channel2"
  73. default n
  74. endif
  75. endif
  76. config BSP_USING_SPI1
  77. bool "Enable SPI1 BUS"
  78. select RT_USING_SPI
  79. default n
  80. config BSP_USING_SPI2
  81. bool "Enable SPI2 BUS"
  82. select RT_USING_SPI
  83. default n
  84. config BSP_SPI_USING_DMA
  85. bool "Enable SPI DMA support"
  86. default n
  87. menuconfig BSP_USING_I2C1
  88. bool "Enable I2C1 BUS (software simulation)"
  89. default n
  90. select RT_USING_I2C
  91. select RT_USING_I2C_BITOPS
  92. select RT_USING_PIN
  93. if BSP_USING_I2C1
  94. config BSP_I2C1_SCL_PIN
  95. int "i2c1 scl pin number"
  96. range 0 63
  97. default 22
  98. config BSP_I2C1_SDA_PIN
  99. int "I2C1 sda pin number"
  100. range 0 63
  101. default 23
  102. endif
  103. menuconfig BSP_USING_ADC
  104. bool "Enable ADC"
  105. default n
  106. select RT_USING_ADC
  107. if BSP_USING_ADC
  108. config BSP_USING_ADC1
  109. bool "Enable ADC1"
  110. default n
  111. config BSP_USING_ADC2
  112. bool "Enable ADC2"
  113. default n
  114. endif
  115. config BSP_USING_ON_CHIP_FLASH
  116. bool "Enable on-chip FLASH"
  117. default n
  118. config BSP_USING_ONCHIP_RTC
  119. bool "Enable RTC"
  120. select RT_USING_RTC
  121. select RT_USING_LIBC
  122. default n
  123. config BSP_USING_WDT
  124. bool "Enable Watchdog Timer"
  125. select RT_USING_WDT
  126. default n
  127. endmenu
  128. menu "Board extended module Drivers"
  129. endmenu
  130. endmenu