Kconfig 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. menu "Hardware Drivers Config"
  2. config MCU_TAE32F53xx
  3. bool
  4. select ARCH_ARM_CORTEX_M3
  5. select RT_USING_COMPONENTS_INIT
  6. select RT_USING_USER_MAIN
  7. default y
  8. menu "Onboard Peripheral Drivers"
  9. endmenu
  10. menu "On-chip Peripheral Drivers"
  11. config BSP_USING_GPIO
  12. bool "Enable GPIO"
  13. select RT_USING_PIN
  14. default y
  15. menuconfig BSP_USING_UART
  16. bool "Enable UART"
  17. default y
  18. select RT_USING_SERIAL
  19. if BSP_USING_UART
  20. config BSP_USING_UART0
  21. bool "Enable UART0"
  22. default y
  23. config BSP_UART0_RX_USING_DMA
  24. bool "Enable UART0 RX DMA"
  25. depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA
  26. default n
  27. config BSP_UART0_TX_USING_DMA
  28. bool "Enable UART0 TX DMA"
  29. depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA
  30. default n
  31. config BSP_USING_UART1
  32. bool "Enable UART1"
  33. default n
  34. config BSP_UART1_RX_USING_DMA
  35. bool "Enable UART1 RX DMA"
  36. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  37. default n
  38. config BSP_UART1_TX_USING_DMA
  39. bool "Enable UART1 TX DMA"
  40. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  41. default n
  42. endif
  43. menuconfig BSP_USING_I2C1
  44. bool "Enable I2C1 BUS (software simulation)"
  45. default y
  46. select RT_USING_I2C
  47. select RT_USING_I2C_BITOPS
  48. select RT_USING_PIN
  49. if BSP_USING_I2C1
  50. config BSP_I2C1_SCL_PIN
  51. int "i2c1 scl pin number"
  52. range 1 176
  53. default 51
  54. config BSP_I2C1_SDA_PIN
  55. int "I2C1 sda pin number"
  56. range 1 176
  57. default 90
  58. endif
  59. menuconfig BSP_USING_SPI
  60. bool "Enable SPI BUS"
  61. default n
  62. select RT_USING_SPI
  63. if BSP_USING_SPI
  64. config BSP_USING_SPI1
  65. bool "Enable SPI1 BUS"
  66. default n
  67. config BSP_SPI1_TX_USING_DMA
  68. bool "Enable SPI1 TX DMA"
  69. depends on BSP_USING_SPI1
  70. default n
  71. config BSP_SPI1_RX_USING_DMA
  72. bool "Enable SPI1 RX DMA"
  73. depends on BSP_USING_SPI1
  74. select BSP_SPI1_TX_USING_DMA
  75. default n
  76. config BSP_USING_SPI2
  77. bool "Enable SPI2 BUS"
  78. default n
  79. config BSP_SPI2_TX_USING_DMA
  80. bool "Enable SPI2 TX DMA"
  81. depends on BSP_USING_SPI2
  82. default n
  83. config BSP_SPI2_RX_USING_DMA
  84. bool "Enable SPI2 RX DMA"
  85. depends on BSP_USING_SPI2
  86. select BSP_SPI2_TX_USING_DMA
  87. default n
  88. config BSP_USING_SPI3
  89. bool "Enable SPI3 BUS"
  90. default n
  91. config BSP_SPI3_TX_USING_DMA
  92. bool "Enable SPI3 TX DMA"
  93. depends on BSP_USING_SPI3
  94. default n
  95. config BSP_SPI3_RX_USING_DMA
  96. bool "Enable SPI3 RX DMA"
  97. depends on BSP_USING_SPI3
  98. select BSP_SPI3_TX_USING_DMA
  99. default n
  100. config BSP_USING_SPI4
  101. bool "Enable SPI4 BUS"
  102. default n
  103. config BSP_SPI4_TX_USING_DMA
  104. bool "Enable SPI4 TX DMA"
  105. depends on BSP_USING_SPI4
  106. default n
  107. config BSP_SPI4_RX_USING_DMA
  108. bool "Enable SPI4 RX DMA"
  109. depends on BSP_USING_SPI4
  110. select BSP_SPI4_TX_USING_DMA
  111. default n
  112. config BSP_USING_SPI5
  113. bool "Enable SPI5 BUS"
  114. default n
  115. config BSP_SPI5_RX_USING_DMA
  116. bool "Enable SPI5 TX DMA"
  117. depends on BSP_USING_SPI5
  118. default n
  119. config BSP_SPI5_RX_USING_DMA
  120. bool "Enable SPI5 RX DMA"
  121. depends on BSP_USING_SPI5
  122. select BSP_SPI5_TX_USING_DMA
  123. default n
  124. config BSP_USING_SPI6
  125. bool "Enable SPI6 BUS"
  126. default n
  127. config BSP_SPI6_TX_USING_DMA
  128. bool "Enable SPI6 TX DMA"
  129. depends on BSP_USING_SPI6
  130. default n
  131. config BSP_SPI6_RX_USING_DMA
  132. bool "Enable SPI6 RX DMA"
  133. depends on BSP_USING_SPI6
  134. select BSP_SPI6_TX_USING_DMA
  135. default n
  136. endif
  137. menuconfig BSP_USING_RTC
  138. bool "Enable RTC"
  139. select RT_USING_RTC
  140. default n
  141. if BSP_USING_RTC
  142. choice
  143. prompt "Select clock source"
  144. default BSP_RTC_USING_LRC
  145. config BSP_RTC_USING_XTAL32
  146. bool "RTC USING XTAL32"
  147. config BSP_RTC_USING_LRC
  148. bool "RTC USING LRC"
  149. endchoice
  150. endif
  151. menuconfig BSP_USING_PWM
  152. bool "Enable PWM"
  153. default n
  154. select RT_USING_PWM
  155. if BSP_USING_PWM
  156. menuconfig BSP_USING_PWM1
  157. bool "Enable timer1 output PWM"
  158. default n
  159. if BSP_USING_PWM1
  160. config BSP_USING_PWM1_CH1
  161. bool "Enable PWM1 channel1"
  162. default n
  163. config BSP_USING_PWM1_CH2
  164. bool "Enable PWM1 channel2"
  165. default n
  166. config BSP_USING_PWM1_CH3
  167. bool "Enable PWM1 channel3"
  168. default n
  169. config BSP_USING_PWM1_CH4
  170. bool "Enable PWM1 channel4"
  171. default n
  172. endif
  173. menuconfig BSP_USING_PWM2
  174. bool "Enable timer2 output PWM"
  175. default n
  176. if BSP_USING_PWM2
  177. config BSP_USING_PWM2_CH1
  178. bool "Enable PWM2 channel1"
  179. default n
  180. config BSP_USING_PWM2_CH2
  181. bool "Enable PWM2 channel2"
  182. default n
  183. config BSP_USING_PWM2_CH3
  184. bool "Enable PWM2 channel3"
  185. default n
  186. config BSP_USING_PWM2_CH4
  187. bool "Enable PWM2 channel4"
  188. default n
  189. endif
  190. endif
  191. menuconfig BSP_USING_TIMER
  192. bool "Enable TIMER"
  193. default n
  194. select RT_USING_HWTIMER
  195. if BSP_USING_TIMER
  196. config BSP_USING_TIMER5
  197. bool "Enable TIMER5"
  198. default n
  199. config BSP_USING_TIMER6
  200. bool "Enable TIMER6"
  201. default n
  202. config BSP_USING_TIMER7
  203. bool "Enable TIMER7"
  204. default n
  205. config BSP_USING_TIMER8
  206. bool "Enable TIMER8"
  207. default n
  208. endif
  209. menuconfig BSP_USING_PULSE_ENCODER
  210. bool "Enable Pulse Encoder"
  211. default n
  212. select RT_USING_PULSE_ENCODER
  213. if BSP_USING_PULSE_ENCODER
  214. config BSP_USING_PULSE_ENCODER9
  215. bool "Enable Pulse Encoder9"
  216. default n
  217. config BSP_USING_PULSE_ENCODER10
  218. bool "Enable Pulse Encoder10"
  219. default n
  220. config BSP_USING_PULSE_ENCODER11
  221. bool "Enable Pulse Encoder11"
  222. default n
  223. config BSP_USING_PULSE_ENCODER12
  224. bool "Enable Pulse Encoder12"
  225. default n
  226. endif
  227. endmenu
  228. menu "Board extended module Drivers"
  229. endmenu
  230. endmenu