Kconfig 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  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_UART6 && 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_UART6
  65. bool "Enable UART6"
  66. default n
  67. if BSP_USING_UART6
  68. config BSP_UART6_RX_USING_DMA
  69. bool "Enable UART6 RX DMA"
  70. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  71. default n
  72. config BSP_UART6_TX_USING_DMA
  73. bool "Enable UART6 TX DMA"
  74. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  75. default n
  76. config BSP_UART6_RX_BUFSIZE
  77. int "Set UART6 RX buffer size"
  78. range 64 65535
  79. depends on RT_USING_SERIAL_V2
  80. default 1024
  81. config BSP_UART6_TX_BUFSIZE
  82. int "Set UART6 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. config BSP_USING_SPI2
  97. bool "Enable SPI2"
  98. default n
  99. config BSP_USING_SPI3
  100. bool "Enable SPI3"
  101. default n
  102. endif
  103. menuconfig BSP_USING_GPTMR
  104. bool "Enable GPTMR"
  105. default n
  106. select RT_USING_HWTIMER if BSP_USING_GPTMR
  107. if BSP_USING_GPTMR
  108. config BSP_USING_GPTMR1
  109. bool "Enable GPTMR1"
  110. default n
  111. endif
  112. menuconfig BSP_USING_I2C
  113. bool "Enable I2C"
  114. default n
  115. if BSP_USING_I2C
  116. config BSP_USING_I2C0
  117. bool "Enable I2C0"
  118. default y
  119. if BSP_USING_I2C0
  120. config BSP_I2C0_USING_DMA
  121. bool "Enable I2C0 DMA"
  122. default n
  123. endif
  124. config BSP_USING_I2C3
  125. bool "Enable I2C3"
  126. default n
  127. if BSP_USING_I2C3
  128. config BSP_I2C3_USING_DMA
  129. bool "Enable I2C3 DMA"
  130. default n
  131. endif
  132. endif
  133. menuconfig BSP_USING_XPI_FLASH
  134. bool "Enable XPI FLASH"
  135. default n
  136. select RT_USING_FAL if BSP_USING_XPI_FLASH
  137. menuconfig BSP_USING_USB
  138. bool "Enable USB"
  139. default n
  140. if BSP_USING_USB
  141. config BSP_USING_USB_DEVICE
  142. bool "Enable USB Device"
  143. default n
  144. config BSP_USING_USB_HOST
  145. bool "Enable USB HOST"
  146. select RT_USING_CACHE
  147. default n
  148. endif
  149. menuconfig BSP_USING_EWDG
  150. bool "Enable EWDG"
  151. default n
  152. select RT_USING_WDT if BSP_USING_EWDG
  153. if BSP_USING_EWDG
  154. config BSP_USING_EWDG0
  155. bool "Enable EWDG0"
  156. default n
  157. config BSP_USING_EWDG1
  158. bool "Enable EWDG1"
  159. default n
  160. endif
  161. menuconfig BSP_USING_ADC
  162. bool "Enable ADC"
  163. default n
  164. select RT_USING_ADC if BSP_USING_ADC
  165. if BSP_USING_ADC
  166. menuconfig BSP_USING_ADC16
  167. bool "Enable ADC16"
  168. default y
  169. if BSP_USING_ADC16
  170. config BSP_USING_ADC0
  171. bool "Enable ADC0"
  172. default y
  173. endif
  174. endif
  175. endmenu
  176. endmenu