Kconfig 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  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. default n
  32. if BSP_USING_RTC
  33. choice
  34. prompt "Select clock source"
  35. default BSP_RTC_USING_LSE
  36. config BSP_RTC_USING_LSE
  37. bool "RTC USING LSE"
  38. config BSP_RTC_USING_LSI
  39. bool "RTC USING LSI"
  40. endchoice
  41. endif
  42. menuconfig BSP_USING_UART
  43. bool "Enable UART"
  44. default y
  45. select RT_USING_SERIAL
  46. if BSP_USING_UART
  47. config BSP_USING_UART1
  48. bool "Enable UART1"
  49. default y
  50. config BSP_USING_UART2
  51. bool "Enable UART2"
  52. default n
  53. config BSP_USING_UART3
  54. bool "Enable UART3"
  55. default n
  56. endif
  57. menuconfig BSP_USING_PWM
  58. bool "Enable PWM"
  59. default n
  60. select RT_USING_PWM
  61. if BSP_USING_PWM
  62. menuconfig BSP_USING_TMR1
  63. bool "Enable timer1 output PWM"
  64. default n
  65. if BSP_USING_TMR1
  66. config BSP_USING_TMR1_CH1
  67. bool "Enable TMR1 channel1 PWM"
  68. default n
  69. config BSP_USING_TMR1_CH4
  70. bool "Enable TMR1 channel4 PWM"
  71. default n
  72. endif
  73. menuconfig BSP_USING_TMR2
  74. bool "Enable timer2 output PWM"
  75. default n
  76. if BSP_USING_TMR2
  77. config BSP_USING_TMR2_CH1
  78. bool "Enable TMR2 channel1 PWM"
  79. default n
  80. config BSP_USING_TMR2_CH2
  81. bool "Enable TMR2 channel2 PWM"
  82. default n
  83. endif
  84. endif
  85. menuconfig BSP_USING_HWTIMER
  86. bool "Enable HWTIMER"
  87. default n
  88. select RT_USING_HWTIMER
  89. if BSP_USING_HWTIMER
  90. config BSP_USING_HWTMR3
  91. bool "Enable hardware timer3"
  92. default n
  93. config BSP_USING_HWTMR4
  94. bool "Enable hardware timer4"
  95. default n
  96. config BSP_USING_HWTMR5
  97. bool "Enable hardware timer5"
  98. default n
  99. endif
  100. menuconfig BSP_USING_SPI
  101. bool "Enable SPI BUS"
  102. default n
  103. select RT_USING_SPI
  104. if BSP_USING_SPI
  105. config BSP_USING_SPI1
  106. bool "Enable SPI1 BUS"
  107. default n
  108. config BSP_USING_SPI2
  109. bool "Enable SPI2 BUS"
  110. default n
  111. endif
  112. menuconfig BSP_USING_I2C1
  113. bool "Enable I2C1 BUS (software simulation)"
  114. default n
  115. select RT_USING_I2C
  116. select RT_USING_I2C_BITOPS
  117. select RT_USING_PIN
  118. if BSP_USING_I2C1
  119. config BSP_I2C1_SCL_PIN
  120. int "i2c1 scl pin number"
  121. range 0 63
  122. default 22
  123. config BSP_I2C1_SDA_PIN
  124. int "I2C1 sda pin number"
  125. range 0 63
  126. default 23
  127. endif
  128. menuconfig BSP_USING_ADC
  129. bool "Enable ADC"
  130. default n
  131. select RT_USING_ADC
  132. if BSP_USING_ADC
  133. config BSP_USING_ADC1
  134. bool "Enable ADC1"
  135. default n
  136. config BSP_USING_ADC2
  137. bool "Enable ADC2"
  138. default n
  139. endif
  140. menuconfig BSP_USING_CAN
  141. bool "Enable CAN"
  142. default n
  143. select RT_USING_CAN
  144. if BSP_USING_CAN
  145. config BSP_USING_CAN1
  146. bool "using CAN1"
  147. default n
  148. config BSP_USING_CAN2
  149. bool "using CAN2"
  150. default n
  151. endif
  152. menuconfig BSP_USING_SDIO
  153. bool "Enable SDIO"
  154. default n
  155. select RT_USING_SDIO
  156. if BSP_USING_SDIO
  157. config BSP_USING_SDIO1
  158. bool "Enable SDIO1"
  159. default n
  160. endif
  161. endmenu
  162. endmenu