Kconfig 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. menu "Hardware Drivers Config"
  2. menu "Onboard Peripheral Drivers"
  3. config BSP_USING_USB_TO_USART
  4. bool "Enable USB TO USART (uart2)"
  5. select BSP_USING_UART
  6. select BSP_USING_UART2
  7. default y
  8. config BSP_USING_SERVO
  9. bool "Enable Servo"
  10. select BSP_USING_PWM
  11. select BSP_USING_PWM4
  12. select BSP_USING_PWM4_CH3
  13. default n
  14. endmenu
  15. menu "On-chip Peripheral Drivers"
  16. config BSP_USING_GPIO
  17. bool "Enable GPIO"
  18. select RT_USING_PIN
  19. default y
  20. menuconfig BSP_USING_UART
  21. bool "Enable UART"
  22. default y
  23. select RT_USING_SERIAL
  24. if BSP_USING_UART
  25. config BSP_STM32_UART_V1_TX_TIMEOUT
  26. int "UART TX timeout"
  27. default 2000
  28. depends on RT_USING_SERIAL_V1
  29. config BSP_USING_UART2
  30. bool "Enable UART2"
  31. default y
  32. config BSP_USING_UART3
  33. bool "Enable UART3"
  34. default y
  35. #config BSP_UART2_RX_USING_DMA
  36. # bool "Enable UART2 RX DMA"
  37. # depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  38. # default n
  39. endif
  40. menuconfig BSP_USING_PWM
  41. bool "Enable PWM"
  42. select RT_USING_PWM
  43. default n
  44. if BSP_USING_PWM
  45. menuconfig BSP_USING_PWM3
  46. bool "Enable PWM3"
  47. default y
  48. if BSP_USING_PWM3
  49. config BSP_USING_PWM3_CH1
  50. bool "Enable PWM3_CH1(PA6,Blue LED)"
  51. default y
  52. config BSP_USING_PWM3_CH2
  53. bool "Enable PWM3_CH2(PA7,Green LED)"
  54. default n
  55. config BSP_USING_PWM3_CH3
  56. bool "Enable PWM3_CH3(PB0,Red LED)"
  57. default n
  58. config BSP_USING_PWM3_CH4
  59. bool "Enable PWM3_CH4"
  60. default n
  61. endif
  62. menuconfig BSP_USING_PWM4
  63. bool "Enable PWM4"
  64. default n
  65. if BSP_USING_PWM4
  66. config BSP_USING_PWM4_CH1
  67. bool "Enable PWM4_CH1"
  68. default n
  69. config BSP_USING_PWM4_CH2
  70. bool "Enable PWM4_CH2"
  71. default n
  72. config BSP_USING_PWM4_CH3
  73. bool "Enable PWM4_CH3(PB8,Servo)"
  74. default y
  75. config BSP_USING_PWM4_CH4
  76. bool "Enable PWM4_CH4(PB9,Beeper)"
  77. default y
  78. endif
  79. endif
  80. menuconfig BSP_USING_PULSE_ENCODER
  81. bool "Enable Pulse Encoder"
  82. select RT_USING_PULSE_ENCODER
  83. default n
  84. if BSP_USING_PULSE_ENCODER
  85. config BSP_USING_PULSE_ENCODER1
  86. bool "Enable Pulse Encoder1"
  87. default y
  88. endif
  89. source "$(BSP_DIR)/../libraries/HAL_Drivers/drivers/Kconfig"
  90. endmenu
  91. menu "Board extended module Drivers"
  92. endmenu
  93. endmenu