Kconfig 5.7 KB

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