Kconfig 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. menu "Hardware Drivers Config"
  2. config SOC_STM32F103ZE
  3. bool
  4. select SOC_SERIES_STM32F1
  5. select RT_USING_COMPONENTS_INIT
  6. select RT_USING_USER_MAIN
  7. default y
  8. menu "Onboard Peripheral Drivers"
  9. config BSP_USING_USB_TO_USART
  10. bool "Enable USB TO USART (uart1)"
  11. select BSP_USING_UART
  12. select BSP_USING_UART1
  13. default y
  14. config BSP_USING_RS485_OR_RS232
  15. bool "Enable RS485/RS232 (uart2 be shared)"
  16. select BSP_USING_UART2
  17. default n
  18. config BSP_USING_SPI_FLASH
  19. bool "Enable SPI FLASH (W25Q64 spi1)"
  20. select BSP_USING_SPI
  21. select BSP_USING_SPI1
  22. select RT_USING_SFUD
  23. select RT_SFUD_USING_SFDP
  24. default n
  25. config BSP_USING_NAND1
  26. bool "Enable NAND1"
  27. select RT_USING_NAND1
  28. select RT_USING_MTD_NAND
  29. select PKG_USING_LPM
  30. default n
  31. config BSP_USING_RGB
  32. bool "Enable RGB LED (timer3 channel2 - 4)"
  33. select RT_USING_PWM
  34. select BSP_USING_PWM
  35. select BSP_USING_PWM3
  36. select BSP_USING_PWM3_CH2
  37. select BSP_USING_PWM3_CH3
  38. select BSP_USING_PWM3_CH4
  39. default n
  40. config BSP_USING_POT
  41. bool "Enable potentiometer"
  42. select BSP_USING_ADC
  43. select BSP_USING_ADC1
  44. default n
  45. config BSP_USING_EEPROM
  46. bool "Enable I2C EEPROM (i2c1)"
  47. select BSP_USING_I2C1
  48. default n
  49. config BSP_USING_ETH
  50. bool "Enable Ethernet Driver (spi2)"
  51. default n
  52. select PKG_USING_WIZNET
  53. select WIZNET_DEVICE_EXTERN_CONFIG
  54. select BSP_USING_SPI2
  55. if BSP_USING_ETH
  56. if WIZNET_DEVICE_EXTERN_CONFIG
  57. config WIZ_SPI_DEVICE
  58. string
  59. default "spi20"
  60. config WIZ_RST_PIN
  61. int
  62. default 111
  63. config WIZ_IRQ_PIN
  64. int
  65. default 104
  66. endif
  67. config EXTERNAL_PHY_ADDRESS
  68. hex
  69. default 0x00
  70. endif
  71. config BSP_USING_SDCARD
  72. bool "Enable SDCARD (sdio)"
  73. select BSP_USING_SDIO
  74. select RT_USING_DFS
  75. select RT_USING_DFS_ELMFAT
  76. default n
  77. endmenu
  78. menu "On-chip Peripheral Drivers"
  79. config BSP_USING_GPIO
  80. bool "Enable GPIO"
  81. select RT_USING_PIN
  82. default y
  83. menuconfig BSP_USING_UART
  84. bool "Enable UART"
  85. default y
  86. select RT_USING_SERIAL
  87. if BSP_USING_UART
  88. config BSP_USING_UART1
  89. bool "Enable UART1"
  90. default y
  91. config BSP_UART1_RX_USING_DMA
  92. bool "Enable UART1 RX DMA"
  93. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  94. default n
  95. config BSP_USING_UART2
  96. bool "Enable UART2"
  97. default n
  98. config BSP_UART2_RX_USING_DMA
  99. bool "Enable UART2 RX DMA"
  100. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  101. default n
  102. config BSP_USING_UART3
  103. bool "Enable UART3"
  104. default n
  105. config BSP_UART3_RX_USING_DMA
  106. bool "Enable UART3 RX DMA"
  107. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  108. default n
  109. endif
  110. config BSP_USING_ON_CHIP_FLASH
  111. bool "Enable on-chip FLASH"
  112. default n
  113. menuconfig BSP_USING_SPI
  114. bool "Enable SPI BUS"
  115. default n
  116. select RT_USING_SPI
  117. if BSP_USING_SPI
  118. config BSP_USING_SPI1
  119. bool "Enable SPI1 BUS"
  120. default n
  121. config BSP_SPI1_TX_USING_DMA
  122. bool "Enable SPI1 TX DMA"
  123. depends on BSP_USING_SPI1
  124. default n
  125. config BSP_SPI1_RX_USING_DMA
  126. bool "Enable SPI1 RX DMA"
  127. depends on BSP_USING_SPI1
  128. select BSP_SPI1_TX_USING_DMA
  129. default n
  130. config BSP_USING_SPI2
  131. bool "Enable SPI2 BUS"
  132. default n
  133. config BSP_SPI2_TX_USING_DMA
  134. bool "Enable SPI2 TX DMA"
  135. depends on BSP_USING_SPI2
  136. default n
  137. config BSP_SPI2_RX_USING_DMA
  138. bool "Enable SPI2 RX DMA"
  139. depends on BSP_USING_SPI2
  140. select BSP_SPI2_TX_USING_DMA
  141. default n
  142. config BSP_USING_SPI3
  143. bool "Enable SPI3 BUS"
  144. default n
  145. config BSP_SPI3_TX_USING_DMA
  146. bool "Enable SPI3 TX DMA"
  147. depends on BSP_USING_SPI3
  148. default n
  149. config BSP_SPI3_RX_USING_DMA
  150. bool "Enable SPI3 RX DMA"
  151. depends on BSP_USING_SPI3
  152. select BSP_SPI3_TX_USING_DMA
  153. default n
  154. endif
  155. menuconfig BSP_USING_I2C1
  156. bool "Enable I2C1 BUS (software simulation)"
  157. default n
  158. select RT_USING_I2C
  159. select RT_USING_I2C_BITOPS
  160. select RT_USING_PIN
  161. if BSP_USING_I2C1
  162. config BSP_I2C1_SCL_PIN
  163. int "i2c1 scl pin number"
  164. range 0 175
  165. default 22
  166. config BSP_I2C1_SDA_PIN
  167. int "I2C1 sda pin number"
  168. range 0 175
  169. default 23
  170. endif
  171. menuconfig BSP_USING_TIM
  172. bool "Enable timer"
  173. default n
  174. select RT_USING_HWTIMER
  175. if BSP_USING_TIM
  176. config BSP_USING_TIM2
  177. bool "Enable TIM2"
  178. default n
  179. config BSP_USING_TIM3
  180. bool "Enable TIM3"
  181. default n
  182. config BSP_USING_TIM4
  183. bool "Enable TIM4"
  184. default n
  185. config BSP_USING_TIM5
  186. bool "Enable TIM5"
  187. default n
  188. endif
  189. menuconfig BSP_USING_PWM
  190. bool "Enable PWM"
  191. default n
  192. select RT_USING_PWM
  193. if BSP_USING_PWM
  194. menuconfig BSP_USING_PWM3
  195. bool "Enable timer3 output PWM"
  196. default n
  197. if BSP_USING_PWM3
  198. config BSP_USING_PWM3_CH2
  199. bool "Enable PWM3 channel2"
  200. default n
  201. config BSP_USING_PWM3_CH3
  202. bool "Enable PWM3 channel3"
  203. default n
  204. config BSP_USING_PWM3_CH4
  205. bool "Enable PWM3 channel4"
  206. default n
  207. endif
  208. endif
  209. menuconfig BSP_USING_ADC
  210. bool "Enable ADC"
  211. default n
  212. select RT_USING_ADC
  213. if BSP_USING_ADC
  214. config BSP_USING_ADC1
  215. bool "Enable ADC1"
  216. default n
  217. endif
  218. menuconfig BSP_USING_ONCHIP_RTC
  219. bool "Enable RTC"
  220. select RT_USING_RTC
  221. default n
  222. if BSP_USING_ONCHIP_RTC
  223. choice
  224. prompt "Select clock source"
  225. default BSP_RTC_USING_LSE
  226. config BSP_RTC_USING_LSE
  227. bool "RTC USING LSE"
  228. config BSP_RTC_USING_LSI
  229. bool "RTC USING LSI"
  230. endchoice
  231. endif
  232. config BSP_USING_WDT
  233. bool "Enable Watchdog Timer"
  234. select RT_USING_WDT
  235. default n
  236. config BSP_USING_SDIO
  237. bool "Enable SDIO"
  238. select RT_USING_SDIO
  239. select RT_USING_DFS
  240. default n
  241. menuconfig BSP_USING_CAN
  242. bool "Enable CAN"
  243. default n
  244. select RT_USING_CAN
  245. if BSP_USING_CAN
  246. config BSP_USING_CAN1
  247. bool "using CAN1"
  248. default n
  249. endif
  250. config BSP_USING_USBD
  251. bool "Enable USB device"
  252. select RT_USING_USB_DEVICE
  253. default n
  254. if BSP_USING_USBD
  255. config BSP_USB_CONNECT_PIN
  256. int "USB connect pin"
  257. default 67
  258. config BSP_USB_PULL_UP_STATUS
  259. int "USB PULL UP STATUS"
  260. default 0
  261. endif
  262. source "../libraries/HAL_Drivers/Kconfig"
  263. endmenu
  264. menu "Board extended module Drivers"
  265. endmenu
  266. endmenu