Kconfig 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. menu "Hardware Drivers Config"
  2. config SOC_STM32F103ZE
  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_RS485_OR_RS232
  12. bool "Enable RS485/RS232 (uart2 be shared)"
  13. select BSP_USING_UART2
  14. default n
  15. config BSP_USING_SPI_FLASH
  16. bool "Enable SPI FLASH (w25q64 spi1)"
  17. select BSP_USING_SPI1
  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. config BSP_USING_EEPROM
  27. bool "Enable I2C EEPROM (i2c1)"
  28. select BSP_USING_I2C1
  29. default n
  30. config BSP_USING_ETH
  31. bool "Enable Ethernet Driver (spi2)"
  32. default n
  33. select PKG_USING_WIZNET
  34. select WIZNET_DEVICE_EXTERN_CONFIG
  35. select BSP_USING_SPI2
  36. if BSP_USING_ETH
  37. if WIZNET_DEVICE_EXTERN_CONFIG
  38. config WIZ_SPI_DEVICE
  39. string
  40. default "spi20"
  41. config WIZ_RST_PIN
  42. int
  43. default 111
  44. config WIZ_IRQ_PIN
  45. int
  46. default 104
  47. endif
  48. config EXTERNAL_PHY_ADDRESS
  49. hex
  50. default 0x00
  51. endif
  52. endmenu
  53. menu "On-chip Peripheral Drivers"
  54. config BSP_USING_GPIO
  55. bool "Enable GPIO"
  56. select RT_USING_PIN
  57. default y
  58. config BSP_USING_UART1
  59. bool "Enable UART1"
  60. select RT_USING_SERIAL
  61. default y
  62. config BSP_USING_UART2
  63. bool "Enable UART2"
  64. select RT_USING_SERIAL
  65. default n
  66. config BSP_USING_UART3
  67. bool "Enable UART3"
  68. select RT_USING_SERIAL
  69. default n
  70. config BSP_UART_USING_DMA_RX
  71. bool "Enable UART RX DMA support"
  72. default n
  73. config BSP_USING_ON_CHIP_FLASH
  74. bool "Enable on-chip FLASH"
  75. default n
  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_USING_SPI3
  85. bool "Enable SPI3 BUS"
  86. select RT_USING_SPI
  87. default n
  88. config BSP_SPI_USING_DMA
  89. bool "Enable SPI DMA support"
  90. default n
  91. menuconfig BSP_USING_I2C1
  92. bool "Enable I2C1 BUS (software simulation)"
  93. default n
  94. select RT_USING_I2C
  95. select RT_USING_I2C_BITOPS
  96. select RT_USING_PIN
  97. if BSP_USING_I2C1
  98. config BSP_I2C1_SCL_PIN
  99. int "i2c1 scl pin number"
  100. range 0 175
  101. default 22
  102. config BSP_I2C1_SDA_PIN
  103. int "I2C1 sda pin number"
  104. range 0 175
  105. default 23
  106. endif
  107. menuconfig BSP_USING_ADC
  108. bool "Enable ADC"
  109. default n
  110. select RT_USING_ADC
  111. if BSP_USING_ADC
  112. config BSP_USING_ADC1
  113. bool "Enable ADC1"
  114. default n
  115. config BSP_USING_ADC2
  116. bool "Enable ADC2"
  117. default n
  118. config BSP_USING_ADC3
  119. bool "Enable ADC3"
  120. default n
  121. endif
  122. config BSP_USING_ONCHIP_RTC
  123. bool "Enable RTC"
  124. select RT_USING_RTC
  125. select RT_USING_LIBC
  126. default n
  127. config BSP_USING_WDT
  128. bool "Enable Watchdog Timer"
  129. select RT_USING_WDT
  130. default n
  131. endmenu
  132. menu "Board extended module Drivers"
  133. endmenu
  134. endmenu