Kconfig 4.1 KB

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