Kconfig 5.8 KB

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