Kconfig 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. menu "Hardware Drivers Config"
  2. config SOC_APM32F103VB
  3. bool
  4. select SOC_SERIES_APM32F1
  5. select RT_USING_COMPONENTS_INIT
  6. select RT_USING_USER_MAIN
  7. default y
  8. menu "On-chip Peripheral Drivers"
  9. config BSP_USING_GPIO
  10. bool "Enable GPIO"
  11. select RT_USING_PIN
  12. default y
  13. menuconfig BSP_USING_UART
  14. bool "Enable UART"
  15. default y
  16. select RT_USING_SERIAL
  17. if BSP_USING_UART
  18. config BSP_USING_UART1
  19. bool "Enable UART1"
  20. default y
  21. config BSP_USING_UART2
  22. bool "Enable UART2"
  23. default n
  24. endif
  25. menuconfig BSP_USING_ADC
  26. bool "Enable ADC"
  27. default n
  28. select RT_USING_ADC
  29. if BSP_USING_ADC
  30. config BSP_USING_ADC1
  31. bool "Enable ADC1"
  32. default n
  33. config BSP_USING_ADC2
  34. bool "Enable ADC2"
  35. default n
  36. config BSP_USING_ADC3
  37. bool "Enable ADC3"
  38. default n
  39. endif
  40. menuconfig BSP_USING_DAC
  41. bool "Enable DAC"
  42. default n
  43. select RT_USING_DAC
  44. if BSP_USING_DAC
  45. config BSP_USING_DAC1
  46. bool "Enable DAC1"
  47. default n
  48. endif
  49. menuconfig BSP_USING_ONCHIP_RTC
  50. bool "Enable RTC"
  51. select RT_USING_RTC
  52. default n
  53. if BSP_USING_ONCHIP_RTC
  54. choice
  55. prompt "Select clock source"
  56. default BSP_RTC_USING_LSE
  57. config BSP_RTC_USING_LSE
  58. bool "RTC USING LSE"
  59. config BSP_RTC_USING_LSI
  60. bool "RTC USING LSI"
  61. endchoice
  62. endif
  63. menuconfig BSP_USING_I2C
  64. bool "Enable I2C BUS (software simulation)"
  65. default n
  66. select RT_USING_I2C
  67. select RT_USING_I2C_BITOPS
  68. select RT_USING_PIN
  69. if BSP_USING_I2C
  70. config BSP_USING_I2C1
  71. bool "Enable I2C1 BUS"
  72. if BSP_USING_I2C1
  73. comment "Notice: PB6 --> 22; PB7 --> 23"
  74. config BSP_I2C1_SCL_PIN
  75. int "i2c1 scl pin number"
  76. range 0 63
  77. default 22
  78. config BSP_I2C1_SDA_PIN
  79. int "I2C1 sda pin number"
  80. range 0 63
  81. default 23
  82. endif
  83. config BSP_USING_I2C2
  84. bool "Enable I2C2 BUS"
  85. if BSP_USING_I2C2
  86. comment "Notice: PA0 --> 0; PA1 --> 1"
  87. config BSP_I2C2_SCL_PIN
  88. int "i2c2 scl pin number"
  89. range 0 63
  90. default 0
  91. config BSP_I2C2_SDA_PIN
  92. int "I2C2 sda pin number"
  93. range 0 63
  94. default 1
  95. endif
  96. endif
  97. menuconfig BSP_USING_SPI
  98. bool "Enable SPI"
  99. default n
  100. select RT_USING_SPI
  101. if BSP_USING_SPI
  102. config BSP_USING_SPI1
  103. bool "Enable SPI1"
  104. default n
  105. config BSP_USING_SPI2
  106. bool "Enable SPI2"
  107. default n
  108. config BSP_USING_SPI3
  109. bool "Enable SPI3"
  110. default n
  111. endif
  112. menuconfig BSP_USING_TMR
  113. bool "Enable Timer"
  114. default n
  115. select RT_USING_HWTIMER
  116. if BSP_USING_TMR
  117. config BSP_USING_TMR1
  118. bool "Enable TMR1"
  119. default n
  120. config BSP_USING_TMR2
  121. bool "Enable TMR2"
  122. default n
  123. config BSP_USING_TMR3
  124. bool "Enable TMR3"
  125. default n
  126. config BSP_USING_TMR4
  127. bool "Enable TMR4"
  128. default n
  129. config BSP_USING_TMR5
  130. bool "Enable TMR5"
  131. default n
  132. config BSP_USING_TMR6
  133. bool "Enable TMR6"
  134. default n
  135. config BSP_USING_TMR7
  136. bool "Enable TMR7"
  137. default n
  138. endif
  139. menuconfig BSP_USING_PWM
  140. bool "Enable PWM"
  141. default n
  142. select RT_USING_PWM
  143. if BSP_USING_PWM
  144. menuconfig BSP_USING_PWM3
  145. bool "Enable timer3 output PWM"
  146. default n
  147. if BSP_USING_PWM3
  148. config BSP_USING_PWM3_CH1
  149. bool "Enable PWM3 channel1"
  150. default n
  151. config BSP_USING_PWM3_CH2
  152. bool "Enable PWM3 channel2"
  153. default n
  154. config BSP_USING_PWM3_CH3
  155. bool "Enable PWM3 channel3"
  156. default n
  157. config BSP_USING_PWM3_CH4
  158. bool "Enable PWM3 channel4"
  159. default n
  160. endif
  161. endif
  162. config BSP_USING_ON_CHIP_FLASH
  163. bool "Enable on-chip FLASH"
  164. default n
  165. config BSP_USING_WDT
  166. bool "Enable Watchdog Timer"
  167. select RT_USING_WDT
  168. default n
  169. endmenu
  170. endmenu