Kconfig 4.6 KB

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