Kconfig 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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. config BSP_UART_USING_DMA_RX
  45. bool "Enable UART RX DMA support"
  46. default n
  47. config BSP_USING_SPI1
  48. bool "Enable SPI1 BUS"
  49. select RT_USING_SPI
  50. default n
  51. config BSP_USING_SPI2
  52. bool "Enable SPI2 BUS"
  53. select RT_USING_SPI
  54. default n
  55. config BSP_SPI_USING_DMA
  56. bool "Enable SPI DMA support"
  57. default n
  58. menuconfig BSP_USING_I2C1
  59. bool "Enable I2C1 BUS (software simulation)"
  60. default n
  61. select RT_USING_I2C
  62. select RT_USING_I2C_BITOPS
  63. select RT_USING_PIN
  64. if BSP_USING_I2C1
  65. config BSP_I2C1_SCL_PIN
  66. int "i2c1 scl pin number"
  67. range 0 63
  68. default 22
  69. config BSP_I2C1_SDA_PIN
  70. int "I2C1 sda pin number"
  71. range 0 63
  72. default 23
  73. endif
  74. menuconfig BSP_USING_ADC
  75. bool "Enable ADC"
  76. default n
  77. select RT_USING_ADC
  78. if BSP_USING_ADC
  79. config BSP_USING_ADC1
  80. bool "Enable ADC1"
  81. default n
  82. config BSP_USING_ADC2
  83. bool "Enable ADC2"
  84. default n
  85. endif
  86. config BSP_USING_ON_CHIP_FLASH
  87. bool "Enable on-chip FLASH"
  88. default n
  89. config BSP_USING_ONCHIP_RTC
  90. bool "Enable RTC"
  91. select RT_USING_RTC
  92. select RT_USING_LIBC
  93. default n
  94. config BSP_USING_WDT
  95. bool "Enable Watchdog Timer"
  96. select RT_USING_WDT
  97. default n
  98. endmenu
  99. menu "Board extended module Drivers"
  100. endmenu
  101. endmenu