Kconfig 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. menu "Hardware Drivers Config"
  2. config SOC_STM32F072RB
  3. bool
  4. select SOC_SERIES_STM32F0
  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 (uart2)"
  11. select BSP_USING_UART
  12. select BSP_USING_UART2
  13. default y
  14. config BSP_USING_ARDUINO
  15. bool "Support Arduino"
  16. select RT_USING_ARDUINO
  17. select RT_USING_PIN
  18. select BSP_USING_ADC
  19. select BSP_USING_ADC1
  20. select BSP_USING_PWM
  21. select BSP_USING_PWM2
  22. select BSP_USING_PWM2_CH2
  23. select BSP_USING_PWM2_CH3
  24. select BSP_USING_PWM3
  25. select BSP_USING_PWM3_CH1
  26. select BSP_USING_PWM3_CH2
  27. select BSP_USING_I2C
  28. default n
  29. endmenu
  30. menu "On-chip Peripheral Drivers"
  31. config BSP_USING_GPIO
  32. bool "Enable GPIO"
  33. select RT_USING_PIN
  34. default y
  35. menuconfig BSP_USING_UART
  36. bool "Enable UART"
  37. default y
  38. select RT_USING_SERIAL
  39. if BSP_USING_UART
  40. config BSP_USING_UART1
  41. bool "Enable UART1"
  42. default n
  43. config BSP_UART1_RX_USING_DMA
  44. bool "Enable UART1 RX DMA"
  45. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  46. default n
  47. config BSP_USING_UART2
  48. bool "Enable UART2"
  49. default n
  50. config BSP_UART2_RX_USING_DMA
  51. bool "Enable UART2 RX DMA"
  52. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  53. default n
  54. endif
  55. menuconfig BSP_USING_ADC
  56. bool "Enable ADC"
  57. default n
  58. select RT_USING_ADC
  59. if BSP_USING_ADC
  60. config BSP_USING_ADC1
  61. bool "Enable ADC1"
  62. default n
  63. endif
  64. menuconfig BSP_USING_PWM
  65. bool "Enable pwm"
  66. default n
  67. select RT_USING_PWM
  68. if BSP_USING_PWM
  69. menuconfig BSP_USING_PWM2
  70. bool "Enable timer2 output pwm"
  71. default n
  72. if BSP_USING_PWM2
  73. config BSP_USING_PWM2_CH2
  74. bool "Enable PWM2 channel2"
  75. default n
  76. config BSP_USING_PWM2_CH3
  77. bool "Enable PWM2 channel3"
  78. default n
  79. endif
  80. menuconfig BSP_USING_PWM3
  81. bool "Enable timer3 output pwm"
  82. default n
  83. if BSP_USING_PWM3
  84. config BSP_USING_PWM3_CH1
  85. bool "Enable PWM3 channel1"
  86. default n
  87. config BSP_USING_PWM3_CH2
  88. bool "Enable PWM3 channel2"
  89. default n
  90. endif
  91. endif
  92. menuconfig BSP_USING_I2C
  93. bool "Enable I2C BUS"
  94. default n
  95. select RT_USING_I2C
  96. select RT_USING_I2C_BITOPS
  97. select RT_USING_PIN
  98. if BSP_USING_I2C
  99. endif
  100. source "../libraries/HAL_Drivers/Kconfig"
  101. endmenu
  102. menu "Board extended module Drivers"
  103. endmenu
  104. endmenu