Kconfig 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. menu "Hardware Drivers Config"
  2. config SOC_SWM320
  3. bool
  4. select RT_USING_COMPONENTS_INIT
  5. select RT_USING_USER_MAIN
  6. default y
  7. menu "On-chip Peripheral Drivers"
  8. menuconfig BSP_USING_UART
  9. bool "Enable UART"
  10. default y
  11. select RT_USING_SERIAL
  12. if BSP_USING_UART
  13. config BSP_USING_UART0
  14. bool "Enable UART0 (A2/RX,A3/TX)"
  15. default y
  16. config BSP_USING_UART1
  17. bool "Enable UART1 (C2/RX,C3/TX)"
  18. default n
  19. config BSP_USING_UART2
  20. bool "Enable UART2 (C4/RX,C5/TX)"
  21. default n
  22. config BSP_USING_UART3
  23. bool "Enable UART3 (C6/RX,C7/TX)"
  24. default n
  25. endif
  26. config BSP_USING_GPIO
  27. bool "Enable GPIO"
  28. select RT_USING_PIN
  29. default y
  30. menuconfig BSP_USING_ADC
  31. bool "Enable ADC"
  32. default n
  33. select RT_USING_ADC
  34. if BSP_USING_ADC
  35. config BSP_USING_ADC0
  36. bool "Enable ADC0"
  37. default n
  38. if BSP_USING_ADC0
  39. config BSP_USING_ADC0_CHN0
  40. bool "Enable ADC0_CHN0"
  41. default n
  42. config BSP_USING_ADC0_CHN1
  43. bool "Enable ADC0_CHN1"
  44. default n
  45. config BSP_USING_ADC0_CHN2
  46. bool "Enable ADC0_CHN2"
  47. default n
  48. config BSP_USING_ADC0_CHN3
  49. bool "Enable ADC0_CHN3"
  50. default n
  51. config BSP_USING_ADC0_CHN4
  52. bool "Enable ADC0_CHN4(A12)"
  53. default n
  54. config BSP_USING_ADC0_CHN5
  55. bool "Enable ADC0_CHN5(A11)"
  56. default n
  57. config BSP_USING_ADC0_CHN6
  58. bool "Enable ADC0_CHN6(A10)"
  59. default n
  60. config BSP_USING_ADC0_CHN7
  61. bool "Enable ADC0_CHN7(A9)"
  62. default n
  63. endif
  64. config BSP_USING_ADC1
  65. bool "Enable ADC1"
  66. default n
  67. if BSP_USING_ADC1
  68. config BSP_USING_ADC1_CHN0
  69. bool "Enable ADC1_CHN0(C7)"
  70. default n
  71. config BSP_USING_ADC1_CHN1
  72. bool "Enable ADC1_CHN1(C6)"
  73. default n
  74. config BSP_USING_ADC1_CHN2
  75. bool "Enable ADC1_CHN2(C5)"
  76. default n
  77. config BSP_USING_ADC1_CHN3
  78. bool "Enable ADC1_CHN3(C4)"
  79. default n
  80. config BSP_USING_ADC1_CHN4
  81. bool "Enable ADC1_CHN4(N0)"
  82. default n
  83. config BSP_USING_ADC1_CHN5
  84. bool "Enable ADC1_CHN5(N1)"
  85. default n
  86. config BSP_USING_ADC1_CHN6
  87. bool "Enable ADC1_CHN6(N2)"
  88. default n
  89. config BSP_USING_ADC1_CHN7
  90. bool "Enable ADC1_CHN7"
  91. default n
  92. endif
  93. endif
  94. menuconfig BSP_USING_TIM
  95. bool "Enable HWTIMER"
  96. default n
  97. select RT_USING_HWTIMER
  98. if BSP_USING_TIM
  99. config BSP_USING_TIM0
  100. bool "Enable TIM0"
  101. default n
  102. config BSP_USING_TIM1
  103. bool "Enable TIM1"
  104. default n
  105. config BSP_USING_TIM2
  106. bool "Enable TIM2"
  107. default n
  108. config BSP_USING_TIM3
  109. bool "Enable TIM3"
  110. default n
  111. config BSP_USING_TIM4
  112. bool "Enable TIM4"
  113. default n
  114. config BSP_USING_TIM5
  115. bool "Enable TIM5"
  116. default n
  117. endif
  118. menuconfig BSP_USING_I2C
  119. bool "Enable I2C BUS (software simulation)"
  120. default n
  121. select RT_USING_I2C
  122. select RT_USING_I2C_BITOPS
  123. select RT_USING_PIN
  124. if BSP_USING_I2C
  125. config BSP_USING_I2C0
  126. bool "Enable I2C0"
  127. default n
  128. if BSP_USING_I2C0
  129. comment "Notice: PC2 --> 28; PC3 --> 29"
  130. config BSP_I2C0_SCL_PIN
  131. int "I2C0 scl pin number"
  132. range 0 99
  133. default 28
  134. config BSP_I2C0_SDA_PIN
  135. int "I2C0 sda pin number"
  136. range 0 99
  137. default 29
  138. endif
  139. config BSP_USING_I2C1
  140. bool "Enable I2C1"
  141. default n
  142. if BSP_USING_I2C1
  143. comment "Notice: PC6 --> 32; PC7 --> 33"
  144. config BSP_I2C1_SCL_PIN
  145. int "I2C1 scl pin number"
  146. range 0 99
  147. default 32
  148. config BSP_I2C1_SDA_PIN
  149. int "I2C1 sda pin number"
  150. range 0 99
  151. default 33
  152. endif
  153. endif
  154. menuconfig BSP_USING_PWM
  155. bool "Enable PWM"
  156. default n
  157. select RT_USING_PWM
  158. if BSP_USING_PWM
  159. config BSP_USING_PWM0
  160. bool "Enable PWM0"
  161. default n
  162. if BSP_USING_PWM0
  163. config BSP_USING_PWM0A
  164. bool "Enable PWM0A (C2)"
  165. default n
  166. config BSP_USING_PWM0B
  167. bool "Enable PWM0B (C4)"
  168. default n
  169. endif
  170. config BSP_USING_PWM1
  171. bool "Enable PWM1"
  172. default n
  173. if BSP_USING_PWM1
  174. config BSP_USING_PWM1A
  175. bool "Enable PWM1A (C3)"
  176. default n
  177. config BSP_USING_PWM1B
  178. bool "Enable PWM1B (C5)"
  179. default n
  180. endif
  181. config BSP_USING_PWM2
  182. bool "Enable PWM2"
  183. default n
  184. if BSP_USING_PWM2
  185. config BSP_USING_PWM2A
  186. bool "Enable PWM2A (N4)"
  187. default n
  188. config BSP_USING_PWM2B
  189. bool "Enable PWM2B (N6)"
  190. default n
  191. endif
  192. config BSP_USING_PWM3
  193. bool "Enable PWM3"
  194. default n
  195. if BSP_USING_PWM3
  196. config BSP_USING_PWM3A
  197. bool "Enable PWM3A (N3)"
  198. default n
  199. config BSP_USING_PWM3B
  200. bool "Enable PWM3B (N5)"
  201. default n
  202. endif
  203. config BSP_USING_PWM4
  204. bool "Enable PWM4"
  205. default n
  206. if BSP_USING_PWM4
  207. config BSP_USING_PWM4A
  208. bool "Enable PWM4A (N8)"
  209. default n
  210. config BSP_USING_PWM4B
  211. bool "Enable PWM4B (N10)"
  212. default n
  213. endif
  214. config BSP_USING_PWM5
  215. bool "Enable PWM5"
  216. default n
  217. if BSP_USING_PWM5
  218. config BSP_USING_PWM5A
  219. bool "Enable PWM5A (N7)"
  220. default n
  221. config BSP_USING_PWM5B
  222. bool "Enable PWM5B (N9)"
  223. default n
  224. endif
  225. endif
  226. config BSP_USING_RTC
  227. bool "Enable RTC"
  228. select RT_USING_RTC
  229. default n
  230. menuconfig BSP_USING_SPI
  231. bool "Enable SPI BUS"
  232. default n
  233. select RT_USING_SPI
  234. if BSP_USING_SPI
  235. config BSP_USING_SPI0
  236. bool "Enable SPI0 BUS(CS/P22,MISO/P19,MOSI/P18,CLK/P23)"
  237. default n
  238. config BSP_USING_SPI1
  239. bool "Enable SPI1 BUS(CS/B6,MISO/B3,MOSI/B2,CLK/B1)"
  240. default n
  241. endif
  242. config BSP_USING_WDT
  243. bool "Enable Watchdog Timer"
  244. select RT_USING_WDT
  245. default n
  246. config BSP_USING_CRC
  247. bool "Enable CRC (CRC-32 0x04C11DB7 Polynomial)"
  248. select RT_USING_HWCRYPTO
  249. select RT_HWCRYPTO_USING_CRC
  250. default n
  251. endmenu
  252. menu "Onboard Peripheral Drivers"
  253. config BSP_USING_SDIO
  254. bool "Enable SDCARD (sdio)"
  255. select RT_USING_SDIO
  256. select RT_USING_DFS
  257. select RT_USING_DFS_ELMFAT
  258. default n
  259. menuconfig BSP_USING_EXT_SRAM
  260. bool "Enable external sram"
  261. select RT_USING_MEMHEAP
  262. select RT_USING_MEMHEAP_AS_HEAP
  263. default n
  264. if BSP_USING_EXT_SRAM
  265. config BSP_EXT_SRAM_SIZE
  266. hex "external sram size"
  267. default 0x100000
  268. endif
  269. menuconfig BSP_USING_NOR_FLASH
  270. bool "Enable mtd nor flash"
  271. select RT_USING_MTD_NOR
  272. select PKG_USING_FTL_SRC
  273. default n
  274. if BSP_USING_NOR_FLASH
  275. config BSP_NOR_FLASH_SIZE
  276. hex "mtd nor flash size"
  277. default 0x1000000
  278. config BSP_NOR_FLASH_SECTOR_SIZE
  279. hex "mtd nor flsah sector"
  280. default 0x10000
  281. endif
  282. endmenu
  283. menu "Offboard Peripheral Drivers"
  284. endmenu
  285. endmenu