Kconfig 3.9 KB

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