Kconfig 4.5 KB

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