Kconfig 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408
  1. menu "Hardware Drivers Config"
  2. config SOC_SWM341
  3. bool
  4. select ARCH_ARM_CORTEX_M33
  5. select RT_USING_COMPONENTS_INIT
  6. select RT_USING_USER_MAIN
  7. default y
  8. menu "On-chip Peripheral Drivers"
  9. menuconfig BSP_USING_UART
  10. bool "Enable UART"
  11. default y
  12. select RT_USING_SERIAL
  13. if BSP_USING_UART
  14. config BSP_USING_UART0
  15. bool "Enable UART0 (M0/RX,M1/TX)"
  16. default y
  17. config BSP_USING_UART1
  18. bool "Enable UART1 (D4/RX,D3/TX)"
  19. default n
  20. config BSP_USING_UART2
  21. bool "Enable UART2 (C1/RX,C0/TX)"
  22. default n
  23. config BSP_USING_UART3
  24. bool "Enable UART3 (C2/RX,C3/TX)"
  25. default n
  26. endif
  27. config BSP_USING_GPIO
  28. bool "Enable GPIO"
  29. select RT_USING_PIN
  30. default y
  31. menuconfig BSP_USING_ADC
  32. bool "Enable ADC"
  33. default n
  34. select RT_USING_ADC
  35. if BSP_USING_ADC
  36. config BSP_USING_ADC0
  37. bool "Enable ADC0"
  38. default n
  39. if BSP_USING_ADC0
  40. config BSP_USING_ADC0_CHN0
  41. bool "Enable ADC0_CHN0(C6)"
  42. default n
  43. config BSP_USING_ADC0_CHN1
  44. bool "Enable ADC0_CHN1(C5)"
  45. default n
  46. config BSP_USING_ADC0_CHN2
  47. bool "Enable ADC0_CHN2(C4)"
  48. default n
  49. config BSP_USING_ADC0_CHN3
  50. bool "Enable ADC0_CHN3(C3)"
  51. default n
  52. config BSP_USING_ADC0_CHN4
  53. bool "Enable ADC0_CHN4(C2)"
  54. default n
  55. config BSP_USING_ADC0_CHN5
  56. bool "Enable ADC0_CHN5(C1)"
  57. default n
  58. config BSP_USING_ADC0_CHN6
  59. bool "Enable ADC0_CHN6(C0)"
  60. default n
  61. config BSP_USING_ADC0_CHN7
  62. bool "Enable ADC0_CHN7(A15)"
  63. default n
  64. config BSP_USING_ADC0_CHN8
  65. bool "Enable ADC0_CHN8(A14)"
  66. default n
  67. config BSP_USING_ADC0_CHN9
  68. bool "Enable ADC0_CHN9(A13)"
  69. default n
  70. config BSP_USING_ADC0_CHN10
  71. bool "Enable ADC0_CHN10(A12)"
  72. default n
  73. config BSP_USING_ADC0_CHN11
  74. bool "Enable ADC0_CHN11(A10)"
  75. default n
  76. endif
  77. config BSP_USING_ADC1
  78. bool "Enable ADC1"
  79. default n
  80. if BSP_USING_ADC1
  81. config BSP_USING_ADC1_CHN0
  82. bool "Enable ADC1_CHN0(D1)"
  83. default n
  84. config BSP_USING_ADC1_CHN1
  85. bool "Enable ADC1_CHN1(D0)"
  86. default n
  87. config BSP_USING_ADC1_CHN2
  88. bool "Enable ADC1_CHN2(C13)"
  89. default n
  90. config BSP_USING_ADC1_CHN3
  91. bool "Enable ADC1_CHN3(C12)"
  92. default n
  93. config BSP_USING_ADC1_CHN4
  94. bool "Enable ADC1_CHN4(C11)"
  95. default n
  96. config BSP_USING_ADC1_CHN5
  97. bool "Enable ADC1_CHN5(C10)"
  98. default n
  99. config BSP_USING_ADC1_CHN6
  100. bool "Enable ADC1_CHN6(C9)"
  101. default n
  102. endif
  103. endif
  104. config BSP_USING_DAC
  105. bool "Enable DAC"
  106. select RT_USING_DAC
  107. default n
  108. menuconfig BSP_USING_CAN
  109. bool "Enable CAN"
  110. default n
  111. select RT_USING_CAN
  112. if BSP_USING_CAN
  113. config BSP_USING_CAN0
  114. bool "Enable CAN0(TX/B4,RX/B5)"
  115. default n
  116. config BSP_USING_CAN1
  117. bool "Enable CAN1(TX/B2,RX/B3)"
  118. default n
  119. endif
  120. menuconfig BSP_USING_TIM
  121. bool "Enable HWTIMER"
  122. default n
  123. select RT_USING_HWTIMER
  124. if BSP_USING_TIM
  125. config BSP_USING_TIM0
  126. bool "Enable TIM0"
  127. default n
  128. config BSP_USING_TIM1
  129. bool "Enable TIM1"
  130. default n
  131. config BSP_USING_TIM2
  132. bool "Enable TIM2"
  133. default n
  134. config BSP_USING_TIM3
  135. bool "Enable TIM3"
  136. default n
  137. config BSP_USING_TIM4
  138. bool "Enable TIM4"
  139. default n
  140. config BSP_USING_BTIM0
  141. bool "Enable BTIM0"
  142. default n
  143. config BSP_USING_BTIM1
  144. bool "Enable BTIM1"
  145. default n
  146. config BSP_USING_BTIM2
  147. bool "Enable BTIM2"
  148. default n
  149. config BSP_USING_BTIM3
  150. bool "Enable BTIM3"
  151. default n
  152. config BSP_USING_BTIM4
  153. bool "Enable BTIM4"
  154. default n
  155. config BSP_USING_BTIM5
  156. bool "Enable BTIM5"
  157. default n
  158. config BSP_USING_BTIM6
  159. bool "Enable BTIM6"
  160. default n
  161. config BSP_USING_BTIM7
  162. bool "Enable BTIM7"
  163. default n
  164. config BSP_USING_BTIM8
  165. bool "Enable BTIM8"
  166. default n
  167. config BSP_USING_BTIM9
  168. bool "Enable BTIM9"
  169. default n
  170. config BSP_USING_BTIM10
  171. bool "Enable BTIM10"
  172. default n
  173. config BSP_USING_BTIM11
  174. bool "Enable BTIM11"
  175. default n
  176. endif
  177. menuconfig BSP_USING_I2C
  178. bool "Enable I2C BUS (software simulation)"
  179. default n
  180. select RT_USING_I2C
  181. select RT_USING_I2C_BITOPS
  182. select RT_USING_PIN
  183. if BSP_USING_I2C
  184. config BSP_USING_I2C0
  185. bool "Enable I2C0"
  186. default n
  187. if BSP_USING_I2C0
  188. config BSP_I2C0_SCL_PIN
  189. int "I2C0 scl pin number"
  190. range 0 111
  191. default 1
  192. config BSP_I2C0_SDA_PIN
  193. int "I2C0 sda pin number"
  194. range 0 111
  195. default 0
  196. endif
  197. config BSP_USING_I2C1
  198. bool "Enable I2C1"
  199. default n
  200. if BSP_USING_I2C1
  201. config BSP_I2C1_SCL_PIN
  202. int "I2C1 scl pin number"
  203. range 0 111
  204. default 37
  205. config BSP_I2C1_SDA_PIN
  206. int "I2C1 sda pin number"
  207. range 0 111
  208. default 36
  209. endif
  210. endif
  211. menuconfig BSP_USING_PWM
  212. bool "Enable PWM"
  213. default n
  214. select RT_USING_PWM
  215. if BSP_USING_PWM
  216. comment "Notice: PWMA,PWMAN,PWMB,PWMBN are all channel0,the performance is the same"
  217. config BSP_USING_PWM0
  218. bool "Enable PWM0"
  219. default n
  220. if BSP_USING_PWM0
  221. config BSP_USING_PWM0A
  222. bool "Enable PWM0A (M1)"
  223. default n
  224. config BSP_USING_PWM0AN
  225. bool "Enable PWM0AN (M4)"
  226. default n
  227. config BSP_USING_PWM0B
  228. bool "Enable PWM0B (M2)"
  229. default n
  230. config BSP_USING_PWM0BN
  231. bool "Enable PWM0BN (M5)"
  232. default n
  233. endif
  234. config BSP_USING_PWM1
  235. bool "Enable PWM1"
  236. default n
  237. if BSP_USING_PWM1
  238. config BSP_USING_PWM1A
  239. bool "Enable PWM1A (M3)"
  240. default n
  241. config BSP_USING_PWM1AN
  242. bool "Enable PWM1AN (M6)"
  243. default n
  244. config BSP_USING_PWM1B
  245. bool "Enable PWM1B (D9)"
  246. default n
  247. config BSP_USING_PWM1BN
  248. bool "Enable PWM1BN (D8)"
  249. default n
  250. endif
  251. config BSP_USING_PWM2
  252. bool "Enable PWM2"
  253. default n
  254. if BSP_USING_PWM2
  255. config BSP_USING_PWM2A
  256. bool "Enable PWM2A (M12)"
  257. default n
  258. config BSP_USING_PWM2AN
  259. bool "Enable PWM2AN (M9)"
  260. default n
  261. config BSP_USING_PWM2B
  262. bool "Enable PWM2B (M11)"
  263. default n
  264. config BSP_USING_PWM2BN
  265. bool "Enable PWM2BN (M8)"
  266. default n
  267. endif
  268. config BSP_USING_PWM3
  269. bool "Enable PWM3"
  270. default n
  271. if BSP_USING_PWM3
  272. config BSP_USING_PWM3A
  273. bool "Enable PWM3A (C2)"
  274. default n
  275. config BSP_USING_PWM3AN
  276. bool "Enable PWM3AN (C3)"
  277. default n
  278. config BSP_USING_PWM3B
  279. bool "Enable PWM3B (B1)"
  280. default n
  281. config BSP_USING_PWM3BN
  282. bool "Enable PWM3BN (B0)"
  283. default n
  284. endif
  285. config BSP_USING_PWM4
  286. bool "Enable PWM4"
  287. default n
  288. if BSP_USING_PWM4
  289. config BSP_USING_PWM4A
  290. bool "Enable PWM4A (B15)"
  291. default n
  292. config BSP_USING_PWM4AN
  293. bool "Enable PWM4AN (B14) NOTICE:SWDIO"
  294. default n
  295. config BSP_USING_PWM4B
  296. bool "Enable PWM4B (B13)"
  297. default n
  298. config BSP_USING_PWM4BN
  299. bool "Enable PWM4BN (B12) NOTICE:SWDCK"
  300. default n
  301. endif
  302. endif
  303. config BSP_USING_RTC
  304. bool "Enable RTC"
  305. select RT_USING_RTC
  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