Kconfig 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  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. menuconfig BSP_USING_SOFT_I2C
  90. bool "Enable Soft I2C"
  91. select RT_USING_I2C
  92. select RT_USING_I2C_BITOPS
  93. select RT_USING_PIN
  94. default n
  95. if BSP_USING_SOFT_I2C
  96. menuconfig BSP_USING_I2C0
  97. bool "Enable I2C1 BUS (software simulation)"
  98. default n
  99. if BSP_USING_I2C0
  100. config BSP_I2C0_SCL_PIN
  101. int "i2c0 scl pin number (PD, 6)"
  102. range 0 63
  103. default 54
  104. config BSP_I2C0_SDA_PIN
  105. int "I2C0 sda pin number (PD, 7)"
  106. range 0 63
  107. default 55
  108. endif
  109. endif
  110. menu "Hardware CAN"
  111. config BSP_USING_CAN1
  112. bool "Enable CAN1"
  113. default n
  114. select RT_USING_CAN
  115. endmenu
  116. menu "Hardware TIMER"
  117. config BSP_USING_TIM1
  118. bool "Enable Timer1"
  119. default n
  120. select RT_USING_HWTIMER
  121. config BSP_USING_TIM3
  122. bool "Enable Timer3"
  123. default n
  124. select RT_USING_HWTIMER
  125. config BSP_USING_TIM6
  126. bool "Enable Timer6"
  127. default n
  128. select RT_USING_HWTIMER
  129. config BSP_USING_TIM14
  130. bool "Enable Timer14"
  131. default n
  132. select RT_USING_HWTIMER
  133. config BSP_USING_TIM15
  134. bool "Enable Timer15"
  135. default n
  136. select RT_USING_HWTIMER
  137. config BSP_USING_TIM16
  138. bool "Enable Timer16"
  139. default n
  140. select RT_USING_HWTIMER
  141. config BSP_USING_TIM17
  142. bool "Enable Timer17"
  143. default n
  144. select RT_USING_HWTIMER
  145. endmenu
  146. menu "Hardware WDT"
  147. config BSP_USING_WDT
  148. bool "Enable Watch Dog Timer"
  149. default n
  150. select RT_USING_WDT
  151. config BSP_USING_IWDT
  152. bool "Enable Independent Watch Dog Timer"
  153. default n
  154. select RT_USING_WDT
  155. endmenu
  156. config BSP_USING_LCD
  157. bool "Enable LCD"
  158. default n
  159. menu "Hardware SPI"
  160. config BSP_USING_SPI1
  161. bool "Enable SPI1"
  162. select RT_USING_SPI
  163. default n
  164. if BSP_USING_SPI1
  165. config BSP_SPI1_RX_USING_DMA
  166. bool "Enable SPI1 RX DMA"
  167. default n
  168. config BSP_SPI1_TX_USING_DMA
  169. bool "Enable SPI1 TX DMA"
  170. default n
  171. endif
  172. config BSP_USING_SPI2
  173. bool "Enable SPI2"
  174. select RT_USING_SPI
  175. default n
  176. if BSP_USING_SPI2
  177. config BSP_SPI2_RX_USING_DMA
  178. bool "Enable SPI2 RX DMA"
  179. default n
  180. config BSP_SPI2_TX_USING_DMA
  181. bool "Enable SPI2 TX DMA"
  182. default n
  183. endif
  184. endmenu
  185. menu "Hardware CRYPTO"
  186. config BSP_USING_CRC
  187. select RT_HWCRYPTO_USING_CRC
  188. bool "Enable CRC"
  189. default n
  190. select RT_USING_HWCRYPTO
  191. config BSP_USING_AES
  192. select RT_HWCRYPTO_USING_AES
  193. bool "Enable AES"
  194. default n
  195. select RT_USING_HWCRYPTO
  196. config BSP_USING_HRNG
  197. select RT_HWCRYPTO_USING_RNG
  198. bool "Enable HRNG"
  199. default n
  200. select RT_USING_HWCRYPTO
  201. endmenu
  202. config BSP_USING_CMP
  203. bool "Enable Analog Voltage Comparer"
  204. default n
  205. config BSP_USING_OPA
  206. bool "Enable Operational Amplifier"
  207. default n
  208. config BSP_USING_TKEY
  209. bool "Enable Touch Key"
  210. select RT_USING_TOUCH
  211. default n
  212. config BSP_USING_RPMU
  213. bool "Enable RTC PMU"
  214. select RT_USING_PM
  215. default n
  216. endmenu
  217. menu "Board extended module Drivers"
  218. endmenu
  219. endmenu