Kconfig 6.6 KB

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