Kconfig 5.5 KB

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