Kconfig 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. menu "Hardware Drivers Config"
  2. config SOC_STM32G071RB
  3. bool
  4. select SOC_SERIES_STM32G0
  5. default y
  6. menu "Onboard Peripheral Drivers"
  7. config BSP_USING_USB_TO_USART
  8. bool "Enable USB TO USART (lpuart1)"
  9. select BSP_USING_LPUART1
  10. default y
  11. endmenu
  12. menu "On-chip Peripheral Drivers"
  13. config BSP_USING_GPIO
  14. bool "Enable GPIO"
  15. select RT_USING_PIN
  16. default y
  17. menuconfig BSP_USING_UART
  18. bool "Enable UART"
  19. default y
  20. select RT_USING_SERIAL
  21. if BSP_USING_UART
  22. config BSP_USING_LPUART1
  23. bool "Enable LPUART1"
  24. default y
  25. config BSP_LPUART1_RX_USING_DMA
  26. bool "Enable LPUART1 RX DMA"
  27. depends on BSP_USING_LPUART1 && RT_SERIAL_USING_DMA
  28. default n
  29. config BSP_USING_UART1
  30. bool "Enable UART1"
  31. default n
  32. config BSP_UART1_RX_USING_DMA
  33. bool "Enable UART1 RX DMA"
  34. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  35. default n
  36. config BSP_USING_UART2
  37. bool "Enable UART2"
  38. default n
  39. config BSP_UART2_RX_USING_DMA
  40. bool "Enable UART2 RX DMA"
  41. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  42. default n
  43. endif
  44. menuconfig BSP_USING_TIM
  45. bool "Enable timer"
  46. default n
  47. select RT_USING_HWTIMER
  48. if BSP_USING_TIM
  49. config BSP_USING_TIM2
  50. bool "Enable TIM2"
  51. default n
  52. config BSP_USING_TIM3
  53. bool "Enable TIM3"
  54. default n
  55. endif
  56. menuconfig BSP_USING_PWM
  57. bool "Enable pwm"
  58. default n
  59. select RT_USING_PWM
  60. if BSP_USING_PWM
  61. menuconfig BSP_USING_PWM3
  62. bool "Enable timer3 output pwm"
  63. default n
  64. if BSP_USING_PWM3
  65. config BSP_USING_PWM3_CH1
  66. bool "Enable PWM3 channel1"
  67. default n
  68. config BSP_USING_PWM3_CH2
  69. bool "Enable PWM3 channel2"
  70. default n
  71. config BSP_USING_PWM3_CH3
  72. bool "Enable PWM3 channel3"
  73. default n
  74. config BSP_USING_PWM3_CH4
  75. bool "Enable PWM3 channel4"
  76. default n
  77. endif
  78. endif
  79. menuconfig BSP_USING_SPI
  80. bool "Enable SPI BUS"
  81. default n
  82. select RT_USING_SPI
  83. if BSP_USING_SPI
  84. config BSP_USING_SPI1
  85. bool "Enable SPI1 BUS"
  86. default n
  87. config BSP_SPI1_TX_USING_DMA
  88. bool "Enable SPI1 TX DMA"
  89. depends on BSP_USING_SPI1
  90. default n
  91. config BSP_SPI1_RX_USING_DMA
  92. bool "Enable SPI1 RX DMA"
  93. depends on BSP_USING_SPI1
  94. select BSP_SPI1_TX_USING_DMA
  95. default n
  96. config BSP_USING_SPI2
  97. bool "Enable SPI2 BUS"
  98. default n
  99. config BSP_SPI2_TX_USING_DMA
  100. bool "Enable SPI2 TX DMA"
  101. depends on BSP_USING_SPI2
  102. default n
  103. config BSP_SPI2_RX_USING_DMA
  104. bool "Enable SPI2 RX DMA"
  105. depends on BSP_USING_SPI2
  106. select BSP_SPI2_TX_USING_DMA
  107. default n
  108. endif
  109. menuconfig BSP_USING_I2C1
  110. bool "Enable I2C1 BUS (software simulation)"
  111. default n
  112. select RT_USING_I2C
  113. select RT_USING_I2C_BITOPS
  114. select RT_USING_PIN
  115. if BSP_USING_I2C1
  116. config BSP_I2C1_SCL_PIN
  117. int "i2c1 scl pin number"
  118. range 0 47
  119. default 22
  120. config BSP_I2C1_SDA_PIN
  121. int "I2C1 sda pin number"
  122. range 0 47
  123. default 23
  124. endif
  125. menuconfig BSP_USING_ADC
  126. bool "Enable ADC"
  127. default n
  128. select RT_USING_ADC
  129. if BSP_USING_ADC
  130. config BSP_USING_ADC1
  131. bool "Enable ADC1"
  132. default n
  133. endif
  134. config BSP_USING_ON_CHIP_FLASH
  135. bool "Enable on-chip FLASH"
  136. default n
  137. config BSP_USING_WDT
  138. bool "Enable Watchdog Timer"
  139. select RT_USING_WDT
  140. default n
  141. source "../libraries/HAL_Drivers/Kconfig"
  142. endmenu
  143. menu "Board extended module Drivers"
  144. endmenu
  145. endmenu