Kconfig 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  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. select RT_USING_LIBC
  141. default n
  142. if BSP_USING_RTC
  143. choice
  144. prompt "Select clock source"
  145. default BSP_RTC_USING_LRC
  146. config BSP_RTC_USING_XTAL32
  147. bool "RTC USING XTAL32"
  148. config BSP_RTC_USING_LRC
  149. bool "RTC USING LRC"
  150. endchoice
  151. endif
  152. menuconfig BSP_USING_PWM
  153. bool "Enable PWM"
  154. default n
  155. select RT_USING_PWM
  156. if BSP_USING_PWM
  157. menuconfig BSP_USING_PWM1
  158. bool "Enable timer1 output pwm"
  159. default n
  160. if BSP_USING_PWM1
  161. config BSP_USING_PWM1_CH1
  162. bool "Enable PWM1 channel1"
  163. default n
  164. config BSP_USING_PWM1_CH2
  165. bool "Enable PWM1 channel2"
  166. default n
  167. config BSP_USING_PWM1_CH3
  168. bool "Enable PWM1 channel3"
  169. default n
  170. config BSP_USING_PWM1_CH4
  171. bool "Enable PWM1 channel4"
  172. default n
  173. endif
  174. menuconfig BSP_USING_PWM2
  175. bool "Enable timer2 output pwm"
  176. default n
  177. if BSP_USING_PWM2
  178. config BSP_USING_PWM2_CH1
  179. bool "Enable PWM2 channel1"
  180. default n
  181. config BSP_USING_PWM2_CH2
  182. bool "Enable PWM2 channel2"
  183. default n
  184. config BSP_USING_PWM2_CH3
  185. bool "Enable PWM2 channel3"
  186. default n
  187. config BSP_USING_PWM2_CH4
  188. bool "Enable PWM2 channel4"
  189. default n
  190. endif
  191. endif
  192. menuconfig BSP_USING_TIMER
  193. bool "Enable TIMER"
  194. default n
  195. select RT_USING_HWTIMER
  196. if BSP_USING_TIMER
  197. config BSP_USING_TIMER5
  198. bool "Enable TIMER5"
  199. default n
  200. config BSP_USING_TIMER6
  201. bool "Enable TIMER6"
  202. default n
  203. config BSP_USING_TIMER7
  204. bool "Enable TIMER7"
  205. default n
  206. config BSP_USING_TIMER8
  207. bool "Enable TIMER8"
  208. default n
  209. endif
  210. menuconfig BSP_USING_PULSE_ENCODER
  211. bool "Enable Pulse Encoder"
  212. default n
  213. select RT_USING_PULSE_ENCODER
  214. if BSP_USING_PULSE_ENCODER
  215. config BSP_USING_PULSE_ENCODER9
  216. bool "Enable Pulse Encoder9"
  217. default n
  218. config BSP_USING_PULSE_ENCODER10
  219. bool "Enable Pulse Encoder10"
  220. default n
  221. config BSP_USING_PULSE_ENCODER11
  222. bool "Enable Pulse Encoder11"
  223. default n
  224. config BSP_USING_PULSE_ENCODER12
  225. bool "Enable Pulse Encoder12"
  226. default n
  227. endif
  228. endmenu
  229. menu "Board extended module Drivers"
  230. endmenu
  231. endmenu