Kconfig 4.2 KB

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