Kconfig 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. menu "Hardware Drivers Config"
  2. config SOC_STM32F427II
  3. bool
  4. select SOC_SERIES_STM32F4
  5. select RT_USING_COMPONENTS_INIT
  6. select RT_USING_USER_MAIN
  7. default y
  8. menu "Onboard Peripheral Drivers"
  9. endmenu
  10. menu "On-chip Peripheral Drivers"
  11. config BSP_USING_GPIO
  12. bool "Enable GPIO"
  13. select RT_USING_PIN
  14. default y
  15. menuconfig BSP_USING_UART
  16. bool "Enable UART"
  17. default y
  18. select RT_USING_SERIAL
  19. if BSP_USING_UART
  20. config BSP_USING_UART6
  21. bool "Enable UART6 (debug usart)"
  22. default y
  23. config BSP_UART6_RX_USING_DMA
  24. bool "Enable UART6 RX DMA"
  25. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  26. default n
  27. config BSP_USING_UART3
  28. bool "Enable UART3"
  29. default n
  30. config BSP_UART3_RX_USING_DMA
  31. bool "Enable UART3 RX DMA"
  32. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  33. default n
  34. config BSP_USING_UART7
  35. bool "Enable UART7"
  36. default n
  37. config BSP_UART7_RX_USING_DMA
  38. bool "Enable UART7 RX DMA"
  39. depends on BSP_USING_UART7 && RT_SERIAL_USING_DMA
  40. default n
  41. config BSP_USING_UART8
  42. bool "Enable UART8"
  43. default n
  44. config BSP_UART8_RX_USING_DMA
  45. bool "Enable UART8 RX DMA"
  46. depends on BSP_USING_UART8 && RT_SERIAL_USING_DMA
  47. default n
  48. config BSP_USING_UART1
  49. bool "Enable UART1 (DBUS)"
  50. default n
  51. config BSP_UART1_RX_USING_DMA
  52. bool "Enable UART1 RX DMA"
  53. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  54. default n
  55. endif
  56. menuconfig BSP_USING_CAN
  57. bool "Enable CAN"
  58. default n
  59. select RT_USING_CAN
  60. if BSP_USING_CAN
  61. config BSP_USING_CAN1
  62. bool "using CAN1"
  63. default n
  64. config BSP_USING_CAN2
  65. bool "using CAN2"
  66. default n
  67. endif
  68. menuconfig BSP_USING_PWM
  69. bool "Enable pwm"
  70. default n
  71. select RT_USING_PWM
  72. if BSP_USING_PWM
  73. menuconfig BSP_USING_PWM12
  74. bool "Enable timer12 output pwm"
  75. default n
  76. if BSP_USING_PWM12
  77. config BSP_USING_PWM12_CH1
  78. bool "Enable PWM12 channel1(buzzer) "
  79. default n
  80. endif
  81. menuconfig BSP_USING_PWM4
  82. bool "Enable timer4 output pwm"
  83. default n
  84. if BSP_USING_PWM4
  85. config BSP_USING_PWM4_CH1
  86. bool "Enable PWM4 channel1"
  87. default n
  88. config BSP_USING_PWM4_CH2
  89. bool "Enable PWM4 channel2"
  90. default n
  91. config BSP_USING_PWM4_CH3
  92. bool "Enable PWM4 channel3"
  93. default n
  94. config BSP_USING_PWM4_CH4
  95. bool "Enable PWM4 channel4"
  96. default n
  97. endif
  98. menuconfig BSP_USING_PWM5
  99. bool "Enable timer5 output pwm"
  100. default n
  101. if BSP_USING_PWM5
  102. config BSP_USING_PWM5_CH1
  103. bool "Enable PWM5 channel1"
  104. default n
  105. config BSP_USING_PWM5_CH2
  106. bool "Enable PWM5 channel2"
  107. default n
  108. config BSP_USING_PWM5_CH3
  109. bool "Enable PWM5 channel3"
  110. default n
  111. config BSP_USING_PWM5_CH4
  112. bool "Enable PWM5 channel4"
  113. default n
  114. endif
  115. endif
  116. source "../libraries/HAL_Drivers/Kconfig"
  117. endmenu
  118. menu "Board extended module Drivers"
  119. endmenu
  120. endmenu