Kconfig 5.6 KB

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