Kconfig 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. menu "Hardware Drivers Config"
  2. config SOC_STM32F411RE
  3. bool
  4. select SOC_SERIES_STM32F4
  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_PWM1
  23. select BSP_USING_PWM4
  24. select BSP_USING_PWM3
  25. select BSP_USING_PWM2
  26. select BSP_USING_PWM2_CH2
  27. select BSP_USING_PWM3_CH1
  28. select BSP_USING_PWM2_CH3
  29. select BSP_USING_PWM3_CH2
  30. select BSP_USING_PWM4_CH1
  31. select BSP_USING_PWM1_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_UART2
  49. bool "Enable UART2"
  50. default y
  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. config BSP_USING_UART6
  56. bool "Enable UART6"
  57. default y
  58. config BSP_UART6_RX_USING_DMA
  59. bool "Enable UART6 RX DMA"
  60. depends on BSP_USING_UART6 && 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_I2C1
  73. bool "Enable I2C1 BUS (software simulation)"
  74. default n
  75. select RT_USING_I2C
  76. select RT_USING_I2C_BITOPS
  77. select RT_USING_PIN
  78. if BSP_USING_I2C1
  79. comment "Notice: PB8 --> 24; PB9 --> 25"
  80. config BSP_I2C1_SCL_PIN
  81. int "i2c1 scl pin number"
  82. range 0 80
  83. default 24
  84. config BSP_I2C1_SDA_PIN
  85. int "I2C1 sda pin number"
  86. range 0 80
  87. default 25
  88. endif
  89. menuconfig BSP_USING_PWM
  90. bool "Enable PWM"
  91. default n
  92. select RT_USING_PWM
  93. if BSP_USING_PWM
  94. menuconfig BSP_USING_PWM1
  95. bool "Enable timer1 output PWM"
  96. default n
  97. if BSP_USING_PWM1
  98. config BSP_USING_PWM1_CH1
  99. bool "Enable PWM1 channel1"
  100. default n
  101. endif
  102. menuconfig BSP_USING_PWM2
  103. bool "Enable timer2 output PWM"
  104. default n
  105. if BSP_USING_PWM2
  106. config BSP_USING_PWM2_CH2
  107. bool "Enable PWM2 channel2"
  108. default n
  109. config BSP_USING_PWM2_CH3
  110. bool "Enable PWM2 channel3"
  111. default n
  112. endif
  113. menuconfig BSP_USING_PWM3
  114. bool "Enable timer3 output PWM"
  115. default n
  116. if BSP_USING_PWM3
  117. config BSP_USING_PWM3_CH1
  118. bool "Enable PWM3 channel1"
  119. default n
  120. config BSP_USING_PWM3_CH2
  121. bool "Enable PWM3 channel2"
  122. default n
  123. config BSP_USING_PWM3_CH4
  124. bool "Enable PWM3 channel4"
  125. default n
  126. endif
  127. menuconfig BSP_USING_PWM4
  128. bool "Enable timer4 output PWM"
  129. default n
  130. if BSP_USING_PWM4
  131. config BSP_USING_PWM4_CH1
  132. bool "Enable PWM4 channel1"
  133. default n
  134. endif
  135. endif
  136. menuconfig BSP_USING_ONCHIP_RTC
  137. bool "Enable RTC"
  138. select RT_USING_RTC
  139. default n
  140. if BSP_USING_ONCHIP_RTC
  141. choice
  142. prompt "Select clock source"
  143. default BSP_RTC_USING_LSE
  144. config BSP_RTC_USING_LSE
  145. bool "RTC USING LSE"
  146. config BSP_RTC_USING_LSI
  147. bool "RTC USING LSI"
  148. endchoice
  149. endif
  150. config BSP_USING_ON_CHIP_FLASH
  151. bool "Enable on-chip FLASH"
  152. default n
  153. config BSP_USING_WDT
  154. bool "Enable Watchdog Timer"
  155. select RT_USING_WDT
  156. default n
  157. source "../libraries/HAL_Drivers/Kconfig"
  158. endmenu
  159. menu "Board extended module Drivers"
  160. endmenu
  161. endmenu