Kconfig 7.1 KB

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