Kconfig 4.5 KB

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