Kconfig 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  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_RGB
  22. bool "Enable RGB LED (timer3 channel2 - 4)"
  23. select RT_USING_PWM
  24. select BSP_USING_PWM
  25. select BSP_USING_PWM3
  26. select BSP_USING_PWM3_CH2
  27. select BSP_USING_PWM3_CH3
  28. select BSP_USING_PWM3_CH4
  29. default n
  30. config BSP_USING_POT
  31. bool "Enable potentiometer"
  32. select BSP_USING_ADC
  33. select BSP_USING_ADC1
  34. default n
  35. config BSP_USING_EEPROM
  36. bool "Enable I2C EEPROM (i2c1)"
  37. select BSP_USING_I2C1
  38. default n
  39. config BSP_USING_ETH
  40. bool "Enable Ethernet Driver (spi2)"
  41. default n
  42. select PKG_USING_WIZNET
  43. select WIZNET_DEVICE_EXTERN_CONFIG
  44. select BSP_USING_SPI2
  45. if BSP_USING_ETH
  46. if WIZNET_DEVICE_EXTERN_CONFIG
  47. config WIZ_SPI_DEVICE
  48. string
  49. default "spi20"
  50. config WIZ_RST_PIN
  51. int
  52. default 111
  53. config WIZ_IRQ_PIN
  54. int
  55. default 104
  56. endif
  57. config EXTERNAL_PHY_ADDRESS
  58. hex
  59. default 0x00
  60. endif
  61. config BSP_USING_SDCARD
  62. bool "Enable SDCARD (sdio)"
  63. select BSP_USING_SDIO
  64. select RT_USING_DFS
  65. select RT_USING_DFS_ELMFAT
  66. default n
  67. endmenu
  68. menu "On-chip Peripheral Drivers"
  69. config BSP_USING_GPIO
  70. bool "Enable GPIO"
  71. select RT_USING_PIN
  72. default y
  73. config BSP_USING_UART1
  74. bool "Enable UART1"
  75. select RT_USING_SERIAL
  76. default y
  77. config BSP_USING_UART2
  78. bool "Enable UART2"
  79. select RT_USING_SERIAL
  80. default n
  81. config BSP_USING_UART3
  82. bool "Enable UART3"
  83. select RT_USING_SERIAL
  84. default n
  85. config BSP_USING_ON_CHIP_FLASH
  86. bool "Enable on-chip FLASH"
  87. default n
  88. config BSP_USING_SPI1
  89. bool "Enable SPI1 BUS"
  90. select RT_USING_SPI
  91. default n
  92. config BSP_USING_SPI2
  93. bool "Enable SPI2 BUS"
  94. select RT_USING_SPI
  95. default n
  96. config BSP_USING_SPI3
  97. bool "Enable SPI3 BUS"
  98. select RT_USING_SPI
  99. default n
  100. config BSP_SPI_USING_DMA
  101. bool "Enable SPI DMA support"
  102. default n
  103. menuconfig BSP_USING_I2C1
  104. bool "Enable I2C1 BUS (software simulation)"
  105. default n
  106. select RT_USING_I2C
  107. select RT_USING_I2C_BITOPS
  108. select RT_USING_PIN
  109. if BSP_USING_I2C1
  110. config BSP_I2C1_SCL_PIN
  111. int "i2c1 scl pin number"
  112. range 0 175
  113. default 22
  114. config BSP_I2C1_SDA_PIN
  115. int "I2C1 sda pin number"
  116. range 0 175
  117. default 23
  118. endif
  119. menuconfig BSP_USING_TIM
  120. bool "Enable timer"
  121. default n
  122. select RT_USING_HWTIMER
  123. if BSP_USING_TIM
  124. config BSP_USING_TIM2
  125. bool "Enable TIM2"
  126. default n
  127. config BSP_USING_TIM3
  128. bool "Enable TIM3"
  129. default n
  130. config BSP_USING_TIM4
  131. bool "Enable TIM4"
  132. default n
  133. config BSP_USING_TIM5
  134. bool "Enable TIM5"
  135. default n
  136. endif
  137. menuconfig BSP_USING_PWM
  138. bool "Enable pwm"
  139. default n
  140. select RT_USING_PWM
  141. if BSP_USING_PWM
  142. menuconfig BSP_USING_PWM3
  143. bool "Enable timer3 output pwm"
  144. default n
  145. if BSP_USING_PWM3
  146. config BSP_USING_PWM3_CH2
  147. bool "Enable PWM3 channel2"
  148. default n
  149. config BSP_USING_PWM3_CH3
  150. bool "Enable PWM3 channel3"
  151. default n
  152. config BSP_USING_PWM3_CH4
  153. bool "Enable PWM3 channel4"
  154. default n
  155. endif
  156. endif
  157. menuconfig BSP_USING_ADC
  158. bool "Enable ADC"
  159. default n
  160. select RT_USING_ADC
  161. if BSP_USING_ADC
  162. config BSP_USING_ADC1
  163. bool "Enable ADC1"
  164. default n
  165. config BSP_USING_ADC2
  166. bool "Enable ADC2"
  167. default n
  168. config BSP_USING_ADC3
  169. bool "Enable ADC3"
  170. default n
  171. endif
  172. config BSP_USING_ONCHIP_RTC
  173. bool "Enable RTC"
  174. select RT_USING_RTC
  175. select RT_USING_LIBC
  176. default n
  177. config BSP_USING_WDT
  178. bool "Enable Watchdog Timer"
  179. select RT_USING_WDT
  180. default n
  181. config BSP_USING_SDIO
  182. bool "Enable SDIO"
  183. select RT_USING_SDIO
  184. select RT_USING_DFS
  185. default n
  186. endmenu
  187. menu "Board extended module Drivers"
  188. endmenu
  189. endmenu