Kconfig 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408
  1. menu "Hardware Drivers Config"
  2. config SOC_SWM341
  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 (M0/RX,M1/TX)"
  15. default y
  16. config BSP_USING_UART1
  17. bool "Enable UART1 (D4/RX,D3/TX)"
  18. default n
  19. config BSP_USING_UART2
  20. bool "Enable UART2 (C1/RX,C0/TX)"
  21. default n
  22. config BSP_USING_UART3
  23. bool "Enable UART3 (C2/RX,C3/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(C6)"
  41. default n
  42. config BSP_USING_ADC0_CHN1
  43. bool "Enable ADC0_CHN1(C5)"
  44. default n
  45. config BSP_USING_ADC0_CHN2
  46. bool "Enable ADC0_CHN2(C4)"
  47. default n
  48. config BSP_USING_ADC0_CHN3
  49. bool "Enable ADC0_CHN3(C3)"
  50. default n
  51. config BSP_USING_ADC0_CHN4
  52. bool "Enable ADC0_CHN4(C2)"
  53. default n
  54. config BSP_USING_ADC0_CHN5
  55. bool "Enable ADC0_CHN5(C1)"
  56. default n
  57. config BSP_USING_ADC0_CHN6
  58. bool "Enable ADC0_CHN6(C0)"
  59. default n
  60. config BSP_USING_ADC0_CHN7
  61. bool "Enable ADC0_CHN7(A15)"
  62. default n
  63. config BSP_USING_ADC0_CHN8
  64. bool "Enable ADC0_CHN8(A14)"
  65. default n
  66. config BSP_USING_ADC0_CHN9
  67. bool "Enable ADC0_CHN9(A13)"
  68. default n
  69. config BSP_USING_ADC0_CHN10
  70. bool "Enable ADC0_CHN10(A12)"
  71. default n
  72. config BSP_USING_ADC0_CHN11
  73. bool "Enable ADC0_CHN11(A10)"
  74. default n
  75. endif
  76. config BSP_USING_ADC1
  77. bool "Enable ADC1"
  78. default n
  79. if BSP_USING_ADC1
  80. config BSP_USING_ADC1_CHN0
  81. bool "Enable ADC1_CHN0(D1)"
  82. default n
  83. config BSP_USING_ADC1_CHN1
  84. bool "Enable ADC1_CHN1(D0)"
  85. default n
  86. config BSP_USING_ADC1_CHN2
  87. bool "Enable ADC1_CHN2(C13)"
  88. default n
  89. config BSP_USING_ADC1_CHN3
  90. bool "Enable ADC1_CHN3(C12)"
  91. default n
  92. config BSP_USING_ADC1_CHN4
  93. bool "Enable ADC1_CHN4(C11)"
  94. default n
  95. config BSP_USING_ADC1_CHN5
  96. bool "Enable ADC1_CHN5(C10)"
  97. default n
  98. config BSP_USING_ADC1_CHN6
  99. bool "Enable ADC1_CHN6(C9)"
  100. default n
  101. endif
  102. endif
  103. config BSP_USING_DAC
  104. bool "Enable DAC"
  105. select RT_USING_DAC
  106. default n
  107. menuconfig BSP_USING_CAN
  108. bool "Enable CAN"
  109. default n
  110. select RT_USING_CAN
  111. if BSP_USING_CAN
  112. config BSP_USING_CAN0
  113. bool "Enable CAN0(TX/B4,RX/B5)"
  114. default n
  115. config BSP_USING_CAN1
  116. bool "Enable CAN1(TX/B2,RX/B3)"
  117. default n
  118. endif
  119. menuconfig BSP_USING_TIM
  120. bool "Enable HWTIMER"
  121. default n
  122. select RT_USING_HWTIMER
  123. if BSP_USING_TIM
  124. config BSP_USING_TIM0
  125. bool "Enable TIM0"
  126. default n
  127. config BSP_USING_TIM1
  128. bool "Enable TIM1"
  129. default n
  130. config BSP_USING_TIM2
  131. bool "Enable TIM2"
  132. default n
  133. config BSP_USING_TIM3
  134. bool "Enable TIM3"
  135. default n
  136. config BSP_USING_TIM4
  137. bool "Enable TIM4"
  138. default n
  139. config BSP_USING_BTIM0
  140. bool "Enable BTIM0"
  141. default n
  142. config BSP_USING_BTIM1
  143. bool "Enable BTIM1"
  144. default n
  145. config BSP_USING_BTIM2
  146. bool "Enable BTIM2"
  147. default n
  148. config BSP_USING_BTIM3
  149. bool "Enable BTIM3"
  150. default n
  151. config BSP_USING_BTIM4
  152. bool "Enable BTIM4"
  153. default n
  154. config BSP_USING_BTIM5
  155. bool "Enable BTIM5"
  156. default n
  157. config BSP_USING_BTIM6
  158. bool "Enable BTIM6"
  159. default n
  160. config BSP_USING_BTIM7
  161. bool "Enable BTIM7"
  162. default n
  163. config BSP_USING_BTIM8
  164. bool "Enable BTIM8"
  165. default n
  166. config BSP_USING_BTIM9
  167. bool "Enable BTIM9"
  168. default n
  169. config BSP_USING_BTIM10
  170. bool "Enable BTIM10"
  171. default n
  172. config BSP_USING_BTIM11
  173. bool "Enable BTIM11"
  174. default n
  175. endif
  176. menuconfig BSP_USING_I2C
  177. bool "Enable I2C BUS (software simulation)"
  178. default n
  179. select RT_USING_I2C
  180. select RT_USING_I2C_BITOPS
  181. select RT_USING_PIN
  182. if BSP_USING_I2C
  183. config BSP_USING_I2C0
  184. bool "Enable I2C0"
  185. default n
  186. if BSP_USING_I2C0
  187. config BSP_I2C0_SCL_PIN
  188. int "I2C0 scl pin number"
  189. range 0 111
  190. default 1
  191. config BSP_I2C0_SDA_PIN
  192. int "I2C0 sda pin number"
  193. range 0 111
  194. default 0
  195. endif
  196. config BSP_USING_I2C1
  197. bool "Enable I2C1"
  198. default n
  199. if BSP_USING_I2C1
  200. config BSP_I2C1_SCL_PIN
  201. int "I2C1 scl pin number"
  202. range 0 111
  203. default 37
  204. config BSP_I2C1_SDA_PIN
  205. int "I2C1 sda pin number"
  206. range 0 111
  207. default 36
  208. endif
  209. endif
  210. menuconfig BSP_USING_PWM
  211. bool "Enable PWM"
  212. default n
  213. select RT_USING_PWM
  214. if BSP_USING_PWM
  215. comment "Notice: PWMA,PWMAN,PWMB,PWMBN are all channel0,the performance is the same"
  216. config BSP_USING_PWM0
  217. bool "Enable PWM0"
  218. default n
  219. if BSP_USING_PWM0
  220. config BSP_USING_PWM0A
  221. bool "Enable PWM0A (M1)"
  222. default n
  223. config BSP_USING_PWM0AN
  224. bool "Enable PWM0AN (M4)"
  225. default n
  226. config BSP_USING_PWM0B
  227. bool "Enable PWM0B (M2)"
  228. default n
  229. config BSP_USING_PWM0BN
  230. bool "Enable PWM0BN (M5)"
  231. default n
  232. endif
  233. config BSP_USING_PWM1
  234. bool "Enable PWM1"
  235. default n
  236. if BSP_USING_PWM1
  237. config BSP_USING_PWM1A
  238. bool "Enable PWM1A (M3)"
  239. default n
  240. config BSP_USING_PWM1AN
  241. bool "Enable PWM1AN (M6)"
  242. default n
  243. config BSP_USING_PWM1B
  244. bool "Enable PWM1B (D9)"
  245. default n
  246. config BSP_USING_PWM1BN
  247. bool "Enable PWM1BN (D8)"
  248. default n
  249. endif
  250. config BSP_USING_PWM2
  251. bool "Enable PWM2"
  252. default n
  253. if BSP_USING_PWM2
  254. config BSP_USING_PWM2A
  255. bool "Enable PWM2A (M12)"
  256. default n
  257. config BSP_USING_PWM2AN
  258. bool "Enable PWM2AN (M9)"
  259. default n
  260. config BSP_USING_PWM2B
  261. bool "Enable PWM2B (M11)"
  262. default n
  263. config BSP_USING_PWM2BN
  264. bool "Enable PWM2BN (M8)"
  265. default n
  266. endif
  267. config BSP_USING_PWM3
  268. bool "Enable PWM3"
  269. default n
  270. if BSP_USING_PWM3
  271. config BSP_USING_PWM3A
  272. bool "Enable PWM3A (C2)"
  273. default n
  274. config BSP_USING_PWM3AN
  275. bool "Enable PWM3AN (C3)"
  276. default n
  277. config BSP_USING_PWM3B
  278. bool "Enable PWM3B (B1)"
  279. default n
  280. config BSP_USING_PWM3BN
  281. bool "Enable PWM3BN (B0)"
  282. default n
  283. endif
  284. config BSP_USING_PWM4
  285. bool "Enable PWM4"
  286. default n
  287. if BSP_USING_PWM4
  288. config BSP_USING_PWM4A
  289. bool "Enable PWM4A (B15)"
  290. default n
  291. config BSP_USING_PWM4AN
  292. bool "Enable PWM4AN (B14) NOTICE:SWDIO"
  293. default n
  294. config BSP_USING_PWM4B
  295. bool "Enable PWM4B (B13)"
  296. default n
  297. config BSP_USING_PWM4BN
  298. bool "Enable PWM4BN (B12) NOTICE:SWDCK"
  299. default n
  300. endif
  301. endif
  302. config BSP_USING_RTC
  303. bool "Enable RTC"
  304. select RT_USING_RTC
  305. select RT_USING_LIBC
  306. default n
  307. menuconfig BSP_USING_SPI
  308. bool "Enable SPI BUS"
  309. default n
  310. select RT_USING_SPI
  311. if BSP_USING_SPI
  312. config BSP_USING_SPI0
  313. bool "Enable SPI0 BUS(CS/M3,MISO/M4,MOSI/M5,CLK/M2)"
  314. default n
  315. config BSP_USING_SPI1
  316. bool "Enable SPI1 BUS(CS/B5,MISO/B3,MOSI/B4,CLK/B2)"
  317. default n
  318. endif
  319. config BSP_USING_WDT
  320. bool "Enable Watchdog Timer"
  321. select RT_USING_WDT
  322. default n
  323. config BSP_USING_CRC
  324. bool "Enable CRC"
  325. select RT_USING_HWCRYPTO
  326. select RT_HWCRYPTO_USING_CRC
  327. default n
  328. config BSP_USING_RNG
  329. bool "Enable RNG (Random Number Generator)"
  330. select RT_USING_HWCRYPTO
  331. select RT_HWCRYPTO_USING_RNG
  332. default n
  333. config BSP_USING_SDIO
  334. bool "Enable SDCARD (sdio)"
  335. select RT_USING_SDIO
  336. select RT_USING_DFS
  337. select RT_USING_DFS_ELMFAT
  338. default n
  339. menuconfig BSP_USING_SDRAM
  340. bool "Enable SDRAM"
  341. select RT_USING_MEMHEAP
  342. select RT_USING_MEMHEAP_AS_HEAP
  343. select RT_USING_MEMHEAP_AUTO_BINDING
  344. default n
  345. if BSP_USING_SDRAM
  346. config BSP_SDRAM_SIZE
  347. hex "SDRAM size"
  348. default 0x800000
  349. endif
  350. menuconfig BSP_USING_GT9147
  351. bool "Enable gt9147(use i2c0)"
  352. select RT_USING_TOUCH
  353. select RT_TOUCH_PIN_IRQ
  354. select BSP_USING_I2C
  355. select BSP_USING_I2C0
  356. select PKG_USING_GT9147
  357. select PKG_USING_GT9147_LATEST_VERSION
  358. default n
  359. if BSP_USING_GT9147
  360. config GT9147_RST_PIN
  361. int "GT9147 rst pin number"
  362. range 0 111
  363. default 39
  364. config GT9147_IRQ_PIN
  365. int "GT9147 irq pin number"
  366. range 0 111
  367. default 48
  368. endif
  369. menuconfig BSP_USING_RGB_LCD
  370. bool "Enable RGB LCD"
  371. select BSP_USING_SDRAM
  372. default n
  373. if BSP_USING_RGB_LCD
  374. config BSP_USING_LVGL
  375. bool "Enable LVGL for LCD"
  376. select PKG_USING_LVGL
  377. default n
  378. endif
  379. endmenu
  380. menu "Onboard Peripheral Drivers"
  381. endmenu
  382. menu "Offboard Peripheral Drivers"
  383. endmenu
  384. endmenu