Kconfig 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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 "Compatible with Arduino Ecosystem (RTduino)"
  16. select PKG_USING_RTDUINO
  17. select BSP_USING_STLINK_TO_USART
  18. select BSP_USING_GPIO
  19. select BSP_USING_ADC
  20. select BSP_USING_ADC1
  21. select BSP_USING_PWM
  22. select BSP_USING_PWM2
  23. select BSP_USING_PWM2_CH2
  24. select BSP_USING_PWM2_CH3
  25. select BSP_USING_PWM3
  26. select BSP_USING_PWM3_CH1
  27. select BSP_USING_PWM3_CH2
  28. select BSP_USING_PWM16
  29. select BSP_USING_PWM16_CH1
  30. select BSP_USING_PWM17
  31. select BSP_USING_PWM17_CH1
  32. select BSP_USING_I2C
  33. select BSP_USING_I2C1
  34. imply RTDUINO_USING_SERVO
  35. imply RTDUINO_USING_WIRE
  36. default n
  37. endmenu
  38. menu "On-chip Peripheral Drivers"
  39. config BSP_USING_GPIO
  40. bool "Enable GPIO"
  41. select RT_USING_PIN
  42. default y
  43. menuconfig BSP_USING_UART
  44. bool "Enable UART"
  45. default y
  46. select RT_USING_SERIAL
  47. if BSP_USING_UART
  48. config BSP_USING_UART1
  49. bool "Enable UART1"
  50. default n
  51. config BSP_UART1_RX_USING_DMA
  52. bool "Enable UART1 RX DMA"
  53. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  54. default n
  55. config BSP_USING_UART2
  56. bool "Enable UART2"
  57. default n
  58. config BSP_UART2_RX_USING_DMA
  59. bool "Enable UART2 RX DMA"
  60. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  61. default n
  62. endif
  63. menuconfig BSP_USING_ADC
  64. bool "Enable ADC"
  65. default n
  66. select RT_USING_ADC
  67. if BSP_USING_ADC
  68. config BSP_USING_ADC1
  69. bool "Enable ADC1"
  70. default n
  71. endif
  72. menuconfig BSP_USING_TIM
  73. bool "Enable timer"
  74. default n
  75. select RT_USING_HWTIMER
  76. if BSP_USING_TIM
  77. config BSP_USING_TIM7
  78. bool "Enable TIM7"
  79. default n
  80. endif
  81. menuconfig BSP_USING_PWM
  82. bool "Enable PWM"
  83. default n
  84. select RT_USING_PWM
  85. if BSP_USING_PWM
  86. menuconfig BSP_USING_PWM2
  87. bool "Enable timer2 output PWM"
  88. default n
  89. if BSP_USING_PWM2
  90. config BSP_USING_PWM2_CH2
  91. bool "Enable PWM2 channel2"
  92. default n
  93. config BSP_USING_PWM2_CH3
  94. bool "Enable PWM2 channel3"
  95. default n
  96. endif
  97. menuconfig BSP_USING_PWM3
  98. bool "Enable timer3 output PWM"
  99. default n
  100. if BSP_USING_PWM3
  101. config BSP_USING_PWM3_CH1
  102. bool "Enable PWM3 channel1"
  103. default n
  104. config BSP_USING_PWM3_CH2
  105. bool "Enable PWM3 channel2"
  106. default n
  107. endif
  108. menuconfig BSP_USING_PWM16
  109. bool "Enable timer16 output PWM"
  110. default n
  111. if BSP_USING_PWM16
  112. config BSP_USING_PWM16_CH1
  113. bool "Enable PWM16 channel1"
  114. default n
  115. endif
  116. menuconfig BSP_USING_PWM17
  117. bool "Enable timer17 output PWM"
  118. default n
  119. if BSP_USING_PWM17
  120. config BSP_USING_PWM17_CH1
  121. bool "Enable PWM17 channel1"
  122. default n
  123. endif
  124. endif
  125. menuconfig BSP_USING_I2C
  126. bool "Enable I2C BUS"
  127. default n
  128. select RT_USING_I2C
  129. select RT_USING_I2C_BITOPS
  130. select RT_USING_PIN
  131. if BSP_USING_I2C
  132. config BSP_USING_I2C1
  133. bool "Enable I2C1 Bus (User I2C)"
  134. default n
  135. if BSP_USING_I2C1
  136. comment "Notice: PB9 --> 25; PB8 --> 24"
  137. config BSP_I2C1_SCL_PIN
  138. int "i2c1 SCL pin number"
  139. range 1 176
  140. default 24
  141. config BSP_I2C1_SDA_PIN
  142. int "i2c1 SDA pin number"
  143. range 1 176
  144. default 25
  145. endif
  146. endif
  147. source "../libraries/HAL_Drivers/Kconfig"
  148. endmenu
  149. menu "Board extended module Drivers"
  150. endmenu
  151. endmenu