Kconfig 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. menu "Hardware Drivers Config"
  2. menu "Onboard Peripheral Drivers"
  3. config BSP_USING_USB_TO_USART
  4. bool "Enable USB TO USART (uart1)"
  5. select BSP_USING_UART
  6. select BSP_USING_UART1
  7. default y
  8. config BSP_USING_RGB
  9. bool "Enable RGB LED (timer3 channel2 - 4)"
  10. select RT_USING_PWM
  11. select BSP_USING_PWM
  12. select BSP_USING_PWM3
  13. select BSP_USING_PWM3_CH2
  14. select BSP_USING_PWM3_CH3
  15. select BSP_USING_PWM3_CH4
  16. default n
  17. config BSP_USING_POT
  18. bool "Enable potentiometer"
  19. select BSP_USING_ADC
  20. select BSP_USING_ADC1
  21. default n
  22. config BSP_USING_SPI_FLASH
  23. bool "Enable SPI FLASH (W25Q64 spi1)"
  24. select BSP_USING_SPI
  25. select BSP_USING_SPI1
  26. select RT_USING_SFUD
  27. select RT_SFUD_USING_SFDP
  28. default n
  29. config BSP_USING_EEPROM
  30. bool "Enable I2C EEPROM (i2c1)"
  31. select BSP_USING_I2C1
  32. default n
  33. config BSP_USING_EXT_SRAM
  34. bool "Enable external sram"
  35. default n
  36. help
  37. Chip name is IS62WV51216BLL, 1Mbytes static RAMs organized as 512K words by 16bits.
  38. endmenu
  39. menu "On-chip Peripheral Drivers"
  40. config BSP_USING_GPIO
  41. bool "Enable GPIO"
  42. select RT_USING_PIN
  43. default y
  44. menuconfig BSP_USING_UART
  45. bool "Enable UART"
  46. default y
  47. select RT_USING_SERIAL
  48. if BSP_USING_UART
  49. config BSP_STM32_UART_V1_TX_TIMEOUT
  50. int "UART TX timeout"
  51. default 2000
  52. depends on RT_USING_SERIAL_V1
  53. config BSP_USING_UART1
  54. bool "Enable UART1"
  55. default y
  56. config BSP_UART1_RX_USING_DMA
  57. bool "Enable UART1 RX DMA"
  58. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  59. default n
  60. config BSP_USING_UART2
  61. bool "Enable UART2"
  62. default n
  63. config BSP_UART2_RX_USING_DMA
  64. bool "Enable UART2 RX DMA"
  65. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  66. default n
  67. config BSP_USING_UART3
  68. bool "Enable UART3"
  69. default n
  70. config BSP_UART3_RX_USING_DMA
  71. bool "Enable UART3 RX DMA"
  72. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  73. default n
  74. endif
  75. menuconfig BSP_USING_SPI
  76. bool "Enable SPI BUS"
  77. default n
  78. select RT_USING_SPI
  79. if BSP_USING_SPI
  80. config BSP_USING_SPI1
  81. bool "Enable SPI1 BUS"
  82. default n
  83. config BSP_SPI1_TX_USING_DMA
  84. bool "Enable SPI1 TX DMA"
  85. depends on BSP_USING_SPI1
  86. default n
  87. config BSP_SPI1_RX_USING_DMA
  88. bool "Enable SPI1 RX DMA"
  89. depends on BSP_USING_SPI1
  90. select BSP_SPI1_TX_USING_DMA
  91. default n
  92. config BSP_USING_SPI2
  93. bool "Enable SPI2 BUS"
  94. default n
  95. config BSP_SPI2_TX_USING_DMA
  96. bool "Enable SPI2 TX DMA"
  97. depends on BSP_USING_SPI2
  98. default n
  99. config BSP_SPI2_RX_USING_DMA
  100. bool "Enable SPI2 RX DMA"
  101. depends on BSP_USING_SPI2
  102. select BSP_SPI2_TX_USING_DMA
  103. default n
  104. endif
  105. menuconfig BSP_USING_ADC
  106. bool "Enable ADC"
  107. default n
  108. select RT_USING_ADC
  109. if BSP_USING_ADC
  110. config BSP_USING_ADC1
  111. bool "Enable ADC1"
  112. default n
  113. config BSP_USING_ADC2
  114. bool "Enable ADC2"
  115. default n
  116. config BSP_USING_ADC3
  117. bool "Enable ADC3"
  118. default n
  119. endif
  120. menuconfig BSP_USING_I2C1
  121. bool "Enable I2C1 BUS (software simulation)"
  122. default n
  123. select RT_USING_I2C
  124. select RT_USING_I2C_BITOPS
  125. select RT_USING_PIN
  126. if BSP_USING_I2C1
  127. config BSP_I2C1_SCL_PIN
  128. int "i2c1 scl pin number"
  129. range 0 175
  130. default 22
  131. config BSP_I2C1_SDA_PIN
  132. int "I2C1 sda pin number"
  133. range 0 175
  134. default 23
  135. endif
  136. menuconfig BSP_USING_TIM
  137. bool "Enable timer"
  138. default n
  139. select RT_USING_HWTIMER
  140. if BSP_USING_TIM
  141. config BSP_USING_TIM2
  142. bool "Enable TIM2"
  143. default n
  144. config BSP_USING_TIM3
  145. bool "Enable TIM3"
  146. default n
  147. config BSP_USING_TIM4
  148. bool "Enable TIM4"
  149. default n
  150. config BSP_USING_TIM5
  151. bool "Enable TIM5"
  152. default n
  153. endif
  154. menuconfig BSP_USING_PWM
  155. bool "Enable PWM"
  156. default n
  157. select RT_USING_PWM
  158. if BSP_USING_PWM
  159. menuconfig BSP_USING_PWM3
  160. bool "Enable timer3 output PWM"
  161. default n
  162. if BSP_USING_PWM3
  163. config BSP_USING_PWM3_CH2
  164. bool "Enable PWM3 channel2"
  165. default n
  166. config BSP_USING_PWM3_CH3
  167. bool "Enable PWM3 channel3"
  168. default n
  169. config BSP_USING_PWM3_CH4
  170. bool "Enable PWM3 channel4"
  171. default n
  172. endif
  173. endif
  174. config BSP_USING_CAN
  175. bool "Enable CAN"
  176. select RT_USING_CAN
  177. default n
  178. source "$(BSP_DIR)/../libraries/HAL_Drivers/drivers/Kconfig"
  179. endmenu
  180. menu "Board extended module Drivers"
  181. endmenu
  182. endmenu