Kconfig 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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. imply RTDUINO_USING_SERVO
  24. imply RTDUINO_USING_WIRE
  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_USING_UART1
  38. bool "Enable UART1"
  39. default y
  40. config BSP_UART1_RX_USING_DMA
  41. bool "Enable UART1 RX DMA"
  42. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  43. default n
  44. config BSP_USING_UART2
  45. bool "Enable UART2"
  46. default n
  47. config BSP_UART2_RX_USING_DMA
  48. bool "Enable UART2 RX DMA"
  49. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  50. default n
  51. endif
  52. menuconfig BSP_USING_ADC
  53. bool "Enable ADC"
  54. default n
  55. select RT_USING_ADC
  56. if BSP_USING_ADC
  57. config BSP_USING_ADC1
  58. bool "Enable ADC1"
  59. default n
  60. endif
  61. menuconfig BSP_USING_PWM
  62. bool "Enable PWM"
  63. default n
  64. select RT_USING_PWM
  65. if BSP_USING_PWM
  66. menuconfig BSP_USING_PWM1
  67. bool "Enable timer1 output PWM"
  68. default n
  69. if BSP_USING_PWM1
  70. config BSP_USING_PWM1_CH1
  71. bool "Enable PWM1 channel1"
  72. default n
  73. config BSP_USING_PWM1_CH2
  74. bool "Enable PWM1 channel2"
  75. default n
  76. config BSP_USING_PWM1_CH3
  77. bool "Enable PWM1 channel3"
  78. default n
  79. endif
  80. menuconfig BSP_USING_PWM4
  81. bool "Enable timer4 output PWM"
  82. default n
  83. if BSP_USING_PWM4
  84. config BSP_USING_PWM4_CH1
  85. bool "Enable PWM4 channel1"
  86. default n
  87. config BSP_USING_PWM4_CH2
  88. bool "Enable PWM4 channel2"
  89. default n
  90. config BSP_USING_PWM4_CH3
  91. bool "Enable PWM4 channel3"
  92. default n
  93. config BSP_USING_PWM4_CH4
  94. bool "Enable PWM4 channel4"
  95. default n
  96. endif
  97. endif
  98. menuconfig BSP_USING_I2C1
  99. bool "Enable I2C1 BUS (software simulation)"
  100. default n
  101. select RT_USING_I2C
  102. select RT_USING_I2C_BITOPS
  103. select RT_USING_PIN
  104. if BSP_USING_I2C1
  105. config BSP_I2C1_SCL_PIN
  106. int "i2c1 scl pin number (PC15)"
  107. default 47
  108. config BSP_I2C1_SDA_PIN
  109. int "i2c1 sda pin number (PC14)"
  110. default 46
  111. endif
  112. source "$BSP_DIR/../libraries/HAL_Drivers/drivers/Kconfig"
  113. endmenu
  114. menu "Board extended module Drivers"
  115. endmenu
  116. endmenu