Kconfig 4.4 KB

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