Kconfig 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. menu "Hardware Drivers Config"
  2. config SOC_ACM32F070RBT7
  3. bool
  4. select SOC_SERIES_ACM32F0
  5. select RT_USING_COMPONENTS_INIT
  6. default y
  7. config SOC_SRAM_START_ADDR
  8. hex
  9. default 0x20000000
  10. config SOC_SRAM_SIZE
  11. hex
  12. default 0x20
  13. config SOC_FLASH_START_ADDR
  14. hex
  15. default 0x00000000
  16. config SOC_FLASH_SIZE
  17. hex
  18. default 0x80
  19. menu "Onboard Peripheral Drivers"
  20. endmenu
  21. menu "On-chip Peripheral Drivers"
  22. menu "Hardware GPIO"
  23. config BSP_USING_GPIO1
  24. bool "Enable GPIOAB"
  25. default y
  26. select RT_USING_PIN
  27. config BSP_USING_GPIO2
  28. bool "Enable GPIOCD"
  29. default y
  30. select RT_USING_PIN
  31. endmenu
  32. config BSP_USING_ADC
  33. bool "Enable ADC"
  34. select RT_USING_ADC
  35. default n
  36. menu "Hardware UART"
  37. config BSP_USING_UART1
  38. bool "Enable UART1 (PA9/PA10)"
  39. default y
  40. select RT_USING_SERIAL
  41. config BSP_USING_UART2
  42. bool "Enable UART2 (PA2/PA3)"
  43. default y
  44. select RT_USING_SERIAL
  45. if BSP_USING_UART2
  46. config BSP_UART2_RX_USING_DMA
  47. bool "Enable UART2 RX DMA"
  48. depends on BSP_USING_UART2
  49. select RT_SERIAL_USING_DMA
  50. default n
  51. config BSP_UART2_TX_USING_DMA
  52. bool "Enable UART2 TX DMA"
  53. depends on BSP_USING_UART2
  54. select RT_SERIAL_USING_DMA
  55. default n
  56. endif
  57. config BSP_USING_UART3
  58. bool "Enable UART3 (PC4/PC5)"
  59. default n
  60. select RT_USING_SERIAL
  61. if BSP_USING_UART3
  62. config BSP_UART3_RX_USING_DMA
  63. bool "Enable UART3 RX DMA"
  64. depends on BSP_USING_UART3
  65. select RT_SERIAL_USING_DMA
  66. default n
  67. config BSP_UART3_TX_USING_DMA
  68. bool "Enable UART3 TX DMA"
  69. depends on BSP_USING_UART3
  70. select RT_SERIAL_USING_DMA
  71. default n
  72. endif
  73. endmenu
  74. config BSP_USING_RTC
  75. bool "Enable RTC"
  76. select RT_USING_RTC
  77. default n
  78. menu "Hardware I2C"
  79. config BSP_USING_I2C1
  80. bool "Enable I2C1"
  81. default n
  82. select RT_USING_I2C
  83. config BSP_USING_I2C2
  84. bool "Enable I2C2"
  85. default n
  86. select RT_USING_I2C
  87. endmenu
  88. menu "Hardware CAN"
  89. config BSP_USING_CAN1
  90. bool "Enable CAN1"
  91. default n
  92. select RT_USING_CAN
  93. endmenu
  94. menu "Hardware TIMER"
  95. config BSP_USING_TIM1
  96. bool "Enable Timer1"
  97. default n
  98. select RT_USING_HWTIMER
  99. config BSP_USING_TIM3
  100. bool "Enable Timer3"
  101. default n
  102. select RT_USING_HWTIMER
  103. config BSP_USING_TIM6
  104. bool "Enable Timer6"
  105. default n
  106. select RT_USING_HWTIMER
  107. config BSP_USING_TIM14
  108. bool "Enable Timer14"
  109. default n
  110. select RT_USING_HWTIMER
  111. config BSP_USING_TIM15
  112. bool "Enable Timer15"
  113. default n
  114. select RT_USING_HWTIMER
  115. config BSP_USING_TIM16
  116. bool "Enable Timer16"
  117. default n
  118. select RT_USING_HWTIMER
  119. config BSP_USING_TIM17
  120. bool "Enable Timer17"
  121. default n
  122. select RT_USING_HWTIMER
  123. endmenu
  124. menu "Hardware WDT"
  125. config BSP_USING_WDT
  126. bool "Enable Watch Dog Timer"
  127. default n
  128. select RT_USING_WDT
  129. config BSP_USING_IWDT
  130. bool "Enable Independent Watch Dog Timer"
  131. default n
  132. select RT_USING_WDT
  133. endmenu
  134. config BSP_USING_LCD
  135. bool "Enable LCD"
  136. default n
  137. menu "Hardware SPI"
  138. config BSP_USING_SPI1
  139. bool "Enable SPI1"
  140. select RT_USING_SPI
  141. default n
  142. if BSP_USING_SPI1
  143. config BSP_SPI1_RX_USING_DMA
  144. bool "Enable SPI1 RX DMA"
  145. default n
  146. config BSP_SPI1_TX_USING_DMA
  147. bool "Enable SPI1 TX DMA"
  148. default n
  149. endif
  150. config BSP_USING_SPI2
  151. bool "Enable SPI2"
  152. select RT_USING_SPI
  153. default n
  154. if BSP_USING_SPI2
  155. config BSP_SPI2_RX_USING_DMA
  156. bool "Enable SPI2 RX DMA"
  157. default n
  158. config BSP_SPI2_TX_USING_DMA
  159. bool "Enable SPI2 TX DMA"
  160. default n
  161. endif
  162. endmenu
  163. menu "Hardware CRYPTO"
  164. config BSP_USING_CRC
  165. select RT_HWCRYPTO_USING_CRC
  166. bool "Enable CRC"
  167. default n
  168. select RT_USING_HWCRYPTO
  169. config BSP_USING_AES
  170. select RT_HWCRYPTO_USING_AES
  171. bool "Enable AES"
  172. default n
  173. select RT_USING_HWCRYPTO
  174. config BSP_USING_HRNG
  175. select RT_HWCRYPTO_USING_RNG
  176. bool "Enable HRNG"
  177. default n
  178. select RT_USING_HWCRYPTO
  179. endmenu
  180. config BSP_USING_CMP
  181. bool "Enable Analog Voltage Comparer"
  182. default n
  183. config BSP_USING_OPA
  184. bool "Enable Operational Amplifier"
  185. default n
  186. config BSP_USING_TKEY
  187. bool "Enable Touch Key"
  188. select RT_USING_TOUCH
  189. default n
  190. config BSP_USING_RPMU
  191. bool "Enable RTC PMU"
  192. select RT_USING_PM
  193. default n
  194. endmenu
  195. menu "Board extended module Drivers"
  196. endmenu
  197. endmenu