Kconfig 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. menu "Hardware Drivers Config"
  2. config SOC_AT32F407VGT7
  3. bool
  4. select SOC_SERIES_AT32F407
  5. select RT_USING_COMPONENTS_INIT
  6. select RT_USING_USER_MAIN
  7. default y
  8. menu "Onboard Peripheral Drivers"
  9. config BSP_USING_SERIAL
  10. bool "Enable USART (uart1)"
  11. select BSP_USING_UART
  12. select BSP_USING_UART1
  13. default y
  14. endmenu
  15. menu "On-chip Peripheral Drivers"
  16. config BSP_USING_GPIO
  17. bool "Enable GPIO"
  18. select RT_USING_PIN
  19. default y
  20. config BSP_USING_ON_CHIP_FLASH
  21. bool "Enable on-chip FLASH"
  22. default n
  23. config BSP_USING_ETH
  24. bool "Enable Ethernet"
  25. default n
  26. select RT_USING_LWIP
  27. select PHY_USING_LAN8720A
  28. menuconfig BSP_USING_RTC
  29. bool "Enable RTC"
  30. select RT_USING_RTC
  31. select RT_USING_LIBC
  32. default n
  33. if BSP_USING_RTC
  34. choice
  35. prompt "Select clock source"
  36. default BSP_RTC_USING_LSE
  37. config BSP_RTC_USING_LSE
  38. bool "RTC USING LSE"
  39. config BSP_RTC_USING_LSI
  40. bool "RTC USING LSI"
  41. endchoice
  42. endif
  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 y
  51. config BSP_USING_UART2
  52. bool "Enable UART2"
  53. default n
  54. config BSP_USING_UART3
  55. bool "Enable UART3"
  56. default n
  57. endif
  58. menuconfig BSP_USING_PWM
  59. bool "Enable PWM"
  60. default n
  61. select RT_USING_PWM
  62. if BSP_USING_PWM
  63. menuconfig BSP_USING_TMR1
  64. bool "Enable timer1 output PWM"
  65. default n
  66. if BSP_USING_TMR1
  67. config BSP_USING_TMR1_CH1
  68. bool "Enable TMR1 channel1 PWM"
  69. default n
  70. config BSP_USING_TMR1_CH4
  71. bool "Enable TMR1 channel4 PWM"
  72. default n
  73. endif
  74. menuconfig BSP_USING_TMR2
  75. bool "Enable timer2 output PWM"
  76. default n
  77. if BSP_USING_TMR2
  78. config BSP_USING_TMR2_CH1
  79. bool "Enable TMR2 channel1 PWM"
  80. default n
  81. config BSP_USING_TMR2_CH2
  82. bool "Enable TMR2 channel2 PWM"
  83. default n
  84. endif
  85. endif
  86. menuconfig BSP_USING_HWTIMER
  87. bool "Enable HWTIMER"
  88. default n
  89. select RT_USING_HWTIMER
  90. if BSP_USING_HWTIMER
  91. config BSP_USING_HWTMR3
  92. bool "Enable hardware timer3"
  93. default n
  94. config BSP_USING_HWTMR4
  95. bool "Enable hardware timer4"
  96. default n
  97. config BSP_USING_HWTMR5
  98. bool "Enable hardware timer5"
  99. default n
  100. endif
  101. menuconfig BSP_USING_SPI
  102. bool "Enable SPI BUS"
  103. default n
  104. select RT_USING_SPI
  105. if BSP_USING_SPI
  106. config BSP_USING_SPI1
  107. bool "Enable SPI1 BUS"
  108. default n
  109. config BSP_USING_SPI2
  110. bool "Enable SPI2 BUS"
  111. default n
  112. endif
  113. menuconfig BSP_USING_I2C1
  114. bool "Enable I2C1 BUS (software simulation)"
  115. default n
  116. select RT_USING_I2C
  117. select RT_USING_I2C_BITOPS
  118. select RT_USING_PIN
  119. if BSP_USING_I2C1
  120. config BSP_I2C1_SCL_PIN
  121. int "i2c1 scl pin number"
  122. range 0 63
  123. default 22
  124. config BSP_I2C1_SDA_PIN
  125. int "I2C1 sda pin number"
  126. range 0 63
  127. default 23
  128. endif
  129. menuconfig BSP_USING_ADC
  130. bool "Enable ADC"
  131. default n
  132. select RT_USING_ADC
  133. if BSP_USING_ADC
  134. config BSP_USING_ADC1
  135. bool "Enable ADC1"
  136. default n
  137. config BSP_USING_ADC2
  138. bool "Enable ADC2"
  139. default n
  140. endif
  141. menuconfig BSP_USING_CAN
  142. bool "Enable CAN"
  143. default n
  144. select RT_USING_CAN
  145. if BSP_USING_CAN
  146. config BSP_USING_CAN1
  147. bool "using CAN1"
  148. default n
  149. config BSP_USING_CAN2
  150. bool "using CAN2"
  151. default n
  152. endif
  153. menuconfig BSP_USING_SDIO
  154. bool "Enable SDIO"
  155. default n
  156. select RT_USING_SDIO
  157. if BSP_USING_SDIO
  158. config BSP_USING_SDIO1
  159. bool "Enable SDIO1"
  160. default n
  161. endif
  162. endmenu
  163. endmenu