Kconfig 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. menu "Hardware Drivers Config"
  2. config SOC_AT32F413RCT7
  3. bool
  4. select SOC_SERIES_AT32F413
  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. default n
  27. if BSP_USING_RTC
  28. choice
  29. prompt "Select clock source"
  30. default BSP_RTC_USING_LEXT
  31. config BSP_RTC_USING_LEXT
  32. bool "RTC USING LEXT"
  33. config BSP_RTC_USING_LICK
  34. bool "RTC USING LICK"
  35. endchoice
  36. endif
  37. menuconfig BSP_USING_UART
  38. bool "Enable UART"
  39. default y
  40. select RT_USING_SERIAL
  41. if BSP_USING_UART
  42. config BSP_USING_UART1
  43. bool "Enable UART1"
  44. default y
  45. config BSP_USING_UART2
  46. bool "Enable UART2"
  47. default n
  48. config BSP_USING_UART3
  49. bool "Enable UART3"
  50. default n
  51. endif
  52. menuconfig BSP_USING_PWM
  53. bool "Enable PWM"
  54. default n
  55. select RT_USING_PWM
  56. if BSP_USING_PWM
  57. menuconfig BSP_USING_PWM1
  58. bool "Enable timer1 output pwm"
  59. default n
  60. if BSP_USING_PWM1
  61. config BSP_USING_PWM1_CH1
  62. bool "Enable PWM1 channel1"
  63. default n
  64. config BSP_USING_PWM1_CH4
  65. bool "Enable PWM1 channel4"
  66. default n
  67. endif
  68. menuconfig BSP_USING_PWM2
  69. bool "Enable timer2 output pwm"
  70. default n
  71. if BSP_USING_PWM2
  72. config BSP_USING_PWM2_CH1
  73. bool "Enable PWM2 channel1"
  74. default n
  75. config BSP_USING_PWM2_CH2
  76. bool "Enable PWM2 channel2"
  77. default n
  78. endif
  79. endif
  80. menuconfig BSP_USING_HWTIMER
  81. bool "Enable HWTIMER"
  82. default n
  83. select RT_USING_HWTIMER
  84. if BSP_USING_HWTIMER
  85. config BSP_USING_HWTMR3
  86. bool "Enable hardware timer3"
  87. default n
  88. config BSP_USING_HWTMR4
  89. bool "Enable hardware timer4"
  90. default n
  91. config BSP_USING_HWTMR5
  92. bool "Enable hardware timer5"
  93. default n
  94. endif
  95. menuconfig BSP_USING_SPI
  96. bool "Enable SPI BUS"
  97. default n
  98. select RT_USING_SPI
  99. if BSP_USING_SPI
  100. config BSP_USING_SPI1
  101. bool "Enable SPI1 BUS"
  102. default n
  103. config BSP_USING_SPI2
  104. bool "Enable SPI2 BUS"
  105. default n
  106. endif
  107. menuconfig BSP_USING_I2C
  108. bool "Enable I2C BUS (software simulation)"
  109. default n
  110. select RT_USING_I2C
  111. select RT_USING_I2C_BITOPS
  112. select RT_USING_PIN
  113. if BSP_USING_I2C
  114. config BSP_USING_I2C1
  115. bool "Enable I2C1 BUS"
  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. config BSP_USING_I2C2
  127. bool "Enable I2C2 BUS"
  128. if BSP_USING_I2C2
  129. config BSP_I2C2_SCL_PIN
  130. int "i2c2 scl pin number"
  131. range 0 63
  132. default 26
  133. config BSP_I2C2_SDA_PIN
  134. int "I2C2 sda pin number"
  135. range 0 63
  136. default 27
  137. endif
  138. endif
  139. menuconfig BSP_USING_ADC
  140. bool "Enable ADC"
  141. default n
  142. select RT_USING_ADC
  143. if BSP_USING_ADC
  144. config BSP_USING_ADC1
  145. bool "Enable ADC1"
  146. default n
  147. config BSP_USING_ADC2
  148. bool "Enable ADC2"
  149. default n
  150. endif
  151. menuconfig BSP_USING_CAN
  152. bool "Enable CAN"
  153. default n
  154. select RT_USING_CAN
  155. if BSP_USING_CAN
  156. config BSP_USING_CAN1
  157. bool "using CAN1"
  158. default n
  159. config BSP_USING_CAN2
  160. bool "using CAN2"
  161. default n
  162. endif
  163. menuconfig BSP_USING_SDIO
  164. bool "Enable SDIO"
  165. default n
  166. select RT_USING_SDIO
  167. if BSP_USING_SDIO
  168. config BSP_USING_SDIO1
  169. bool "Enable SDIO1"
  170. default n
  171. endif
  172. endmenu
  173. endmenu