Kconfig 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492
  1. menu "Hardware Drivers Config"
  2. config SOC_HPM6000
  3. bool
  4. select SOC_SERIES_HPM6000
  5. select RT_USING_COMPONENTS_INIT
  6. select RT_USING_USER_MAIN
  7. default y
  8. config BSP_USING_ENET_PHY_LAN8720
  9. bool
  10. default n
  11. menu "On-chip Peripheral Drivers"
  12. config BSP_USING_GPIO
  13. bool "Enable GPIO"
  14. select RT_USING_PIN if BSP_USING_GPIO
  15. default n
  16. config RW007_USING_BLE
  17. bool "Enable RW007 BLE"
  18. default n
  19. select RT_USING_SPI if RW007_USING_BLE
  20. select BSP_USING_SPI1 if RW007_USING_BLE
  21. config RW007_USING_WIFI
  22. bool "Enable RW007 WIFI"
  23. select RT_USING_SPI if RW007_USING_BLE
  24. select BSP_USING_SPI1 if RW007_USING_BLE
  25. menuconfig BSP_USING_UART
  26. bool "Enable UART"
  27. default y
  28. select RT_USING_SERIAL
  29. if BSP_USING_UART
  30. menuconfig BSP_USING_UART0
  31. bool "Enable UART0 (Debugger)"
  32. default y
  33. if BSP_USING_UART0
  34. config BSP_UART0_RX_USING_DMA
  35. bool "Enable UART0 RX DMA"
  36. depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA
  37. default n
  38. config BSP_UART0_TX_USING_DMA
  39. bool "Enable UART0 TX DMA"
  40. depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA
  41. default n
  42. config BSP_UART0_RX_BUFSIZE
  43. int "Set UART0 RX buffer size"
  44. range 64 65535
  45. depends on RT_USING_SERIAL_V2
  46. default 128
  47. config BSP_UART0_TX_BUFSIZE
  48. int "Set UART0 TX buffer size"
  49. range 0 65535
  50. depends on RT_USING_SERIAL_V2
  51. default 0
  52. endif
  53. menuconfig BSP_USING_UART6
  54. bool "Enable UART6"
  55. default n
  56. if BSP_USING_UART6
  57. config BSP_UART6_RX_USING_DMA
  58. bool "Enable UART6 RX DMA"
  59. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  60. default n
  61. config BSP_UART6_TX_USING_DMA
  62. bool "Enable UART6 TX DMA"
  63. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  64. default n
  65. config BSP_UART6_RX_BUFSIZE
  66. int "Set UART6 RX buffer size"
  67. range 64 65535
  68. depends on RT_USING_SERIAL_V2
  69. default 128
  70. config BSP_UART6_TX_BUFSIZE
  71. int "Set UART6 TX buffer size"
  72. range 0 65535
  73. depends on RT_USING_SERIAL_V2
  74. default 0
  75. endif
  76. menuconfig BSP_USING_UART13
  77. bool "Enable UART13"
  78. default y
  79. if BSP_USING_UART13
  80. config BSP_UART13_RX_USING_DMA
  81. bool "Enable UART13 RX DMA"
  82. depends on BSP_USING_UART13 && RT_SERIAL_USING_DMA
  83. default n
  84. config BSP_UART13_TX_USING_DMA
  85. bool "Enable UART13 TX DMA"
  86. depends on BSP_USING_UART13 && RT_SERIAL_USING_DMA
  87. default n
  88. config BSP_UART13_RX_BUFSIZE
  89. int "Set UART13 RX buffer size"
  90. range 64 65535
  91. depends on RT_USING_SERIAL_V2
  92. default 128
  93. config BSP_UART13_TX_BUFSIZE
  94. int "Set UART13 TX buffer size"
  95. range 0 65535
  96. depends on RT_USING_SERIAL_V2
  97. default 0
  98. endif
  99. menuconfig BSP_USING_UART14
  100. bool "Enable UART14"
  101. default n
  102. if BSP_USING_UART14
  103. config BSP_UART14_RX_USING_DMA
  104. bool "Enable UART14 RX DMA"
  105. depends on BSP_USING_UART14 && RT_SERIAL_USING_DMA
  106. default n
  107. config BSP_UART14_TX_USING_DMA
  108. bool "Enable UART14 TX DMA"
  109. depends on BSP_USING_UART14 && RT_SERIAL_USING_DMA
  110. default n
  111. config BSP_UART14_RX_BUFSIZE
  112. int "Set UART14 RX buffer size"
  113. range 64 65535
  114. depends on RT_USING_SERIAL_V2
  115. default 128
  116. config BSP_UART14_TX_BUFSIZE
  117. int "Set UART14 TX buffer size"
  118. range 0 65535
  119. depends on RT_USING_SERIAL_V2
  120. default 0
  121. endif
  122. endif
  123. menuconfig BSP_USING_SPI
  124. bool "Enable SPI"
  125. default n
  126. select RT_USING_SPI if BSP_USING_SPI
  127. if BSP_USING_SPI
  128. config BSP_USING_SPI1
  129. bool "Enable SPI1"
  130. default y
  131. if BSP_USING_SPI1
  132. config BSP_SPI1_USING_DMA
  133. bool "Enable SPI1 DMA"
  134. default n
  135. endif
  136. config BSP_USING_SPI2
  137. bool "Enable SPI2"
  138. default n
  139. if BSP_USING_SPI2
  140. config BSP_SPI2_USING_DMA
  141. bool "Enable SPI2 DMA"
  142. default n
  143. endif
  144. config BSP_USING_SPI3
  145. bool "Enable SPI3"
  146. default n
  147. if BSP_USING_SPI3
  148. config BSP_SPI3_USING_DMA
  149. bool "Enable SPI3 DMA"
  150. default n
  151. endif
  152. endif
  153. menuconfig BSP_USING_RTC
  154. bool "Enable RTC"
  155. default n
  156. menuconfig BSP_USING_ETH
  157. bool "Enable Ethernet"
  158. default n
  159. select RT_USING_ETH
  160. if BSP_USING_ETH
  161. config BSP_USING_ETH1
  162. bool "Enable ETH1"
  163. default n
  164. select BSP_USING_ENET_PHY_LAN8720
  165. endif
  166. menuconfig BSP_USING_SDXC
  167. bool "Enable SDXC"
  168. default n
  169. select RT_USING_SDIO if BSP_USING_SDXC
  170. if BSP_USING_SDXC
  171. config BSP_USING_SDXC0
  172. bool "Enable SDXC0"
  173. default n
  174. if BSP_USING_SDXC0
  175. choice
  176. prompt "Select BUS_WIDTH"
  177. default BSP_SDXC0_BUS_WIDTH_8BIT
  178. config BSP_SDXC0_BUS_WIDTH_1BIT
  179. bool "1-bit"
  180. config BSP_SDXC0_BUS_WIDTH_4BIT
  181. bool "4-bit"
  182. config BSP_SDXC0_BUS_WIDTH_8BIT
  183. bool "8-bit"
  184. endchoice
  185. choice
  186. prompt "Select Voltage"
  187. default BSP_SDXC0_VOLTAGE_1V8
  188. config BSP_SDXC0_VOLTAGE_3V3
  189. bool "3.3V"
  190. config BSP_SDXC0_VOLTAGE_1V8
  191. bool "1.8V"
  192. config BSP_SDXC0_VOLTAGE_DUAL
  193. bool "Dual voltage 3.3V / 1.8V"
  194. endchoice
  195. config BSP_SDXC0_VSEL_PIN
  196. default "None"
  197. string "VSEL pin name"
  198. config BSP_SDXC0_PWR_PIN
  199. default "None"
  200. string "PWR pin name"
  201. endif
  202. config BSP_USING_SDXC1
  203. bool "Enable SDXC1"
  204. default n
  205. if BSP_USING_SDXC1
  206. choice
  207. prompt "Select BUS_WIDTH"
  208. default BSP_SDXC1_BUS_WIDTH_4BIT
  209. config BSP_SDXC1_BUS_WIDTH_1BIT
  210. bool "1-bit"
  211. config BSP_SDXC1_BUS_WIDTH_4BIT
  212. bool "4-bit"
  213. endchoice
  214. choice
  215. prompt "Select Voltage"
  216. default BSP_SDXC1_VOLTAGE_3V3
  217. config BSP_SDXC1_VOLTAGE_3V3
  218. bool "3.3V"
  219. config BSP_SDXC1_VOLTAGE_1V8
  220. bool "1.8V"
  221. config BSP_SDXC1_VOLTAGE_DUAL
  222. bool "Dual voltage 3.3V / 1.8V"
  223. endchoice
  224. config BSP_SDXC1_VSEL_PIN
  225. default "PD29"
  226. string "VSEL pin name"
  227. config BSP_SDXC1_PWR_PIN
  228. default "None"
  229. string "PWR pin name"
  230. endif
  231. endif
  232. menuconfig BSP_USING_TOUCH
  233. bool "Enable touch"
  234. default n
  235. if BSP_USING_TOUCH
  236. config BSP_USING_TOUCH_GT911
  237. bool "Enable GT911"
  238. default y
  239. config BSP_USING_TOUCH_FT5406
  240. bool "Enable FT5406"
  241. default n
  242. endif
  243. menuconfig BSP_USING_LCD
  244. bool "Enable LCD"
  245. default n
  246. if BSP_USING_LCD
  247. config BSP_USING_LCD_ISR
  248. bool "Enable LCD interrupt"
  249. default n
  250. endif
  251. menuconfig BSP_USING_LVGL
  252. bool "Enable LVGL"
  253. default n
  254. select PKG_USING_LVGL if BSP_USING_LVGL
  255. select BSP_USING_PDMA if BSP_USING_LVGL
  256. menuconfig BSP_USING_PDMA
  257. bool "Enable PDMA"
  258. default n
  259. menuconfig BSP_USING_GPTMR
  260. bool "Enable GPTMR"
  261. default n
  262. select RT_USING_HWTIMER if BSP_USING_GPTMR
  263. if BSP_USING_GPTMR
  264. config BSP_USING_GPTMR1
  265. bool "Enable GPTMR1"
  266. default n
  267. config BSP_USING_GPTMR2
  268. bool "Enable GPTMR2"
  269. default n
  270. config BSP_USING_GPTMR3
  271. bool "Enable GPTMR3"
  272. default n
  273. config BSP_USING_GPTMR4
  274. bool "Enable GPTMR4"
  275. default n
  276. config BSP_USING_GPTMR5
  277. bool "Enable GPTMR5"
  278. default n
  279. config BSP_USING_GPTMR6
  280. bool "Enable GPTMR6"
  281. default n
  282. config BSP_USING_GPTMR7
  283. bool "Enable GPTMR7"
  284. default n
  285. endif
  286. menuconfig BSP_USING_I2C
  287. bool "Enable I2C"
  288. default n
  289. if BSP_USING_I2C
  290. config BSP_USING_I2C0
  291. bool "Enable I2C0"
  292. default y
  293. if BSP_USING_I2C0
  294. config BSP_I2C0_USING_DMA
  295. bool "Enable I2C0 DMA"
  296. default n
  297. endif
  298. config BSP_USING_I2C3
  299. bool "Enable I2C3"
  300. default n
  301. if BSP_USING_I2C3
  302. config BSP_I2C3_USING_DMA
  303. bool "Enable I2C3 DMA"
  304. default n
  305. endif
  306. endif
  307. menuconfig BSP_USING_FEMC
  308. bool "Enable FEMC"
  309. default y
  310. menuconfig INIT_EXT_RAM_FOR_DATA
  311. bool "INIT_EXT_RAM_FOR_DATA"
  312. default y
  313. menuconfig BSP_USING_XPI_FLASH
  314. bool "Enable XPI FLASH"
  315. default n
  316. select RT_USING_FAL if BSP_USING_XPI_FLASH
  317. menuconfig BSP_USING_PWM
  318. bool "Enable PWM"
  319. default n
  320. menuconfig BSP_USING_DAO
  321. bool "Enable Audio DAO play"
  322. default n
  323. select RT_USING_AUDIO if BSP_USING_DAO
  324. menuconfig BSP_USING_PDM
  325. bool "Enable Audio PDM record"
  326. default n
  327. select RT_USING_AUDIO if BSP_USING_PDM
  328. menuconfig BSP_USING_I2S
  329. bool "Enable Audio I2S device"
  330. default n
  331. select RT_USING_AUDIO if BSP_USING_I2S
  332. if BSP_USING_I2S
  333. config BSP_USING_I2S0
  334. bool "Enable I2S0"
  335. default y
  336. endif
  337. menuconfig BSP_USING_USB
  338. bool "Enable USB"
  339. default n
  340. if BSP_USING_USB
  341. config BSP_USING_USB_DEVICE
  342. bool "Enable USB Device"
  343. default n
  344. config BSP_USING_USB_HOST
  345. bool "Enable USB HOST"
  346. select RT_USING_CACHE
  347. default n
  348. endif
  349. menuconfig BSP_USING_WDG
  350. bool "Enable Watchdog"
  351. default n
  352. select RT_USING_WDT if BSP_USING_WDG
  353. if BSP_USING_WDG
  354. config BSP_USING_WDG0
  355. bool "Enable WDG0"
  356. default n
  357. config BSP_USING_WDG1
  358. bool "Enable WDG1"
  359. default n
  360. config BSP_USING_WDG2
  361. bool "Enable WDG2"
  362. default n
  363. config BSP_USING_WDG3
  364. bool "Enable WDG3"
  365. default n
  366. endif
  367. menuconfig BSP_USING_CAN
  368. bool "Enable CAN"
  369. default n
  370. select RT_USING_CAN if BSP_USING_CAN
  371. if BSP_USING_CAN
  372. config BSP_USING_CAN0
  373. bool "Enable CAN0"
  374. default n
  375. config BSP_USING_CAN1
  376. bool "Enable CAN1"
  377. default n
  378. config BSP_USING_CAN2
  379. bool "Enable CAN2"
  380. default n
  381. config BSP_USING_CAN3
  382. bool "Enable CAN3"
  383. default n
  384. endif
  385. menuconfig BSP_USING_ADC
  386. bool "Enable ADC"
  387. default n
  388. select RT_USING_ADC if BSP_USING_ADC
  389. if BSP_USING_ADC
  390. menuconfig BSP_USING_ADC12
  391. bool "Enable ADC12"
  392. default n
  393. if BSP_USING_ADC12
  394. config BSP_USING_ADC0
  395. bool "Enable ADC0"
  396. default n
  397. config BSP_USING_ADC1
  398. bool "Enable ADC1"
  399. default n
  400. config BSP_USING_ADC2
  401. bool "Enable ADC2"
  402. default n
  403. endif
  404. menuconfig BSP_USING_ADC16
  405. bool "Enable ADC16"
  406. default n
  407. if BSP_USING_ADC16
  408. config BSP_USING_ADC3
  409. bool "Enable ADC3"
  410. default n
  411. endif
  412. endif
  413. menuconfig BSP_USING_CAMERA
  414. bool "Enable camera"
  415. default n
  416. if BSP_USING_CAMERA
  417. config BSP_USING_CAMERA_MT9M114
  418. bool "Enable mt9m114"
  419. default y
  420. config BSP_USING_CAMERA_OV5640
  421. bool "Enable ov5640"
  422. default n
  423. config BSP_USING_CAMERA_OV7725
  424. bool "Enable ov7725"
  425. default n
  426. endif
  427. menuconfig BSP_USING_JPEG
  428. bool "Enable JPEG Driver"
  429. default n
  430. menuconfig BSP_USING_CAM
  431. bool "Enable CAM Driver"
  432. default n
  433. menuconfig BSP_USING_PANEL
  434. bool "Enable panel"
  435. default n
  436. if BSP_USING_PANEL
  437. config BSP_USEING_PANEL_RGB_TM070RDH13
  438. bool "Enable RGB TM070RDH13"
  439. default y
  440. endif
  441. menuconfig BSP_USING_RTT_LCD_DRIVER
  442. bool "Enable RTT LCD Driver"
  443. select BSP_USING_LCD
  444. default n
  445. endmenu
  446. endmenu