Kconfig 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. menu "Hardware Drivers Config"
  2. config SOC_STM32G474RE
  3. bool
  4. select SOC_SERIES_STM32G4
  5. select RT_USING_COMPONENTS_INIT
  6. select RT_USING_USER_MAIN
  7. default y
  8. menu "Onboard Peripheral Drivers"
  9. config BSP_USING_STLINK_TO_USART
  10. bool "Enable STLINK TO USART (lpuart1)"
  11. select BSP_USING_UART
  12. select BSP_USING_UART1
  13. default y
  14. config BSP_USING_ARDUINO
  15. bool "Compatible with Arduino Ecosystem (RTduino)"
  16. select PKG_USING_RTDUINO
  17. select BSP_USING_STLINK_TO_USART
  18. select BSP_USING_UART1
  19. select BSP_USING_GPIO
  20. select BSP_USING_ADC
  21. select BSP_USING_ADC1
  22. select BSP_USING_ADC2
  23. select BSP_USING_PWM
  24. select BSP_USING_PWM2
  25. select BSP_USING_PWM2_CH2
  26. select BSP_USING_PWM2_CH3
  27. select BSP_USING_PWM3
  28. select BSP_USING_PWM3_CH1
  29. select BSP_USING_PWM3_CH2
  30. select BSP_USING_PWM4
  31. select BSP_USING_PWM4_CH1
  32. select BSP_USING_PWM8
  33. select BSP_USING_PWM8_CH2
  34. select BSP_USING_I2C
  35. select BSP_USING_I2C1
  36. imply RTDUINO_USING_SERVO
  37. imply RTDUINO_USING_WIRE
  38. default n
  39. endmenu
  40. menu "On-chip Peripheral Drivers"
  41. config BSP_USING_GPIO
  42. bool "Enable GPIO"
  43. select RT_USING_PIN
  44. default y
  45. menuconfig BSP_USING_UART
  46. bool "Enable UART"
  47. default y
  48. select RT_USING_SERIAL
  49. if BSP_USING_UART
  50. config BSP_USING_LPUART1
  51. bool "Enable LPUART1"
  52. default n
  53. config BSP_LPUART1_RX_USING_DMA
  54. bool "Enable LPUART1 RX DMA"
  55. depends on BSP_USING_LPUART1 && RT_SERIAL_USING_DMA
  56. default n
  57. config BSP_USING_UART1
  58. bool "Enable UART1"
  59. default n
  60. config BSP_UART1_RX_USING_DMA
  61. bool "Enable UART1 RX DMA"
  62. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  63. default n
  64. config BSP_USING_UART3
  65. bool "Enable UART3"
  66. default n
  67. config BSP_UART3_RX_USING_DMA
  68. bool "Enable UART3 RX DMA"
  69. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  70. default n
  71. config BSP_USING_UART4
  72. bool "Enable UART4"
  73. default n
  74. config BSP_UART4_RX_USING_DMA
  75. bool "Enable UART4 RX DMA"
  76. depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA
  77. default n
  78. endif
  79. menuconfig BSP_USING_ADC
  80. bool "Enable ADC"
  81. default n
  82. select RT_USING_ADC
  83. if BSP_USING_ADC
  84. config BSP_USING_ADC1
  85. bool "Enable ADC1"
  86. default n
  87. config BSP_USING_ADC2
  88. bool "Enable ADC2"
  89. default n
  90. endif
  91. menuconfig BSP_USING_PWM
  92. bool "Enable PWM"
  93. default n
  94. select RT_USING_PWM
  95. if BSP_USING_PWM
  96. menuconfig BSP_USING_PWM2
  97. bool "Enable timer2 output PWM"
  98. default n
  99. if BSP_USING_PWM2
  100. config BSP_USING_PWM2_CH2
  101. bool "Enable PWM2 channel2"
  102. default n
  103. config BSP_USING_PWM2_CH3
  104. bool "Enable PWM2 channel3"
  105. default n
  106. endif
  107. menuconfig BSP_USING_PWM3
  108. bool "Enable timer3 output PWM"
  109. default n
  110. if BSP_USING_PWM3
  111. config BSP_USING_PWM3_CH1
  112. bool "Enable PWM3 channel1"
  113. default n
  114. config BSP_USING_PWM3_CH2
  115. bool "Enable PWM3 channel2"
  116. default n
  117. endif
  118. menuconfig BSP_USING_PWM4
  119. bool "Enable timer4 output PWM"
  120. default n
  121. if BSP_USING_PWM4
  122. config BSP_USING_PWM4_CH1
  123. bool "Enable PWM4 channel1"
  124. default n
  125. endif
  126. menuconfig BSP_USING_PWM8
  127. bool "Enable timer8 output PWM"
  128. default n
  129. if BSP_USING_PWM8
  130. config BSP_USING_PWM8_CH2
  131. bool "Enable PWM8 channel2"
  132. default n
  133. endif
  134. endif
  135. menuconfig BSP_USING_I2C1
  136. bool "Enable I2C1 BUS (software simulation)"
  137. default n
  138. select RT_USING_I2C
  139. select RT_USING_I2C_BITOPS
  140. select RT_USING_PIN
  141. if BSP_USING_I2C1
  142. config BSP_I2C1_SCL_PIN
  143. int "i2c1 scl pin number (PB8)"
  144. default 24
  145. config BSP_I2C1_SDA_PIN
  146. int "i2c1 sda pin number (PB9)"
  147. default 25
  148. endif
  149. source "../libraries/HAL_Drivers/Kconfig"
  150. endmenu
  151. menu "Board extended module Drivers"
  152. endmenu
  153. endmenu