Kconfig 6.3 KB

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