Kconfig 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104
  1. menu "Hardware Drivers Config"
  2. config SOC_HPM6E00
  3. bool
  4. select SOC_HPM6E00_SERIES
  5. select RT_USING_COMPONENTS_INIT
  6. select RT_USING_USER_MAIN
  7. default y
  8. config BSP_USING_ENET_PHY_RTL8211
  9. bool
  10. default n
  11. config BSP_USING_TSW_PHY_RTL8211
  12. bool
  13. default n
  14. if BSP_USING_ETH
  15. config LWIP_SUPPORT_CUSTOM_PBUF
  16. int
  17. default 1
  18. endif
  19. menu "On-chip Peripheral Drivers"
  20. config BSP_USING_GPIO
  21. bool "Enable GPIO"
  22. select RT_USING_PIN if BSP_USING_GPIO
  23. default n
  24. if BSP_USING_GPIO
  25. config BSP_GPIO_IRQ_PRIORITY
  26. int "GPIO Interrupt Priority"
  27. range 1 7
  28. default 1
  29. endif
  30. menuconfig BSP_USING_UART
  31. bool "Enable UART"
  32. default y
  33. select RT_USING_SERIAL
  34. if BSP_USING_UART
  35. menuconfig BSP_USING_UART0
  36. bool "Enable UART0 (Debugger)"
  37. default y
  38. if BSP_USING_UART0
  39. config BSP_UART0_RX_USING_DMA
  40. bool "Enable UART0 RX DMA"
  41. depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA
  42. default n
  43. config BSP_UART0_TX_USING_DMA
  44. bool "Enable UART0 TX DMA"
  45. depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA
  46. default n
  47. config BSP_UART0_RX_BUFSIZE
  48. int "Set UART0 RX buffer size"
  49. range 64 65535
  50. depends on RT_USING_SERIAL_V2
  51. default 128
  52. config BSP_UART0_TX_BUFSIZE
  53. int "Set UART0 TX buffer size"
  54. range 0 65535
  55. depends on RT_USING_SERIAL_V2
  56. default 0
  57. config BSP_UART0_IRQ_PRIORITY
  58. int "UART0 Interrupt Priority"
  59. range 1 7
  60. default 1
  61. endif
  62. menuconfig BSP_USING_UART1
  63. bool "Enable UART1"
  64. default y
  65. if BSP_USING_UART1
  66. config BSP_UART1_RX_USING_DMA
  67. bool "Enable UART1 RX DMA"
  68. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  69. default n
  70. config BSP_UART1_TX_USING_DMA
  71. bool "Enable UART1 TX DMA"
  72. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  73. default n
  74. config BSP_UART1_RX_BUFSIZE
  75. int "Set UART1 RX buffer size"
  76. range 64 65535
  77. depends on RT_USING_SERIAL_V2
  78. default 1024
  79. config BSP_UART1_TX_BUFSIZE
  80. int "Set UART1 TX buffer size"
  81. range 0 65535
  82. depends on RT_USING_SERIAL_V2
  83. default 0
  84. config BSP_UART1_IRQ_PRIORITY
  85. int "UART1 Interrupt Priority"
  86. range 1 7
  87. default 1
  88. endif
  89. menuconfig BSP_USING_UART2
  90. bool "Enable UART2"
  91. default n
  92. if BSP_USING_UART2
  93. config BSP_UART2_RX_USING_DMA
  94. bool "Enable UART2 RX DMA"
  95. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  96. default n
  97. config BSP_UART2_TX_USING_DMA
  98. bool "Enable UART2 TX DMA"
  99. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  100. default n
  101. config BSP_UART2_RX_BUFSIZE
  102. int "Set UART2 RX buffer size"
  103. range 64 65535
  104. depends on RT_USING_SERIAL_V2
  105. default 1024
  106. config BSP_UART2_TX_BUFSIZE
  107. int "Set UART2 TX buffer size"
  108. range 0 65535
  109. depends on RT_USING_SERIAL_V2
  110. default 0
  111. config BSP_UART2_IRQ_PRIORITY
  112. int "UART2 Interrupt Priority"
  113. range 1 7
  114. default 1
  115. endif
  116. menuconfig BSP_USING_UART3
  117. bool "Enable UART3"
  118. default n
  119. if BSP_USING_UART3
  120. config BSP_UART3_RX_USING_DMA
  121. bool "Enable UART3 RX DMA"
  122. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  123. default n
  124. config BSP_UART3_TX_USING_DMA
  125. bool "Enable UART3 TX DMA"
  126. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  127. default n
  128. config BSP_UART3_RX_BUFSIZE
  129. int "Set UART3 RX buffer size"
  130. range 64 65535
  131. depends on RT_USING_SERIAL_V2
  132. default 1024
  133. config BSP_UART3_TX_BUFSIZE
  134. int "Set UART3 TX buffer size"
  135. range 0 65535
  136. depends on RT_USING_SERIAL_V2
  137. default 0
  138. config BSP_UART3_IRQ_PRIORITY
  139. int "UART3 Interrupt Priority"
  140. range 1 7
  141. default 1
  142. endif
  143. menuconfig BSP_USING_UART4
  144. bool "Enable UART4"
  145. default n
  146. if BSP_USING_UART4
  147. config BSP_UART4_RX_USING_DMA
  148. bool "Enable UART4 RX DMA"
  149. depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA
  150. default n
  151. config BSP_UART4_TX_USING_DMA
  152. bool "Enable UART4 TX DMA"
  153. depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA
  154. default n
  155. config BSP_UART4_RX_BUFSIZE
  156. int "Set UART4 RX buffer size"
  157. range 64 65535
  158. depends on RT_USING_SERIAL_V2
  159. default 1024
  160. config BSP_UART4_TX_BUFSIZE
  161. int "Set UART4 TX buffer size"
  162. range 0 65535
  163. depends on RT_USING_SERIAL_V2
  164. default 0
  165. config BSP_UART4_IRQ_PRIORITY
  166. int "UART4 Interrupt Priority"
  167. range 1 7
  168. default 1
  169. endif
  170. menuconfig BSP_USING_UART5
  171. bool "Enable UART5"
  172. default n
  173. if BSP_USING_UART5
  174. config BSP_UART5_RX_USING_DMA
  175. bool "Enable UART5 RX DMA"
  176. depends on BSP_USING_UART5 && RT_SERIAL_USING_DMA
  177. default n
  178. config BSP_UART5_TX_USING_DMA
  179. bool "Enable UART5 TX DMA"
  180. depends on BSP_USING_UART5 && RT_SERIAL_USING_DMA
  181. default n
  182. config BSP_UART5_RX_BUFSIZE
  183. int "Set UART5 RX buffer size"
  184. range 64 65535
  185. depends on RT_USING_SERIAL_V2
  186. default 1024
  187. config BSP_UART5_TX_BUFSIZE
  188. int "Set UART5 TX buffer size"
  189. range 0 65535
  190. depends on RT_USING_SERIAL_V2
  191. default 0
  192. config BSP_UART5_IRQ_PRIORITY
  193. int "UART5 Interrupt Priority"
  194. range 1 7
  195. default 1
  196. endif
  197. menuconfig BSP_USING_UART6
  198. bool "Enable UART6"
  199. default n
  200. if BSP_USING_UART6
  201. config BSP_UART6_RX_USING_DMA
  202. bool "Enable UART6 RX DMA"
  203. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  204. default n
  205. config BSP_UART6_TX_USING_DMA
  206. bool "Enable UART6 TX DMA"
  207. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  208. default n
  209. config BSP_UART6_RX_BUFSIZE
  210. int "Set UART6 RX buffer size"
  211. range 64 65535
  212. depends on RT_USING_SERIAL_V2
  213. default 1024
  214. config BSP_UART6_TX_BUFSIZE
  215. int "Set UART6 TX buffer size"
  216. range 0 65535
  217. depends on RT_USING_SERIAL_V2
  218. default 0
  219. config BSP_UART6_IRQ_PRIORITY
  220. int "UART6 Interrupt Priority"
  221. range 1 7
  222. default 1
  223. endif
  224. menuconfig BSP_USING_UART7
  225. bool "Enable UART7"
  226. default n
  227. if BSP_USING_UART7
  228. config BSP_UART7_RX_USING_DMA
  229. bool "Enable UART7 RX DMA"
  230. depends on BSP_USING_UART7 && RT_SERIAL_USING_DMA
  231. default n
  232. config BSP_UART7_TX_USING_DMA
  233. bool "Enable UART7 TX DMA"
  234. depends on BSP_USING_UART7 && RT_SERIAL_USING_DMA
  235. default n
  236. config BSP_UART7_RX_BUFSIZE
  237. int "Set UART7 RX buffer size"
  238. range 64 65535
  239. depends on RT_USING_SERIAL_V2
  240. default 1024
  241. config BSP_UART7_TX_BUFSIZE
  242. int "Set UART7 TX buffer size"
  243. range 0 65535
  244. depends on RT_USING_SERIAL_V2
  245. default 0
  246. config BSP_UART7_IRQ_PRIORITY
  247. int "UART7 Interrupt Priority"
  248. range 1 7
  249. default 1
  250. endif
  251. menuconfig BSP_USING_UART8
  252. bool "Enable UART8"
  253. default n
  254. if BSP_USING_UART8
  255. config BSP_UART8_RX_USING_DMA
  256. bool "Enable UART8 RX DMA"
  257. depends on BSP_USING_UART8 && RT_SERIAL_USING_DMA
  258. default n
  259. config BSP_UART8_TX_USING_DMA
  260. bool "Enable UART8 TX DMA"
  261. depends on BSP_USING_UART8 && RT_SERIAL_USING_DMA
  262. default n
  263. config BSP_UART8_RX_BUFSIZE
  264. int "Set UART8 RX buffer size"
  265. range 64 65535
  266. depends on RT_USING_SERIAL_V2
  267. default 1024
  268. config BSP_UART8_TX_BUFSIZE
  269. int "Set UART8 TX buffer size"
  270. range 0 65535
  271. depends on RT_USING_SERIAL_V2
  272. default 0
  273. config BSP_UART8_IRQ_PRIORITY
  274. int "UART8 Interrupt Priority"
  275. range 1 7
  276. default 1
  277. endif
  278. menuconfig BSP_USING_UART9
  279. bool "Enable UART9"
  280. default n
  281. if BSP_USING_UART9
  282. config BSP_UART9_RX_USING_DMA
  283. bool "Enable UART9 RX DMA"
  284. depends on BSP_USING_UART9 && RT_SERIAL_USING_DMA
  285. default n
  286. config BSP_UART9_TX_USING_DMA
  287. bool "Enable UART9 TX DMA"
  288. depends on BSP_USING_UART9 && RT_SERIAL_USING_DMA
  289. default n
  290. config BSP_UART9_RX_BUFSIZE
  291. int "Set UART9 RX buffer size"
  292. range 64 65535
  293. depends on RT_USING_SERIAL_V2
  294. default 1024
  295. config BSP_UART9_TX_BUFSIZE
  296. int "Set UART9 TX buffer size"
  297. range 0 65535
  298. depends on RT_USING_SERIAL_V2
  299. default 0
  300. config BSP_UART9_IRQ_PRIORITY
  301. int "UART9 Interrupt Priority"
  302. range 1 7
  303. default 1
  304. endif
  305. menuconfig BSP_USING_UART10
  306. bool "Enable UART10"
  307. default n
  308. if BSP_USING_UART10
  309. config BSP_UART10_RX_USING_DMA
  310. bool "Enable UART10 RX DMA"
  311. depends on BSP_USING_UART10 && RT_SERIAL_USING_DMA
  312. default n
  313. config BSP_UART10_TX_USING_DMA
  314. bool "Enable UART10 TX DMA"
  315. depends on BSP_USING_UART10 && RT_SERIAL_USING_DMA
  316. default n
  317. config BSP_UART10_RX_BUFSIZE
  318. int "Set UART10 RX buffer size"
  319. range 64 65535
  320. depends on RT_USING_SERIAL_V2
  321. default 1024
  322. config BSP_UART10_TX_BUFSIZE
  323. int "Set UART10 TX buffer size"
  324. range 0 65535
  325. depends on RT_USING_SERIAL_V2
  326. default 0
  327. config BSP_UART10_IRQ_PRIORITY
  328. int "UART10 Interrupt Priority"
  329. range 1 7
  330. default 1
  331. endif
  332. menuconfig BSP_USING_UART11
  333. bool "Enable UART11"
  334. default n
  335. if BSP_USING_UART11
  336. config BSP_UART11_RX_USING_DMA
  337. bool "Enable UART11 RX DMA"
  338. depends on BSP_USING_UART11 && RT_SERIAL_USING_DMA
  339. default n
  340. config BSP_UART11_TX_USING_DMA
  341. bool "Enable UART11 TX DMA"
  342. depends on BSP_USING_UART11 && RT_SERIAL_USING_DMA
  343. default n
  344. config BSP_UART11_RX_BUFSIZE
  345. int "Set UART11 RX buffer size"
  346. range 64 65535
  347. depends on RT_USING_SERIAL_V2
  348. default 1024
  349. config BSP_UART11_TX_BUFSIZE
  350. int "Set UART11 TX buffer size"
  351. range 0 65535
  352. depends on RT_USING_SERIAL_V2
  353. default 0
  354. config BSP_UART11_IRQ_PRIORITY
  355. int "UART11 Interrupt Priority"
  356. range 1 7
  357. default 1
  358. endif
  359. menuconfig BSP_USING_UART12
  360. bool "Enable UART12"
  361. default n
  362. if BSP_USING_UART12
  363. config BSP_UART12_RX_USING_DMA
  364. bool "Enable UART12 RX DMA"
  365. depends on BSP_USING_UART12 && RT_SERIAL_USING_DMA
  366. default n
  367. config BSP_UART12_TX_USING_DMA
  368. bool "Enable UART12 TX DMA"
  369. depends on BSP_USING_UART12 && RT_SERIAL_USING_DMA
  370. default n
  371. config BSP_UART12_RX_BUFSIZE
  372. int "Set UART12 RX buffer size"
  373. range 64 65535
  374. depends on RT_USING_SERIAL_V2
  375. default 1024
  376. config BSP_UART12_TX_BUFSIZE
  377. int "Set UART12 TX buffer size"
  378. range 0 65535
  379. depends on RT_USING_SERIAL_V2
  380. default 0
  381. config BSP_UART12_IRQ_PRIORITY
  382. int "UART12 Interrupt Priority"
  383. range 1 7
  384. default 1
  385. endif
  386. menuconfig BSP_USING_UART13
  387. bool "Enable UART13"
  388. default n
  389. if BSP_USING_UART13
  390. config BSP_UART13_RX_USING_DMA
  391. bool "Enable UART13 RX DMA"
  392. depends on BSP_USING_UART13 && RT_SERIAL_USING_DMA
  393. default n
  394. config BSP_UART13_TX_USING_DMA
  395. bool "Enable UART13 TX DMA"
  396. depends on BSP_USING_UART13 && RT_SERIAL_USING_DMA
  397. default n
  398. config BSP_UART13_RX_BUFSIZE
  399. int "Set UART13 RX buffer size"
  400. range 64 65535
  401. depends on RT_USING_SERIAL_V2
  402. default 1024
  403. config BSP_UART13_TX_BUFSIZE
  404. int "Set UART13 TX buffer size"
  405. range 0 65535
  406. depends on RT_USING_SERIAL_V2
  407. default 0
  408. config BSP_UART13_IRQ_PRIORITY
  409. int "UART13 Interrupt Priority"
  410. range 1 7
  411. default 1
  412. endif
  413. menuconfig BSP_USING_UART14
  414. bool "Enable UART14"
  415. default n
  416. if BSP_USING_UART14
  417. config BSP_UART14_RX_USING_DMA
  418. bool "Enable UART14 RX DMA"
  419. depends on BSP_USING_UART14 && RT_SERIAL_USING_DMA
  420. default n
  421. config BSP_UART14_TX_USING_DMA
  422. bool "Enable UART14 TX DMA"
  423. depends on BSP_USING_UART14 && RT_SERIAL_USING_DMA
  424. default n
  425. config BSP_UART14_RX_BUFSIZE
  426. int "Set UART14 RX buffer size"
  427. range 64 65535
  428. depends on RT_USING_SERIAL_V2
  429. default 1024
  430. config BSP_UART14_TX_BUFSIZE
  431. int "Set UART14 TX buffer size"
  432. range 0 65535
  433. depends on RT_USING_SERIAL_V2
  434. default 0
  435. config BSP_UART14_IRQ_PRIORITY
  436. int "UART14 Interrupt Priority"
  437. range 1 7
  438. default 1
  439. endif
  440. menuconfig BSP_USING_UART15
  441. bool "Enable UART15"
  442. default n
  443. if BSP_USING_UART15
  444. config BSP_UART15_RX_USING_DMA
  445. bool "Enable UART15 RX DMA"
  446. depends on BSP_USING_UART15 && RT_SERIAL_USING_DMA
  447. default n
  448. config BSP_UART15_TX_USING_DMA
  449. bool "Enable UART15 TX DMA"
  450. depends on BSP_USING_UART15 && RT_SERIAL_USING_DMA
  451. default n
  452. config BSP_UART15_RX_BUFSIZE
  453. int "Set UART15 RX buffer size"
  454. range 64 65535
  455. depends on RT_USING_SERIAL_V2
  456. default 1024
  457. config BSP_UART15_TX_BUFSIZE
  458. int "Set UART15 TX buffer size"
  459. range 0 65535
  460. depends on RT_USING_SERIAL_V2
  461. default 0
  462. config BSP_UART15_IRQ_PRIORITY
  463. int "UART15 Interrupt Priority"
  464. range 1 7
  465. default 1
  466. endif
  467. endif
  468. menuconfig BSP_USING_SPI
  469. bool "Enable SPI"
  470. default n
  471. select RT_USING_SPI if BSP_USING_SPI
  472. if BSP_USING_SPI
  473. config BSP_USING_SPI0
  474. bool "Enable SPI0"
  475. default n
  476. if BSP_USING_SPI0
  477. config BSP_SPI0_USING_DMA
  478. bool "Enable SPI0 DMA"
  479. default n
  480. config BSP_SPI0_IRQ_PRIORITY
  481. int "SPI0 Interrupt Priority"
  482. range 1 7
  483. default 1
  484. choice
  485. prompt "Select SPI0 CS TYPE"
  486. default BSP_SPI0_USING_SOFT_CS
  487. config BSP_SPI0_USING_SOFT_CS
  488. bool "Enable SPI0 software cs"
  489. config BSP_SPI0_USING_HARD_CS
  490. bool "Enable SPI0 hardware cs"
  491. endchoice
  492. choice
  493. prompt "Select SPI0 IO mode"
  494. default BSP_SPI0_USING_SINGLE_IO
  495. config BSP_SPI0_USING_SINGLE_IO
  496. bool "Enable SPI0 single IO mode"
  497. config BSP_SPI0_USING_DUAL_IO
  498. bool "Enable SPI0 dual IO mode"
  499. config BSP_SPI0_USING_QUAD_IO
  500. bool "Enable SPI0 quad IO mode"
  501. endchoice
  502. endif
  503. config BSP_USING_SPI1
  504. bool "Enable SPI1"
  505. default n
  506. if BSP_USING_SPI1
  507. config BSP_SPI1_USING_DMA
  508. bool "Enable SPI1 DMA"
  509. default n
  510. config BSP_SPI1_IRQ_PRIORITY
  511. int "SPI1 Interrupt Priority"
  512. range 1 7
  513. default 1
  514. choice
  515. prompt "Select SPI1 CS TYPE"
  516. default BSP_SPI1_USING_SOFT_CS
  517. config BSP_SPI1_USING_SOFT_CS
  518. bool "Enable SPI1 software cs"
  519. config BSP_SPI1_USING_HARD_CS
  520. bool "Enable SPI1 hardware cs"
  521. endchoice
  522. choice
  523. prompt "Select SPI1 IO mode"
  524. default BSP_SPI1_USING_SINGLE_IO
  525. config BSP_SPI1_USING_SINGLE_IO
  526. bool "Enable SPI1 single IO mode"
  527. config BSP_SPI1_USING_DUAL_IO
  528. bool "Enable SPI1 dual IO mode"
  529. config BSP_SPI1_USING_QUAD_IO
  530. bool "Enable SPI1 quad IO mode"
  531. endchoice
  532. endif
  533. config BSP_USING_SPI2
  534. bool "Enable SPI2"
  535. default n
  536. if BSP_USING_SPI2
  537. config BSP_SPI2_USING_DMA
  538. bool "Enable SPI2 DMA"
  539. default n
  540. config BSP_SPI2_IRQ_PRIORITY
  541. int "SPI2 Interrupt Priority"
  542. range 1 7
  543. default 1
  544. choice
  545. prompt "Select SPI2 CS TYPE"
  546. default BSP_SPI2_USING_SOFT_CS
  547. config BSP_SPI2_USING_SOFT_CS
  548. bool "Enable SPI2 software cs"
  549. config BSP_SPI2_USING_HARD_CS
  550. bool "Enable SPI2 hardware cs"
  551. endchoice
  552. choice
  553. prompt "Select SPI2 IO mode"
  554. default BSP_SPI2_USING_SINGLE_IO
  555. config BSP_SPI2_USING_SINGLE_IO
  556. bool "Enable SPI2 single IO mode"
  557. config BSP_SPI2_USING_DUAL_IO
  558. bool "Enable SPI2 dual IO mode"
  559. config BSP_SPI2_USING_QUAD_IO
  560. bool "Enable SPI2 quad IO mode"
  561. endchoice
  562. endif
  563. config BSP_USING_SPI3
  564. bool "Enable SPI3"
  565. default n
  566. if BSP_USING_SPI3
  567. config BSP_SPI3_USING_DMA
  568. bool "Enable SPI3 DMA"
  569. default n
  570. config BSP_SPI3_IRQ_PRIORITY
  571. int "SPI3 Interrupt Priority"
  572. range 1 7
  573. default 1
  574. choice
  575. prompt "Select SPI3 CS TYPE"
  576. default BSP_SPI3_USING_SOFT_CS
  577. config BSP_SPI3_USING_SOFT_CS
  578. bool "Enable SPI3 software cs"
  579. config BSP_SPI3_USING_HARD_CS
  580. bool "Enable SPI3 hardware cs"
  581. endchoice
  582. choice
  583. prompt "Select SPI3 IO mode"
  584. default BSP_SPI3_USING_SINGLE_IO
  585. config BSP_SPI3_USING_SINGLE_IO
  586. bool "Enable SPI3 single IO mode"
  587. config BSP_SPI3_USING_DUAL_IO
  588. bool "Enable SPI3 dual IO mode"
  589. config BSP_SPI3_USING_QUAD_IO
  590. bool "Enable SPI3 quad IO mode"
  591. endchoice
  592. endif
  593. config BSP_USING_SPI4
  594. bool "Enable SPI4"
  595. default n
  596. if BSP_USING_SPI4
  597. config BSP_SPI4_USING_DMA
  598. bool "Enable SPI4 DMA"
  599. default n
  600. config BSP_SPI4_IRQ_PRIORITY
  601. int "SPI4 Interrupt Priority"
  602. range 1 7
  603. default 1
  604. choice
  605. prompt "Select SPI4 CS TYPE"
  606. default BSP_SPI4_USING_SOFT_CS
  607. config BSP_SPI4_USING_SOFT_CS
  608. bool "Enable SPI4 software cs"
  609. config BSP_SPI4_USING_HARD_CS
  610. bool "Enable SPI4 hardware cs"
  611. endchoice
  612. choice
  613. prompt "Select SPI4 IO mode"
  614. default BSP_SPI4_USING_SINGLE_IO
  615. config BSP_SPI4_USING_SINGLE_IO
  616. bool "Enable SPI4 single IO mode"
  617. config BSP_SPI4_USING_DUAL_IO
  618. bool "Enable SPI4 dual IO mode"
  619. config BSP_SPI4_USING_QUAD_IO
  620. bool "Enable SPI4 quad IO mode"
  621. endchoice
  622. endif
  623. config BSP_USING_SPI5
  624. bool "Enable SPI5"
  625. default n
  626. if BSP_USING_SPI5
  627. config BSP_SPI5_USING_DMA
  628. bool "Enable SPI5 DMA"
  629. default n
  630. config BSP_SPI5_IRQ_PRIORITY
  631. int "SPI5 Interrupt Priority"
  632. range 1 7
  633. default 1
  634. choice
  635. prompt "Select SPI5 CS TYPE"
  636. default BSP_SPI5_USING_SOFT_CS
  637. config BSP_SPI5_USING_SOFT_CS
  638. bool "Enable SPI5 software cs"
  639. config BSP_SPI5_USING_HARD_CS
  640. bool "Enable SPI5 hardware cs"
  641. endchoice
  642. choice
  643. prompt "Select SPI5 IO mode"
  644. default BSP_SPI5_USING_SINGLE_IO
  645. config BSP_SPI5_USING_SINGLE_IO
  646. bool "Enable SPI5 single IO mode"
  647. config BSP_SPI5_USING_DUAL_IO
  648. bool "Enable SPI5 dual IO mode"
  649. config BSP_SPI5_USING_QUAD_IO
  650. bool "Enable SPI5 quad IO mode"
  651. endchoice
  652. endif
  653. config BSP_USING_SPI6
  654. bool "Enable SPI6"
  655. default n
  656. if BSP_USING_SPI6
  657. config BSP_SPI6_USING_DMA
  658. bool "Enable SPI6 DMA"
  659. default n
  660. config BSP_SPI6_IRQ_PRIORITY
  661. int "SPI6 Interrupt Priority"
  662. range 1 7
  663. default 1
  664. choice
  665. prompt "Select SPI6 CS TYPE"
  666. default BSP_SPI6_USING_SOFT_CS
  667. config BSP_SPI6_USING_SOFT_CS
  668. bool "Enable SPI6 software cs"
  669. config BSP_SPI6_USING_HARD_CS
  670. bool "Enable SPI6 hardware cs"
  671. endchoice
  672. choice
  673. prompt "Select SPI6 IO mode"
  674. default BSP_SPI6_USING_SINGLE_IO
  675. config BSP_SPI6_USING_SINGLE_IO
  676. bool "Enable SPI6 single IO mode"
  677. config BSP_SPI6_USING_DUAL_IO
  678. bool "Enable SPI6 dual IO mode"
  679. config BSP_SPI6_USING_QUAD_IO
  680. bool "Enable SPI6 quad IO mode"
  681. endchoice
  682. endif
  683. config BSP_USING_SPI7
  684. bool "Enable SPI7"
  685. default y
  686. if BSP_USING_SPI7
  687. config BSP_SPI7_USING_DMA
  688. bool "Enable SPI7 DMA"
  689. default n
  690. config BSP_SPI7_IRQ_PRIORITY
  691. int "SPI7 Interrupt Priority"
  692. range 1 7
  693. default 1
  694. choice
  695. prompt "Select SPI7 CS TYPE"
  696. default BSP_SPI7_USING_SOFT_CS
  697. config BSP_SPI7_USING_SOFT_CS
  698. bool "Enable SPI7 software cs"
  699. config BSP_SPI7_USING_HARD_CS
  700. bool "Enable SPI7 hardware cs"
  701. endchoice
  702. choice
  703. prompt "Select SPI7 IO mode"
  704. default BSP_SPI7_USING_SINGLE_IO
  705. config BSP_SPI7_USING_SINGLE_IO
  706. bool "Enable SPI7 single IO mode"
  707. config BSP_SPI7_USING_DUAL_IO
  708. bool "Enable SPI7 dual IO mode"
  709. config BSP_SPI7_USING_QUAD_IO
  710. bool "Enable SPI7 quad IO mode"
  711. endchoice
  712. endif
  713. endif
  714. menuconfig BSP_USING_RTC
  715. bool "Enable RTC"
  716. default n
  717. select RT_USING_RTC if BSP_USING_RTC
  718. menuconfig BSP_USING_TSW
  719. bool "Enable TSW"
  720. default n
  721. select RT_USING_TSW
  722. select BSP_USING_TSW_PHY_RTL8211 if BSP_USING_TSW
  723. menuconfig BSP_USING_ETH
  724. bool "Enable Ethernet"
  725. default n
  726. select RT_USING_ETH if BSP_USING_ETH
  727. select RT_USING_PHY if BSP_USING_ETH
  728. if BSP_USING_ETH
  729. choice
  730. prompt "ETH"
  731. default BSP_USING_ETH0
  732. config BSP_USING_ETH0
  733. bool "Enable ETH0"
  734. select BSP_USING_ENET_PHY_RTL8211
  735. endchoice
  736. endif
  737. menuconfig BSP_USING_GPTMR
  738. bool "Enable GPTMR"
  739. default n
  740. select RT_USING_HWTIMER if BSP_USING_GPTMR
  741. if BSP_USING_GPTMR
  742. config BSP_USING_GPTMR0
  743. bool "Enable GPTMR0"
  744. depends on !HPM_USING_VECTOR_PREEMPTED_MODE
  745. default n
  746. if BSP_USING_GPTMR0
  747. config BSP_GPTMR0_IRQ_PRIORITY
  748. int "GPTMR0 Interrupt Priority"
  749. range 1 7
  750. default 1
  751. endif
  752. config BSP_USING_GPTMR1
  753. bool "Enable GPTMR1"
  754. default n
  755. if BSP_USING_GPTMR1
  756. config BSP_GPTMR1_IRQ_PRIORITY
  757. int "GPTMR1 Interrupt Priority"
  758. range 1 7
  759. default 1
  760. endif
  761. config BSP_USING_GPTMR2
  762. bool "Enable GPTMR2"
  763. default n
  764. if BSP_USING_GPTMR2
  765. config BSP_GPTMR2_IRQ_PRIORITY
  766. int "GPTMR2 Interrupt Priority"
  767. range 1 7
  768. default 1
  769. endif
  770. config BSP_USING_GPTMR3
  771. bool "Enable GPTMR3"
  772. default n
  773. if BSP_USING_GPTMR3
  774. config BSP_GPTMR3_IRQ_PRIORITY
  775. int "GPTMR3 Interrupt Priority"
  776. range 1 7
  777. default 1
  778. endif
  779. config BSP_USING_GPTMR4
  780. bool "Enable GPTMR4"
  781. default n
  782. if BSP_USING_GPTMR4
  783. config BSP_GPTMR4_IRQ_PRIORITY
  784. int "GPTMR4 Interrupt Priority"
  785. range 1 7
  786. default 1
  787. endif
  788. config BSP_USING_GPTMR5
  789. bool "Enable GPTMR5"
  790. default n
  791. if BSP_USING_GPTMR5
  792. config BSP_GPTMR5_IRQ_PRIORITY
  793. int "GPTMR5 Interrupt Priority"
  794. range 1 7
  795. default 1
  796. endif
  797. config BSP_USING_GPTMR6
  798. bool "Enable GPTMR6"
  799. default n
  800. if BSP_USING_GPTMR6
  801. config BSP_GPTMR6_IRQ_PRIORITY
  802. int "GPTMR6 Interrupt Priority"
  803. range 1 7
  804. default 1
  805. endif
  806. config BSP_USING_GPTMR7
  807. bool "Enable GPTMR7"
  808. default n
  809. if BSP_USING_GPTMR7
  810. config BSP_GPTMR7_IRQ_PRIORITY
  811. int "GPTMR7 Interrupt Priority"
  812. range 1 7
  813. default 1
  814. endif
  815. endif
  816. menuconfig BSP_USING_I2C
  817. bool "Enable I2C"
  818. default n
  819. select RT_USING_I2C if BSP_USING_I2C
  820. if BSP_USING_I2C
  821. config BSP_USING_I2C0
  822. bool "Enable I2C0"
  823. default y
  824. if BSP_USING_I2C0
  825. config BSP_I2C0_USING_DMA
  826. bool "Enable I2C0 DMA"
  827. default n
  828. config BSP_I2C0_IRQ_PRIORITY
  829. int "I2C0 Interrupt Priority"
  830. range 1 7
  831. default 1
  832. endif
  833. config BSP_USING_I2C1
  834. bool "Enable I2C1"
  835. default n
  836. if BSP_USING_I2C1
  837. config BSP_I2C1_USING_DMA
  838. bool "Enable I2C1 DMA"
  839. default n
  840. config BSP_I2C1_IRQ_PRIORITY
  841. int "I2C1 Interrupt Priority"
  842. range 1 7
  843. default 1
  844. endif
  845. config BSP_USING_I2C2
  846. bool "Enable I2C2"
  847. default n
  848. if BSP_USING_I2C2
  849. config BSP_I2C2_USING_DMA
  850. bool "Enable I2C2 DMA"
  851. default n
  852. config BSP_I2C2_IRQ_PRIORITY
  853. int "I2C2 Interrupt Priority"
  854. range 1 7
  855. default 1
  856. endif
  857. config BSP_USING_I2C3
  858. bool "Enable I2C3"
  859. default n
  860. if BSP_USING_I2C3
  861. config BSP_I2C3_USING_DMA
  862. bool "Enable I2C3 DMA"
  863. default n
  864. config BSP_I2C3_IRQ_PRIORITY
  865. int "I2C3 Interrupt Priority"
  866. range 1 7
  867. default 1
  868. endif
  869. config BSP_USING_I2C4
  870. bool "Enable I2C4"
  871. default n
  872. if BSP_USING_I2C4
  873. config BSP_I2C4_USING_DMA
  874. bool "Enable I2C4 DMA"
  875. default n
  876. config BSP_I2C4_IRQ_PRIORITY
  877. int "I2C4 Interrupt Priority"
  878. range 1 7
  879. default 1
  880. endif
  881. config BSP_USING_I2C5
  882. bool "Enable I2C5"
  883. default n
  884. if BSP_USING_I2C5
  885. config BSP_I2C5_USING_DMA
  886. bool "Enable I2C5 DMA"
  887. default n
  888. config BSP_I2C5_IRQ_PRIORITY
  889. int "I2C5 Interrupt Priority"
  890. range 1 7
  891. default 1
  892. endif
  893. config BSP_USING_I2C6
  894. bool "Enable I2C6"
  895. default n
  896. if BSP_USING_I2C6
  897. config BSP_I2C6_USING_DMA
  898. bool "Enable I2C6 DMA"
  899. default n
  900. config BSP_I2C6_IRQ_PRIORITY
  901. int "I2C6 Interrupt Priority"
  902. range 1 7
  903. default 1
  904. endif
  905. config BSP_USING_I2C7
  906. bool "Enable I2C7"
  907. default n
  908. if BSP_USING_I2C7
  909. config BSP_I2C7_USING_DMA
  910. bool "Enable I2C7 DMA"
  911. default n
  912. config BSP_I2C7_IRQ_PRIORITY
  913. int "I2C7 Interrupt Priority"
  914. range 1 7
  915. default 1
  916. endif
  917. endif
  918. menuconfig BSP_USING_XPI_FLASH
  919. bool "Enable XPI FLASH"
  920. default n
  921. select RT_USING_FAL if BSP_USING_XPI_FLASH
  922. menuconfig BSP_USING_DAO
  923. bool "Enable Audio DAO play"
  924. default n
  925. select RT_USING_AUDIO if BSP_USING_DAO
  926. menuconfig BSP_USING_PDM
  927. bool "Enable Audio PDM record"
  928. default n
  929. select RT_USING_AUDIO if BSP_USING_PDM
  930. menuconfig BSP_USING_I2S
  931. bool "Enable Audio I2S device"
  932. default n
  933. select RT_USING_AUDIO if BSP_USING_I2S
  934. if BSP_USING_I2S
  935. config BSP_USING_I2S3
  936. bool "Enable I2S3"
  937. default y
  938. config BSP_USING_AUDIO_CODEC_WM8960
  939. bool "Enable audio codec on board"
  940. default y
  941. endif
  942. menuconfig BSP_USING_USB
  943. bool "Enable USB"
  944. default n
  945. if BSP_USING_USB
  946. config BSP_USING_USB_DEVICE
  947. bool "Enable USB Device"
  948. select RT_USING_CACHE
  949. default n
  950. config BSP_USING_USB_HOST
  951. bool "Enable USB Host"
  952. select RT_USING_CACHE
  953. default n
  954. endif
  955. menuconfig BSP_USING_EWDG
  956. bool "Enable EWDG"
  957. default n
  958. select RT_USING_WDT if BSP_USING_EWDG
  959. if BSP_USING_EWDG
  960. config BSP_USING_EWDG0
  961. bool "Enable EWDG0"
  962. default n
  963. config BSP_USING_EWDG1
  964. bool "Enable EWDG1"
  965. default n
  966. endif
  967. menuconfig BSP_USING_PWMV2
  968. bool "Enable PWM"
  969. default n
  970. select RT_USING_PWM if BSP_USING_PWMV2
  971. menuconfig BSP_USING_MCAN
  972. bool "Enable MCAN"
  973. default n
  974. select RT_USING_CAN if BSP_USING_MCAN
  975. if BSP_USING_MCAN
  976. config BSP_USING_MCAN0
  977. bool "Enable MCAN0"
  978. default n
  979. if BSP_USING_MCAN0
  980. config BSP_MCAN0_IRQ_PRIORITY
  981. int "MCAN0 Interrupt Priority"
  982. range 1 7
  983. default 1
  984. endif
  985. config BSP_USING_MCAN1
  986. bool "Enable MCAN1"
  987. default n
  988. if BSP_USING_MCAN1
  989. config BSP_MCAN1_IRQ_PRIORITY
  990. int "MCAN1 Interrupt Priority"
  991. range 1 7
  992. default 1
  993. endif
  994. config BSP_USING_MCAN2
  995. bool "Enable MCAN2"
  996. default n
  997. if BSP_USING_MCAN2
  998. config BSP_MCAN2_IRQ_PRIORITY
  999. int "MCAN2 Interrupt Priority"
  1000. range 1 7
  1001. default 1
  1002. endif
  1003. config BSP_USING_MCAN3
  1004. bool "Enable MCAN3"
  1005. default n
  1006. if BSP_USING_MCAN3
  1007. config BSP_MCAN3_IRQ_PRIORITY
  1008. int "MCAN3 Interrupt Priority"
  1009. range 1 7
  1010. default 1
  1011. endif
  1012. config BSP_USING_MCAN4
  1013. bool "Enable MCAN4"
  1014. default n
  1015. if BSP_USING_MCAN4
  1016. config BSP_MCAN4_IRQ_PRIORITY
  1017. int "MCAN4 Interrupt Priority"
  1018. range 1 7
  1019. default 1
  1020. endif
  1021. config BSP_USING_MCAN5
  1022. bool "Enable MCAN5"
  1023. default n
  1024. if BSP_USING_MCAN5
  1025. config BSP_MCAN5_IRQ_PRIORITY
  1026. int "MCAN5 Interrupt Priority"
  1027. range 1 7
  1028. default 1
  1029. endif
  1030. config BSP_USING_MCAN6
  1031. bool "Enable MCAN6"
  1032. default n
  1033. if BSP_USING_MCAN6
  1034. config BSP_MCAN6_IRQ_PRIORITY
  1035. int "MCAN6 Interrupt Priority"
  1036. range 1 7
  1037. default 1
  1038. endif
  1039. config BSP_USING_MCAN7
  1040. bool "Enable MCAN7"
  1041. default n
  1042. if BSP_USING_MCAN7
  1043. config BSP_MCAN7_IRQ_PRIORITY
  1044. int "MCAN7 Interrupt Priority"
  1045. range 1 7
  1046. default 1
  1047. endif
  1048. endif
  1049. menuconfig BSP_USING_ADC
  1050. bool "Enable ADC"
  1051. default n
  1052. select RT_USING_ADC if BSP_USING_ADC
  1053. if BSP_USING_ADC
  1054. menuconfig BSP_USING_ADC16
  1055. bool "Enable ADC16"
  1056. default n
  1057. if BSP_USING_ADC16
  1058. config BSP_USING_ADC0
  1059. bool "Enable ADC0"
  1060. default n
  1061. config BSP_USING_ADC1
  1062. bool "Enable ADC1"
  1063. default n
  1064. config BSP_USING_ADC2
  1065. bool "Enable ADC2"
  1066. default n
  1067. config BSP_USING_ADC3
  1068. bool "Enable ADC3"
  1069. default n
  1070. endif
  1071. endif
  1072. endmenu
  1073. endmenu