Kconfig 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  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_EEPROM
  15. bool "Enable I2C EEPROM (i2c1)"
  16. select BSP_USING_I2C1
  17. default n
  18. config BSP_USING_SPI_FLASH
  19. bool "Enable SPI FLASH (W25Q16 spi2)"
  20. select BSP_USING_SPI
  21. select BSP_USING_SPI2
  22. select RT_USING_SFUD
  23. select RT_SFUD_USING_SFDP
  24. default n
  25. config BSP_USING_POT
  26. bool "Enable potentiometer"
  27. select BSP_USING_ADC
  28. select BSP_USING_ADC1
  29. default n
  30. config BSP_USING_EXT_SRAM
  31. bool "Enable external sram"
  32. default n
  33. help
  34. Chip name is IS62WV51216, 1Mbytes static RAMs organized as 512K words by 16bits.
  35. config BSP_USING_SDCARD
  36. bool "Enable SDCARD (sdio)"
  37. select BSP_USING_SDIO
  38. select RT_USING_DFS
  39. select RT_USING_DFS_ELMFAT
  40. default n
  41. endmenu
  42. menu "On-chip Peripheral Drivers"
  43. config BSP_USING_GPIO
  44. bool "Enable GPIO"
  45. select RT_USING_PIN
  46. default y
  47. menuconfig BSP_USING_UART
  48. bool "Enable UART"
  49. default y
  50. select RT_USING_SERIAL
  51. if BSP_USING_UART
  52. config BSP_USING_UART1
  53. bool "Enable UART1"
  54. default y
  55. config BSP_UART1_RX_USING_DMA
  56. bool "Enable UART1 RX DMA"
  57. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  58. default n
  59. config BSP_USING_UART2
  60. bool "Enable UART2"
  61. default n
  62. config BSP_UART2_RX_USING_DMA
  63. bool "Enable UART2 RX DMA"
  64. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  65. default n
  66. config BSP_USING_UART3
  67. bool "Enable UART3"
  68. default n
  69. config BSP_UART3_RX_USING_DMA
  70. bool "Enable UART3 RX DMA"
  71. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  72. default n
  73. endif
  74. menuconfig BSP_USING_TIM
  75. bool "Enable timer"
  76. default n
  77. select RT_USING_HWTIMER
  78. if BSP_USING_TIM
  79. config BSP_USING_TIM2
  80. bool "Enable TIM2"
  81. default n
  82. config BSP_USING_TIM3
  83. bool "Enable TIM3"
  84. default n
  85. config BSP_USING_TIM4
  86. bool "Enable TIM4"
  87. default n
  88. endif
  89. menuconfig BSP_USING_PWM
  90. bool "Enable PWM"
  91. default n
  92. select RT_USING_PWM
  93. if BSP_USING_PWM
  94. menuconfig BSP_USING_PWM3
  95. bool "Enable timer3 output PWM"
  96. default n
  97. if BSP_USING_PWM3
  98. config BSP_USING_PWM3_CH1
  99. bool "Enable PWM3 channel1"
  100. default n
  101. config BSP_USING_PWM3_CH2
  102. bool "Enable PWM3 channel2"
  103. default n
  104. endif
  105. endif
  106. menuconfig BSP_USING_SPI
  107. bool "Enable SPI BUS"
  108. default n
  109. select RT_USING_SPI
  110. if BSP_USING_SPI
  111. config BSP_USING_SPI1
  112. bool "Enable SPI1 BUS"
  113. default n
  114. config BSP_SPI1_TX_USING_DMA
  115. bool "Enable SPI1 TX DMA"
  116. depends on BSP_USING_SPI1
  117. default n
  118. config BSP_SPI1_RX_USING_DMA
  119. bool "Enable SPI1 RX DMA"
  120. depends on BSP_USING_SPI1
  121. select BSP_SPI1_TX_USING_DMA
  122. default n
  123. config BSP_USING_SPI2
  124. bool "Enable SPI2 BUS"
  125. default n
  126. config BSP_SPI2_TX_USING_DMA
  127. bool "Enable SPI2 TX DMA"
  128. depends on BSP_USING_SPI2
  129. default n
  130. config BSP_SPI2_RX_USING_DMA
  131. bool "Enable SPI2 RX DMA"
  132. depends on BSP_USING_SPI2
  133. select BSP_SPI2_TX_USING_DMA
  134. default n
  135. endif
  136. menuconfig BSP_USING_I2C1
  137. bool "Enable I2C1 BUS (software simulation)"
  138. default n
  139. select RT_USING_I2C
  140. select RT_USING_I2C_BITOPS
  141. select RT_USING_PIN
  142. if BSP_USING_I2C1
  143. config BSP_I2C1_SCL_PIN
  144. int "i2c1 scl pin number"
  145. range 0 63
  146. default 22
  147. config BSP_I2C1_SDA_PIN
  148. int "I2C1 sda pin number"
  149. range 0 63
  150. default 23
  151. endif
  152. menuconfig BSP_USING_ADC
  153. bool "Enable ADC"
  154. default n
  155. select RT_USING_ADC
  156. if BSP_USING_ADC
  157. config BSP_USING_ADC1
  158. bool "Enable ADC1"
  159. default n
  160. endif
  161. menuconfig BSP_USING_CAN
  162. bool "Enable CAN"
  163. default n
  164. select RT_USING_CAN
  165. if BSP_USING_CAN
  166. config BSP_USING_CAN1
  167. bool "Enable CAN1"
  168. default n
  169. config BSP_USING_CAN2
  170. bool "Enable CAN2"
  171. default n
  172. endif
  173. config BSP_USING_ON_CHIP_FLASH
  174. bool "Enable on-chip FLASH"
  175. default n
  176. menuconfig BSP_USING_ONCHIP_RTC
  177. bool "Enable RTC"
  178. select RT_USING_RTC
  179. default n
  180. if BSP_USING_ONCHIP_RTC
  181. choice
  182. prompt "Select clock source"
  183. default BSP_RTC_USING_LSE
  184. config BSP_RTC_USING_LSE
  185. bool "RTC USING LSE"
  186. config BSP_RTC_USING_LSI
  187. bool "RTC USING LSI"
  188. endchoice
  189. endif
  190. config BSP_USING_WDT
  191. bool "Enable Watchdog Timer"
  192. select RT_USING_WDT
  193. default n
  194. config BSP_USING_SDIO
  195. bool "Enable SDIO"
  196. select RT_USING_SDIO
  197. default n
  198. menuconfig BSP_USING_PULSE_ENCODER
  199. bool "Enable Pulse Encoder"
  200. default n
  201. select RT_USING_PULSE_ENCODER
  202. if BSP_USING_PULSE_ENCODER
  203. config BSP_USING_PULSE_ENCODER3
  204. bool "Enable Pulse Encoder3"
  205. default n
  206. endif
  207. source "../libraries/HAL_Drivers/Kconfig"
  208. endmenu
  209. menu "Board extended module Drivers"
  210. endmenu
  211. endmenu