Kconfig 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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_RS485_OR_RS232
  8. bool "Enable RS485/RS232 (uart4 be shared)"
  9. select BSP_USING_UART4
  10. default n
  11. config BSP_USING_ETH
  12. bool "Enable Ethernet Driver (spi2)"
  13. default n
  14. select PKG_USING_WIZNET
  15. select WIZNET_DEVICE_EXTERN_CONFIG
  16. select BSP_USING_SPI2
  17. if BSP_USING_ETH
  18. if WIZNET_DEVICE_EXTERN_CONFIG
  19. config WIZ_SPI_DEVICE
  20. string
  21. default "spi20"
  22. config WIZ_RST_PIN
  23. int
  24. default 56
  25. config WIZ_IRQ_PIN
  26. int
  27. default 57
  28. endif
  29. config EXTERNAL_PHY_ADDRESS
  30. hex
  31. default 0x00
  32. endif
  33. endmenu
  34. menu "On-chip Peripheral Drivers"
  35. config BSP_USING_GPIO
  36. bool "Enable GPIO"
  37. select RT_USING_PIN
  38. default y
  39. menuconfig BSP_USING_UART
  40. bool "Enable UART"
  41. default y
  42. select RT_USING_SERIAL
  43. if BSP_USING_UART
  44. config BSP_USING_UART1
  45. bool "Enable UART1"
  46. default y
  47. config BSP_UART1_RX_USING_DMA
  48. bool "Enable UART1 RX DMA"
  49. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  50. default n
  51. config BSP_USING_UART2
  52. bool "Enable UART2"
  53. default n
  54. config BSP_UART2_RX_USING_DMA
  55. bool "Enable UART2 RX DMA"
  56. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  57. default n
  58. config BSP_USING_UART3
  59. bool "Enable UART3"
  60. default n
  61. config BSP_UART3_RX_USING_DMA
  62. bool "Enable UART3 RX DMA"
  63. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  64. default n
  65. config BSP_USING_UART4
  66. bool "Enable UART4"
  67. default n
  68. config BSP_UART4_RX_USING_DMA
  69. bool "Enable UART4 RX DMA"
  70. depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA
  71. endif
  72. menuconfig BSP_USING_I2C1
  73. bool "Enable I2C1 BUS (software simulation)"
  74. default n
  75. select RT_USING_I2C
  76. select RT_USING_I2C_BITOPS
  77. select RT_USING_PIN
  78. if BSP_USING_I2C1
  79. config BSP_I2C1_SCL_PIN
  80. int "i2c1 scl pin number"
  81. range 0 144
  82. default 22
  83. config BSP_I2C1_SDA_PIN
  84. int "I2C1 sda pin number"
  85. range 0 144
  86. default 23
  87. endif
  88. menuconfig BSP_USING_SPI
  89. bool "Enable SPI BUS"
  90. default n
  91. select RT_USING_SPI
  92. if BSP_USING_SPI
  93. config BSP_USING_SPI1
  94. bool "Enable SPI1 BUS"
  95. default n
  96. config BSP_SPI1_TX_USING_DMA
  97. bool "Enable SPI1 TX DMA"
  98. depends on BSP_USING_SPI1
  99. default n
  100. config BSP_SPI1_RX_USING_DMA
  101. bool "Enable SPI1 RX DMA"
  102. depends on BSP_USING_SPI1
  103. select BSP_SPI1_TX_USING_DMA
  104. default n
  105. config BSP_USING_SPI2
  106. bool "Enable SPI2 BUS"
  107. default n
  108. config BSP_SPI2_TX_USING_DMA
  109. bool "Enable SPI2 TX DMA"
  110. depends on BSP_USING_SPI2
  111. default n
  112. config BSP_SPI2_RX_USING_DMA
  113. bool "Enable SPI2 RX DMA"
  114. depends on BSP_USING_SPI2
  115. select BSP_SPI2_TX_USING_DMA
  116. default n
  117. endif
  118. menuconfig BSP_USING_ADC
  119. bool "Enable ADC"
  120. default n
  121. select RT_USING_ADC
  122. if BSP_USING_ADC
  123. config BSP_USING_ADC1
  124. bool "Enable ADC1"
  125. default n
  126. endif
  127. config BSP_USING_ONCHIP_RTC
  128. bool "Enable RTC"
  129. select RT_USING_RTC
  130. select RT_USING_LIBC
  131. default n
  132. config BSP_USING_WDT
  133. bool "Enable Watchdog Timer"
  134. select RT_USING_WDT
  135. default n
  136. endmenu
  137. menu "Board extended module Drivers"
  138. config BSP_USING_WIFI_OR_GPRS
  139. bool "Enable WIFI/GPRS (uart3 be shared)"
  140. select BSP_USING_UART3
  141. default n
  142. endmenu
  143. endmenu