Kconfig 5.6 KB

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