Kconfig 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  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. 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. endif
  66. menuconfig BSP_USING_SPI
  67. bool "Enable SPI BUS"
  68. default n
  69. select RT_USING_SPI
  70. if BSP_USING_SPI
  71. config BSP_USING_SPI1
  72. bool "Enable SPI1 BUS"
  73. default n
  74. config BSP_SPI1_TX_USING_DMA
  75. bool "Enable SPI1 TX DMA"
  76. depends on BSP_USING_SPI1
  77. default n
  78. config BSP_SPI1_RX_USING_DMA
  79. bool "Enable SPI1 RX DMA"
  80. depends on BSP_USING_SPI1
  81. select BSP_SPI1_TX_USING_DMA
  82. default n
  83. config BSP_USING_SPI2
  84. bool "Enable SPI2 BUS"
  85. default n
  86. config BSP_SPI2_TX_USING_DMA
  87. bool "Enable SPI2 TX DMA"
  88. depends on BSP_USING_SPI2
  89. default n
  90. config BSP_SPI2_RX_USING_DMA
  91. bool "Enable SPI2 RX DMA"
  92. depends on BSP_USING_SPI2
  93. select BSP_SPI2_TX_USING_DMA
  94. default n
  95. endif
  96. menuconfig BSP_USING_ADC
  97. bool "Enable ADC"
  98. default n
  99. select RT_USING_ADC
  100. if BSP_USING_ADC
  101. config BSP_USING_ADC1
  102. bool "Enable ADC1"
  103. default n
  104. config BSP_USING_ADC2
  105. bool "Enable ADC2"
  106. default n
  107. config BSP_USING_ADC3
  108. bool "Enable ADC3"
  109. default n
  110. endif
  111. menuconfig BSP_USING_I2C1
  112. bool "Enable I2C1 BUS (software simulation)"
  113. default n
  114. select RT_USING_I2C
  115. select RT_USING_I2C_BITOPS
  116. select RT_USING_PIN
  117. if BSP_USING_I2C1
  118. config BSP_I2C1_SCL_PIN
  119. int "i2c1 scl pin number"
  120. range 0 175
  121. default 22
  122. config BSP_I2C1_SDA_PIN
  123. int "I2C1 sda pin number"
  124. range 0 175
  125. default 23
  126. endif
  127. menuconfig BSP_USING_TIM
  128. bool "Enable timer"
  129. default n
  130. select RT_USING_HWTIMER
  131. if BSP_USING_TIM
  132. config BSP_USING_TIM2
  133. bool "Enable TIM2"
  134. default n
  135. config BSP_USING_TIM3
  136. bool "Enable TIM3"
  137. default n
  138. config BSP_USING_TIM4
  139. bool "Enable TIM4"
  140. default n
  141. config BSP_USING_TIM5
  142. bool "Enable TIM5"
  143. default n
  144. endif
  145. menuconfig BSP_USING_PWM
  146. bool "Enable PWM"
  147. default n
  148. select RT_USING_PWM
  149. if BSP_USING_PWM
  150. menuconfig BSP_USING_PWM3
  151. bool "Enable timer3 output PWM"
  152. default n
  153. if BSP_USING_PWM3
  154. config BSP_USING_PWM3_CH2
  155. bool "Enable PWM3 channel2"
  156. default n
  157. config BSP_USING_PWM3_CH3
  158. bool "Enable PWM3 channel3"
  159. default n
  160. config BSP_USING_PWM3_CH4
  161. bool "Enable PWM3 channel4"
  162. default n
  163. endif
  164. endif
  165. config BSP_USING_CAN
  166. bool "Enable CAN"
  167. select RT_USING_CAN
  168. default n
  169. source "$BSP_DIR/../libraries/HAL_Drivers/drivers/Kconfig"
  170. endmenu
  171. menu "Board extended module Drivers"
  172. endmenu
  173. endmenu