Kconfig 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. menu "Hardware Drivers Config"
  2. config SOC_HPM5000
  3. bool
  4. select SOC_SERIES_HPM5300
  5. select RT_USING_COMPONENTS_INIT
  6. select RT_USING_USER_MAIN
  7. default y
  8. menu "On-chip Peripheral Drivers"
  9. config BSP_USING_GPIO
  10. bool "Enable GPIO"
  11. select RT_USING_PIN if BSP_USING_GPIO
  12. default n
  13. menuconfig BSP_USING_UART
  14. bool "Enable UART"
  15. default y
  16. select RT_USING_SERIAL
  17. if BSP_USING_UART
  18. menuconfig BSP_USING_UART0
  19. bool "Enable UART0 (Debugger)"
  20. default y
  21. if BSP_USING_UART0
  22. config BSP_UART0_RX_USING_DMA
  23. bool "Enable UART0 RX DMA"
  24. depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA
  25. default n
  26. config BSP_UART0_TX_USING_DMA
  27. bool "Enable UART0 TX DMA"
  28. depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA
  29. default n
  30. config BSP_UART0_RX_BUFSIZE
  31. int "Set UART0 RX buffer size"
  32. range 64 65535
  33. depends on RT_USING_SERIAL_V2
  34. default 128
  35. config BSP_UART0_TX_BUFSIZE
  36. int "Set UART0 TX buffer size"
  37. range 0 65535
  38. depends on RT_USING_SERIAL_V2
  39. default 0
  40. endif
  41. menuconfig BSP_USING_UART2
  42. bool "Enable UART2"
  43. default y
  44. if BSP_USING_UART2
  45. config BSP_UART2_RX_USING_DMA
  46. bool "Enable UART2 RX DMA"
  47. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  48. default y
  49. config BSP_UART2_TX_USING_DMA
  50. bool "Enable UART2 TX DMA"
  51. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  52. default n
  53. config BSP_UART2_RX_BUFSIZE
  54. int "Set UART2 RX buffer size"
  55. range 64 65535
  56. depends on RT_USING_SERIAL_V2
  57. default 1024
  58. config BSP_UART2_TX_BUFSIZE
  59. int "Set UART2 TX buffer size"
  60. range 0 65535
  61. depends on RT_USING_SERIAL_V2
  62. default 0
  63. endif
  64. menuconfig BSP_USING_UART7
  65. bool "Enable UART7"
  66. default n
  67. if BSP_USING_UART7
  68. config BSP_UART7_RX_USING_DMA
  69. bool "Enable UART7 RX DMA"
  70. depends on BSP_USING_UART7 && RT_SERIAL_USING_DMA
  71. default n
  72. config BSP_UART7_TX_USING_DMA
  73. bool "Enable UART7 TX DMA"
  74. depends on BSP_USING_UART7 && RT_SERIAL_USING_DMA
  75. default n
  76. config BSP_UART7_RX_BUFSIZE
  77. int "Set UART7 RX buffer size"
  78. range 64 65535
  79. depends on RT_USING_SERIAL_V2
  80. default 1024
  81. config BSP_UART7_TX_BUFSIZE
  82. int "Set UART7 TX buffer size"
  83. range 0 65535
  84. depends on RT_USING_SERIAL_V2
  85. default 0
  86. endif
  87. endif
  88. menuconfig BSP_USING_SPI
  89. bool "Enable SPI"
  90. default n
  91. select RT_USING_SPI if BSP_USING_SPI
  92. if BSP_USING_SPI
  93. config BSP_USING_SPI1
  94. bool "Enable SPI1"
  95. default y
  96. if BSP_USING_SPI1
  97. config BSP_SPI1_USING_DMA
  98. bool "Enable SPI1 DMA"
  99. default n
  100. endif
  101. config BSP_USING_SPI2
  102. bool "Enable SPI2"
  103. default n
  104. if BSP_USING_SPI2
  105. config BSP_SPI2_USING_DMA
  106. bool "Enable SPI2 DMA"
  107. default n
  108. endif
  109. config BSP_USING_SPI3
  110. bool "Enable SPI3"
  111. default n
  112. if BSP_USING_SPI3
  113. config BSP_SPI3_USING_DMA
  114. bool "Enable SPI3 DMA"
  115. default n
  116. endif
  117. endif
  118. menuconfig BSP_USING_GPTMR
  119. bool "Enable GPTMR"
  120. default n
  121. select RT_USING_HWTIMER if BSP_USING_GPTMR
  122. if BSP_USING_GPTMR
  123. config BSP_USING_GPTMR1
  124. bool "Enable GPTMR1"
  125. default n
  126. config BSP_USING_GPTMR2
  127. bool "Enable GPTMR2"
  128. default n
  129. endif
  130. menuconfig BSP_USING_I2C
  131. bool "Enable I2C"
  132. default n
  133. if BSP_USING_I2C
  134. config BSP_USING_I2C0
  135. bool "Enable I2C0"
  136. default y
  137. if BSP_USING_I2C0
  138. config BSP_I2C0_USING_DMA
  139. bool "Enable I2C0 DMA"
  140. default n
  141. endif
  142. config BSP_USING_I2C3
  143. bool "Enable I2C3"
  144. default n
  145. if BSP_USING_I2C3
  146. config BSP_I2C3_USING_DMA
  147. bool "Enable I2C3 DMA"
  148. default n
  149. endif
  150. endif
  151. menuconfig BSP_USING_XPI_FLASH
  152. bool "Enable XPI FLASH"
  153. default n
  154. select RT_USING_FAL if BSP_USING_XPI_FLASH
  155. menuconfig BSP_USING_PWM
  156. bool "Enable PWM"
  157. default n
  158. menuconfig BSP_USING_USB
  159. bool "Enable USB"
  160. default n
  161. if BSP_USING_USB
  162. config BSP_USING_USB_DEVICE
  163. bool "Enable USB Device"
  164. default n
  165. config BSP_USING_USB_HOST
  166. bool "Enable USB HOST"
  167. select RT_USING_CACHE
  168. default n
  169. endif
  170. menuconfig BSP_USING_EWDG
  171. bool "Enable EWDG"
  172. default n
  173. select RT_USING_WDT if BSP_USING_EWDG
  174. if BSP_USING_EWDG
  175. config BSP_USING_EWDG0
  176. bool "Enable EWDG0"
  177. default n
  178. config BSP_USING_EWDG1
  179. bool "Enable EWDG1"
  180. default n
  181. endif
  182. menuconfig BSP_USING_MCAN
  183. bool "Enable MCAN"
  184. default n
  185. select RT_USING_CAN if BSP_USING_MCAN
  186. if BSP_USING_MCAN
  187. config BSP_USING_MCAN0
  188. bool "Enable MCAN0"
  189. default n
  190. config BSP_USING_MCAN1
  191. bool "Enable MCAN1"
  192. default n
  193. config BSP_USING_MCAN2
  194. bool "Enable MCAN2"
  195. default n
  196. config BSP_USING_MCAN3
  197. bool "Enable MCAN3"
  198. default n
  199. endif
  200. menuconfig BSP_USING_ADC
  201. bool "Enable ADC"
  202. default n
  203. select RT_USING_ADC if BSP_USING_ADC
  204. if BSP_USING_ADC
  205. menuconfig BSP_USING_ADC16
  206. bool "Enable ADC16"
  207. default y
  208. if BSP_USING_ADC16
  209. config BSP_USING_ADC0
  210. bool "Enable ADC0"
  211. default y
  212. config BSP_USING_ADC1
  213. bool "Enable ADC1"
  214. default n
  215. config BSP_USING_ADC2
  216. bool "Enable ADC2"
  217. default n
  218. endif
  219. endif
  220. endmenu
  221. endmenu