Kconfig 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943
  1. config SOC_SERIES_M480
  2. bool
  3. select ARCH_ARM_CORTEX_M4
  4. select SOC_FAMILY_NUMICRO
  5. select RT_USING_COMPONENTS_INIT
  6. select RT_USING_USER_MAIN
  7. default y
  8. config BSP_USE_STDDRIVER_SOURCE
  9. bool "Build StdDriver source"
  10. default n
  11. menuconfig BSP_USING_PDMA
  12. bool "Enable Peripheral Direct Memory Access Controller(PDMA)"
  13. default y
  14. if BSP_USING_PDMA
  15. config NU_PDMA_MEMFUN_ACTOR_MAX
  16. int "Specify maximum mem actor for memfun"
  17. range 1 4
  18. default 4
  19. config NU_PDMA_SGTBL_POOL_SIZE
  20. int "Specify maximum scatter-gather pool size"
  21. range 1 32
  22. default 16
  23. endif
  24. config BSP_USING_FMC
  25. bool "Enable Flash Memory Controller(FMC)"
  26. select RT_USING_FAL
  27. default n
  28. config BSP_USING_GPIO
  29. bool "Enable General Purpose I/O(GPIO)"
  30. select RT_USING_PIN
  31. default y
  32. menuconfig BSP_USING_CLK
  33. bool "Enable Clock Controller(CLK)"
  34. select RT_USING_PM
  35. select BSP_USING_TMR
  36. default y
  37. help
  38. Choose this option if you need CLK/PM function.
  39. Notice: Enable the option will hold timer3 resource
  40. if BSP_USING_CLK
  41. config NU_CLK_INVOKE_WKTMR
  42. bool "Enable SPD1 and DPD mode wakeup timer. (About 6.6 Secs)"
  43. default y
  44. endif
  45. menuconfig BSP_USING_EMAC
  46. bool "Enable Ethernet MAC Controller(EMAC)"
  47. select RT_USING_LWIP
  48. select RT_USING_NETDEV
  49. config NU_EMAC_PDMA_MEMCOPY
  50. bool "Use PDMA for data transferring"
  51. select BSP_USING_PDMA
  52. depends on BSP_USING_EMAC
  53. default y
  54. config NU_EMAC_PDMA_MEMCOPY_THRESHOLD
  55. int "Min threshold to do PDMA memcpy"
  56. range 32 1500
  57. default 128
  58. depends on NU_EMAC_PDMA_MEMCOPY
  59. menuconfig BSP_USING_RTC
  60. bool "Enable Real Time Clock(RTC)"
  61. select RT_USING_RTC
  62. config NU_RTC_SUPPORT_IO_RW
  63. bool "Support device RW entry"
  64. depends on BSP_USING_RTC && RT_USING_RTC
  65. config NU_RTC_SUPPORT_MSH_CMD
  66. bool "Support module shell command"
  67. depends on BSP_USING_RTC && RT_USING_RTC
  68. menuconfig BSP_USING_EADC
  69. bool "Enable Enhanced Analog-to-Digital Converter(EADC)"
  70. select RT_USING_ADC
  71. if BSP_USING_EADC
  72. config BSP_USING_EADC0
  73. bool "Enable EADC0"
  74. config BSP_USING_EADC1
  75. bool "Enable EADC1"
  76. endif
  77. menuconfig BSP_USING_TMR
  78. bool "Enable Timer Controller(TIMER)"
  79. config BSP_USING_TIMER
  80. bool
  81. config BSP_USING_TPWM
  82. bool
  83. config BSP_USING_TIMER_CAPTURE
  84. bool
  85. config BSP_USING_TMR0
  86. bool "Enable TIMER0"
  87. depends on BSP_USING_TMR
  88. if BSP_USING_TMR0
  89. choice
  90. prompt "Select TIMER0 function mode"
  91. config BSP_USING_TIMER0
  92. select BSP_USING_TIMER
  93. select RT_USING_HWTIMER
  94. bool "TIMER"
  95. help
  96. Choose this option if you need TIMER function mode.
  97. config BSP_USING_TPWM0
  98. select BSP_USING_TPWM
  99. select RT_USING_PWM
  100. bool "TIMER PWM"
  101. help
  102. Choose this option if you need PWM function mode.
  103. config BSP_USING_TIMER0_CAPTURE
  104. select BSP_USING_TIMER_CAPTURE
  105. select RT_USING_INPUT_CAPTURE
  106. bool "TIMER CAPTURE"
  107. help
  108. Choose this option if you need CAPTURE function mode.
  109. endchoice
  110. endif
  111. config BSP_USING_TMR1
  112. bool "Enable TIMER1"
  113. depends on BSP_USING_TMR
  114. if BSP_USING_TMR1
  115. choice
  116. prompt "Select TIMER1 function mode"
  117. config BSP_USING_TIMER1
  118. select BSP_USING_TIMER
  119. select RT_USING_HWTIMER
  120. bool "TIMER"
  121. help
  122. Choose this option if you need TIMER function mode.
  123. config BSP_USING_TPWM1
  124. select BSP_USING_TPWM
  125. select RT_USING_PWM
  126. bool "TIMER PWM"
  127. help
  128. Choose this option if you need PWM function mode.
  129. config BSP_USING_TIMER1_CAPTURE
  130. select BSP_USING_TIMER_CAPTURE
  131. select RT_USING_INPUT_CAPTURE
  132. bool "TIMER CAPTURE"
  133. help
  134. Choose this option if you need CAPTURE function mode.
  135. endchoice
  136. endif
  137. config BSP_USING_TMR2
  138. bool "Enable TIMER2"
  139. depends on BSP_USING_TMR
  140. if BSP_USING_TMR2
  141. choice
  142. prompt "Select TIMER2 function mode"
  143. config BSP_USING_TIMER2
  144. select BSP_USING_TIMER
  145. select RT_USING_HWTIMER
  146. bool "TIMER"
  147. help
  148. Choose this option if you need TIMER function mode.
  149. config BSP_USING_TPWM2
  150. select BSP_USING_TPWM
  151. select RT_USING_PWM
  152. bool "TIMER PWM"
  153. help
  154. Choose this option if you need PWM function mode.
  155. config BSP_USING_TIMER2_CAPTURE
  156. select BSP_USING_TIMER_CAPTURE
  157. select RT_USING_INPUT_CAPTURE
  158. bool "TIMER CAPTURE"
  159. help
  160. Choose this option if you need CAPTURE function mode.
  161. endchoice
  162. endif
  163. config BSP_USING_TMR3
  164. bool "Enable TIMER3"
  165. depends on BSP_USING_TMR && !BSP_USING_CLK
  166. if BSP_USING_TMR3
  167. choice
  168. prompt "Select TIMER3 function mode"
  169. config BSP_USING_TIMER3
  170. select BSP_USING_TIMER
  171. select RT_USING_HWTIMER
  172. bool "TIMER"
  173. help
  174. Choose this option if you need TIMER function mode.
  175. config BSP_USING_TPWM3
  176. select BSP_USING_TPWM
  177. select RT_USING_PWM
  178. bool "TIMER PWM"
  179. help
  180. Choose this option if you need PWM function mode.
  181. config BSP_USING_TIMER3_CAPTURE
  182. select BSP_USING_TIMER_CAPTURE
  183. select RT_USING_INPUT_CAPTURE
  184. bool "TIMER CAPTURE"
  185. help
  186. Choose this option if you need CAPTURE function mode.
  187. endchoice
  188. endif
  189. menuconfig BSP_USING_UART
  190. bool "Enable Universal Asynchronous Receiver/Transmitters(UART)"
  191. select RT_USING_SERIAL
  192. if BSP_USING_UART
  193. config BSP_USING_UART0
  194. bool "Enable UART0"
  195. config BSP_USING_UART0_TX_DMA
  196. bool "Enable UART0 TX DMA"
  197. depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA
  198. config BSP_USING_UART0_RX_DMA
  199. bool "Enable UART0 RX DMA"
  200. depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA
  201. config BSP_USING_UART1
  202. bool "Enable UART1"
  203. config BSP_USING_UART1_TX_DMA
  204. bool "Enable UART1 TX DMA"
  205. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  206. config BSP_USING_UART1_RX_DMA
  207. bool "Enable UART1 RX DMA"
  208. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  209. config BSP_USING_UART2
  210. bool "Enable UART2"
  211. config BSP_USING_UART2_TX_DMA
  212. bool "Enable UART2 TX DMA"
  213. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  214. config BSP_USING_UART2_RX_DMA
  215. bool "Enable UART2 RX DMA"
  216. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  217. config BSP_USING_UART3
  218. bool "Enable UART3"
  219. config BSP_USING_UART3_TX_DMA
  220. bool "Enable UART3 TX DMA"
  221. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  222. config BSP_USING_UART3_RX_DMA
  223. bool "Enable UART3 RX DMA"
  224. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  225. config BSP_USING_UART4
  226. bool "Enable UART4"
  227. config BSP_USING_UART4_TX_DMA
  228. bool "Enable UART4 TX DMA"
  229. depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA
  230. config BSP_USING_UART4_RX_DMA
  231. bool "Enable UART4 RX DMA"
  232. depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA
  233. config BSP_USING_UART5
  234. bool "Enable UART5"
  235. config BSP_USING_UART5_TX_DMA
  236. bool "Enable UART5 TX DMA"
  237. depends on BSP_USING_UART5 && RT_SERIAL_USING_DMA
  238. config BSP_USING_UART5_RX_DMA
  239. bool "Enable UART5 RX DMA"
  240. depends on BSP_USING_UART5 && RT_SERIAL_USING_DMA
  241. config BSP_USING_UART6
  242. bool "Enable UART6"
  243. config BSP_USING_UART6_TX_DMA
  244. bool "Enable UART6 TX DMA"
  245. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  246. config BSP_USING_UART6_RX_DMA
  247. bool "Enable UART6 RX DMA"
  248. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  249. config BSP_USING_UART7
  250. bool "Enable UART7"
  251. config BSP_USING_UART7_TX_DMA
  252. bool "Enable UART7 TX DMA"
  253. depends on BSP_USING_UART7 && RT_SERIAL_USING_DMA
  254. config BSP_USING_UART7_RX_DMA
  255. bool "Enable UART7 RX DMA"
  256. depends on BSP_USING_UART7 && RT_SERIAL_USING_DMA
  257. endif
  258. menuconfig BSP_USING_I2C
  259. bool "Enable I2C Serial Interface Controller(I2C)"
  260. select RT_USING_I2C
  261. if BSP_USING_I2C
  262. config BSP_USING_I2C0
  263. bool "Enable I2C0"
  264. config BSP_USING_I2C1
  265. bool "Enable I2C1"
  266. config BSP_USING_I2C2
  267. bool "Enable I2C2"
  268. endif
  269. menuconfig BSP_USING_USCI
  270. bool "Enable Universal Serial Control Interface Controller(USCI)"
  271. if BSP_USING_USCI
  272. config BSP_USING_UUART
  273. bool
  274. config BSP_USING_USPI
  275. bool
  276. config BSP_USING_USPI_PDMA
  277. bool
  278. default n
  279. config BSP_USING_UI2C
  280. bool
  281. config BSP_USING_USCI0
  282. bool "Enable USCI0"
  283. if BSP_USING_USCI0
  284. choice
  285. prompt "Select USCI0 function mode"
  286. config BSP_USING_UUART0
  287. select RT_USING_SERIAL
  288. select BSP_USING_UUART
  289. bool "UUART0"
  290. help
  291. Choose this option if you need UART function mode.
  292. config BSP_USING_UI2C0
  293. select RT_USING_I2C
  294. select BSP_USING_UI2C
  295. bool "UI2C0"
  296. help
  297. Choose this option if you need I2C function mode.
  298. config BSP_USING_USPI0
  299. select RT_USING_SPI
  300. select BSP_USING_USPI
  301. bool "USPI0"
  302. help
  303. Choose this option if you need SPI function mode.
  304. endchoice
  305. config BSP_USING_UUART0_TX_DMA
  306. bool "Enable UUART0 TX DMA"
  307. depends on BSP_USING_UUART0 && RT_SERIAL_USING_DMA
  308. config BSP_USING_UUART0_RX_DMA
  309. bool "Enable UUART0 RX DMA"
  310. depends on BSP_USING_UUART0 && RT_SERIAL_USING_DMA
  311. config BSP_USING_USPI0_PDMA
  312. bool "Use PDMA for data transferring"
  313. select BSP_USING_USPI_PDMA
  314. depends on BSP_USING_USPI0
  315. endif
  316. config BSP_USING_USCI1
  317. bool "Enable USCI1"
  318. if BSP_USING_USCI1
  319. choice
  320. prompt "Select USCI1 function mode"
  321. config BSP_USING_UUART1
  322. select RT_USING_SERIAL
  323. select BSP_USING_UUART
  324. bool "UUART1"
  325. help
  326. Choose this option if you need UART function mode.
  327. config BSP_USING_UI2C1
  328. select RT_USING_I2C
  329. select BSP_USING_UI2C
  330. bool "UI2C1"
  331. help
  332. Choose this option if you need I2C function mode.
  333. config BSP_USING_USPI1
  334. select RT_USING_SPI
  335. select BSP_USING_USPI
  336. bool "USPI1"
  337. help
  338. Choose this option if you need SPI function mode.
  339. endchoice
  340. config BSP_USING_UUART1_TX_DMA
  341. bool "Enable UUART1 TX DMA"
  342. depends on BSP_USING_UUART1 && RT_SERIAL_USING_DMA
  343. config BSP_USING_UUART1_RX_DMA
  344. bool "Enable UUART1 RX DMA"
  345. depends on BSP_USING_UUART1 && RT_SERIAL_USING_DMA
  346. config BSP_USING_USPI1_PDMA
  347. bool "Use PDMA for data transferring"
  348. select BSP_USING_USPI_PDMA
  349. depends on BSP_USING_USPI1
  350. endif
  351. endif
  352. menuconfig BSP_USING_SDH
  353. bool "Enable Secure Digital Host Controller(SDH)"
  354. select RT_USING_DFS
  355. select RT_USING_SDIO
  356. if BSP_USING_SDH
  357. config BSP_USING_SDH0
  358. bool "Enable SDH0"
  359. config BSP_USING_SDH1
  360. bool "Enable SDH1"
  361. endif
  362. menuconfig BSP_USING_CAN
  363. bool "Enable Controller Area Network(CAN)"
  364. select RT_USING_CAN
  365. if BSP_USING_CAN
  366. config BSP_USING_CAN0
  367. bool "Enable CAN0"
  368. config BSP_USING_CAN1
  369. bool "Enable CAN1"
  370. endif
  371. menuconfig BSP_USING_BPWM
  372. bool "Enable Basic PWM Generator and Capture Timer(BPWM)"
  373. select RT_USING_PWM
  374. if BSP_USING_BPWM
  375. config BSP_USING_BPWM_CAPTURE
  376. bool
  377. choice
  378. prompt "Select BPWM0 function mode"
  379. config BSP_USING_BPWM0
  380. select RT_USING_PWM
  381. bool "Enable BPWM0"
  382. help
  383. Choose this option if you need PWM function mode.
  384. config BSP_USING_BPWM0_CAPTURE
  385. select RT_USING_INPUT_CAPTURE
  386. select BSP_USING_BPWM_CAPTURE
  387. bool "Enable BPWM0_CAPTURE"
  388. help
  389. Choose this option if you need PWM capture function mode.
  390. endchoice
  391. if BSP_USING_BPWM0_CAPTURE
  392. config BSP_USING_BPWM0_CAPTURE_CHMSK
  393. hex "Specify channel mask for BPWM0_CAP channel."
  394. range 0 0x3F
  395. default 0
  396. endif
  397. choice
  398. prompt "Select BPWM1 function mode"
  399. config BSP_USING_BPWM1
  400. select RT_USING_PWM
  401. bool "Enable BPWM1"
  402. help
  403. Choose this option if you need PWM function mode.
  404. config BSP_USING_BPWM1_CAPTURE
  405. select RT_USING_INPUT_CAPTURE
  406. select BSP_USING_BPWM_CAPTURE
  407. bool "Enable BPWM1_CAPTURE"
  408. help
  409. Choose this option if you need PWM capture function mode.
  410. endchoice
  411. if BSP_USING_BPWM1_CAPTURE
  412. config BSP_USING_BPWM1_CAPTURE_CHMSK
  413. hex "Specify channel mask for BPWM1_CAP channel."
  414. range 0 0x3F
  415. default 0
  416. endif
  417. endif
  418. menuconfig BSP_USING_EPWM
  419. bool "Enable EPWM Generator and Capture Timer(EPWM)"
  420. if BSP_USING_EPWM
  421. config BSP_USING_EPWM_CAPTURE
  422. bool
  423. choice
  424. prompt "Select EPWM0 function mode"
  425. config BSP_USING_EPWM0
  426. select RT_USING_PWM
  427. bool "Enable EPWM0"
  428. help
  429. Choose this option if you need PWM function mode.
  430. config BSP_USING_EPWM0_CAPTURE
  431. select RT_USING_INPUT_CAPTURE
  432. select BSP_USING_EPWM_CAPTURE
  433. bool "Enable EPWM0_CAPTURE"
  434. help
  435. Choose this option if you need PWM capture function mode.
  436. endchoice
  437. if BSP_USING_EPWM0_CAPTURE
  438. config BSP_USING_EPWM0_CAPTURE_CHMSK
  439. hex "Specify channel mask for EPWM0_CAP channel."
  440. range 0 0x3F
  441. default 0
  442. endif
  443. choice
  444. prompt "Select EPWM1 function mode"
  445. config BSP_USING_EPWM1
  446. select RT_USING_PWM
  447. bool "Enable EPWM1"
  448. help
  449. Choose this option if you need PWM function mode.
  450. config BSP_USING_EPWM1_CAPTURE
  451. select RT_USING_INPUT_CAPTURE
  452. select BSP_USING_EPWM_CAPTURE
  453. bool "Enable EPWM1_CAPTURE"
  454. help
  455. Choose this option if you need PWM capture function mode.
  456. endchoice
  457. if BSP_USING_EPWM1_CAPTURE
  458. config BSP_USING_EPWM1_CAPTURE_CHMSK
  459. hex "Specify channel mask for EPWM1_CAP channel."
  460. range 0 0x3F
  461. default 0
  462. endif
  463. endif
  464. menuconfig BSP_USING_SPI
  465. bool "Enable Serial Peripheral Interface(SPI)"
  466. select RT_USING_SPI
  467. if BSP_USING_SPI
  468. config BSP_USING_SPI_PDMA
  469. bool
  470. default n
  471. config BSP_USING_SPII2S
  472. bool
  473. default n
  474. choice
  475. prompt "Select SPI0 function mode"
  476. config BSP_USING_SPI0_NONE
  477. bool "NONE"
  478. help
  479. Choose this option if you need not SPI0.
  480. config BSP_USING_SPI0
  481. bool "Enable SPI0"
  482. help
  483. Choose this option if you need SPI function mode.
  484. config BSP_USING_SPII2S0
  485. select RT_USING_AUDIO
  486. select BSP_USING_SPII2S
  487. bool "Enable SPII2S0"
  488. help
  489. Choose this option if you need SPII2S function mode.
  490. endchoice
  491. if BSP_USING_SPI0
  492. config BSP_USING_SPI0_PDMA
  493. bool "Enable PDMA for SPI0"
  494. select BSP_USING_SPI_PDMA
  495. depends on BSP_USING_SPI0
  496. endif
  497. choice
  498. prompt "Select SPI1 function mode"
  499. config BSP_USING_SPI1_NONE
  500. bool "NONE"
  501. help
  502. Choose this option if you need not SPI1.
  503. config BSP_USING_SPI1
  504. bool "Enable SPI1"
  505. help
  506. Choose this option if you need SPI function mode.
  507. config BSP_USING_SPII2S1
  508. select RT_USING_AUDIO
  509. select BSP_USING_SPII2S
  510. bool "Enable SPII2S1"
  511. help
  512. Choose this option if you need SPII2S function mode.
  513. endchoice
  514. if BSP_USING_SPI1
  515. config BSP_USING_SPI1_PDMA
  516. bool "Enable PDMA for SPI1"
  517. select BSP_USING_SPI_PDMA
  518. depends on BSP_USING_SPI1
  519. endif
  520. choice
  521. prompt "Select SPI2 function mode"
  522. config BSP_USING_SPI2_NONE
  523. bool "NONE"
  524. help
  525. Choose this option if you need not SPI2.
  526. config BSP_USING_SPI2
  527. bool "Enable SPI2"
  528. help
  529. Choose this option if you need SPI function mode.
  530. config BSP_USING_SPII2S2
  531. select RT_USING_AUDIO
  532. select BSP_USING_SPII2S
  533. bool "Enable SPII2S2"
  534. help
  535. Choose this option if you need SPII2S function mode.
  536. endchoice
  537. if BSP_USING_SPI2
  538. config BSP_USING_SPI2_PDMA
  539. bool "Enable PDMA for SPI2"
  540. select BSP_USING_SPI_PDMA
  541. depends on BSP_USING_SPI2
  542. endif
  543. choice
  544. prompt "Select SPI3 function mode"
  545. config BSP_USING_SPI3_NONE
  546. bool "NONE"
  547. help
  548. Choose this option if you need not SPI3.
  549. config BSP_USING_SPI3
  550. bool "Enable SPI3"
  551. help
  552. Choose this option if you need SPI function mode.
  553. config BSP_USING_SPII2S3
  554. select RT_USING_AUDIO
  555. select BSP_USING_SPII2S
  556. bool "Enable SPII2S3"
  557. help
  558. Choose this option if you need SPII2S function mode.
  559. endchoice
  560. if BSP_USING_SPI3
  561. config BSP_USING_SPI3_PDMA
  562. bool "Enable PDMA for SPI3"
  563. select BSP_USING_SPI_PDMA
  564. depends on BSP_USING_SPI3
  565. endif
  566. endif
  567. config BSP_USING_I2S
  568. bool "Enable I2S Controller(I2S)"
  569. select RT_USING_AUDIO
  570. if BSP_USING_I2S || BSP_USING_SPII2S
  571. config NU_I2S_DMA_FIFO_SIZE
  572. int "DMA Buffer size of capture and playback"
  573. range 2048 4096
  574. default 2048
  575. endif
  576. menuconfig BSP_USING_QSPI
  577. bool "Enable Quad Serial Peripheral Interface(QSPI)"
  578. select RT_USING_SPI
  579. select RT_USING_QSPI
  580. select BSP_USING_SPI
  581. if BSP_USING_QSPI
  582. config BSP_USING_QSPI0
  583. bool "Enable QSPI0"
  584. config BSP_USING_QSPI0_PDMA
  585. bool "Enable PDMA for QSPI0"
  586. select BSP_USING_SPI_PDMA
  587. depends on BSP_USING_QSPI0
  588. config BSP_USING_QSPI1
  589. bool "Enable QSPI1"
  590. config BSP_USING_QSPI1_PDMA
  591. bool "Enable PDMA for QSPI1"
  592. select BSP_USING_SPI_PDMA
  593. depends on BSP_USING_QSPI1
  594. endif
  595. menuconfig BSP_USING_SCUART
  596. bool "Enable Smart Card Host Interface - UART(SCUART)"
  597. if BSP_USING_SCUART
  598. config BSP_USING_SCUART0
  599. bool "Enable SCUART0"
  600. config BSP_USING_SCUART1
  601. bool "Enable SCUART1"
  602. config BSP_USING_SCUART2
  603. bool "Enable SCUART2"
  604. endif
  605. menuconfig BSP_USING_ECAP
  606. bool "Enable Enhanced Input Capture Timer(ECAP)"
  607. if BSP_USING_ECAP
  608. config BSP_USING_ECAP0
  609. select RT_USING_INPUT_CAPTURE
  610. bool "Enable ECAP0"
  611. help
  612. Choose this option if you need ECAP0.
  613. if BSP_USING_ECAP0
  614. config BSP_USING_ECAP0_CHMSK
  615. hex "Specify channel mask for ECAP0 channel."
  616. range 0 0x7
  617. default 0
  618. endif
  619. config BSP_USING_ECAP1
  620. select RT_USING_INPUT_CAPTURE
  621. bool "Enable ECAP1"
  622. help
  623. Choose this option if you need ECAP1.
  624. if BSP_USING_ECAP1
  625. config BSP_USING_ECAP1_CHMSK
  626. hex "Specify channel mask for ECAP1 channel."
  627. range 0 0x7
  628. default 0
  629. endif
  630. endif
  631. menuconfig BSP_USING_QEI
  632. bool "Enable Quadrature Encoder Interface(QEI)"
  633. if BSP_USING_QEI
  634. config BSP_USING_QEI0
  635. bool "Enable QEI0"
  636. select RT_USING_PULSE_ENCODER
  637. config BSP_USING_QEI1
  638. bool "Enable QEI1"
  639. select RT_USING_PULSE_ENCODER
  640. endif
  641. menuconfig BSP_USING_CRYPTO
  642. bool "Enable Cryptographic Accelerator(CRYPTO)"
  643. select RT_USING_HWCRYPTO
  644. select RT_HWCRYPTO_USING_AES
  645. select RT_HWCRYPTO_USING_AES_ECB
  646. select RT_HWCRYPTO_USING_AES_CBC
  647. select RT_HWCRYPTO_USING_AES_CFB
  648. select RT_HWCRYPTO_USING_AES_CTR
  649. select RT_HWCRYPTO_USING_AES_CFB
  650. select RT_HWCRYPTO_USING_AES_OFB
  651. select RT_HWCRYPTO_USING_DES
  652. select RT_HWCRYPTO_USING_DES_ECB
  653. select RT_HWCRYPTO_USING_DES_CBC
  654. select RT_HWCRYPTO_USING_3DES
  655. select RT_HWCRYPTO_USING_3DES_ECB
  656. select RT_HWCRYPTO_USING_3DES_CBC
  657. select RT_HWCRYPTO_USING_SHA1
  658. select RT_HWCRYPTO_USING_SHA2
  659. select RT_HWCRYPTO_USING_SHA2_224
  660. select RT_HWCRYPTO_USING_SHA2_256
  661. select RT_HWCRYPTO_USING_SHA2_384
  662. select RT_HWCRYPTO_USING_SHA2_512
  663. select RT_HWCRYPTO_USING_RNG
  664. if BSP_USING_CRYPTO
  665. config NU_PRNG_USE_SEED
  666. bool "Use specified seed value."
  667. help
  668. Specify the seed value to PRNG.
  669. if NU_PRNG_USE_SEED
  670. config NU_PRNG_SEED_VALUE
  671. hex "Enter seed value"
  672. range 0 0xFFFFFFFF
  673. default 0
  674. endif
  675. endif
  676. config BSP_USING_TRNG
  677. bool "Enable True Random Number Generator(TRNG)"
  678. select BSP_USING_CRYPTO
  679. select RT_USING_HWCRYPTO
  680. select RT_HWCRYPTO_USING_RNG
  681. menuconfig BSP_USING_CRC
  682. bool "Enable Cyclic Redundancy Check Generator(CRC)"
  683. select BSP_USING_CRYPTO
  684. select RT_USING_HWCRYPTO
  685. select RT_HWCRYPTO_USING_CRC
  686. select RT_HWCRYPTO_USING_CRC_07
  687. select RT_HWCRYPTO_USING_CRC_8005
  688. select RT_HWCRYPTO_USING_CRC_1021
  689. select RT_HWCRYPTO_USING_CRC_04C11DB7
  690. if BSP_USING_CRC
  691. config NU_CRC_USE_PDMA
  692. bool "Use PDMA for data transferring."
  693. select BSP_USING_PDMA
  694. default y
  695. endif
  696. menuconfig BSP_USING_SOFT_I2C
  697. bool "Enable SOFT I2C"
  698. if BSP_USING_SOFT_I2C
  699. config BSP_USING_SOFT_I2C0
  700. bool "Enable SOFT I2C0"
  701. select RT_USING_I2C
  702. select RT_USING_I2C_BITOPS
  703. default n
  704. if BSP_USING_SOFT_I2C0
  705. config BSP_SOFT_I2C0_SCL_PIN
  706. hex "Specify the pin index of SCL of SOFT I2C0"
  707. range 0 0x7F
  708. default 0x18
  709. config BSP_SOFT_I2C0_SDA_PIN
  710. hex "Specify the pin index of SDA of SOFT I2C0"
  711. range 0 0x7F
  712. default 0x17
  713. endif
  714. config BSP_USING_SOFT_I2C1
  715. bool "Enable SOFT I2C1"
  716. select RT_USING_I2C
  717. select RT_USING_I2C_BITOPS
  718. default n
  719. if BSP_USING_SOFT_I2C1
  720. config BSP_SOFT_I2C1_SCL_PIN
  721. hex "Specify the pin index of SCL of SOFT I2C1"
  722. range 0 0x7F
  723. default 0x0B
  724. config BSP_SOFT_I2C1_SDA_PIN
  725. hex "Specify the pin index of SDA of SOFT I2C1"
  726. range 0 0x7F
  727. default 0x0A
  728. endif
  729. endif
  730. config BSP_USING_WDT
  731. bool "Enable Watchdog Timer(WDT)"
  732. select RT_USING_WDT
  733. default y
  734. config BSP_USING_EBI
  735. bool "Enable External Bus Interface(EBI)"
  736. default n
  737. config BSP_USING_USBD
  738. bool "Enable Full-Speed USB Device Controller(USBD)"
  739. select RT_USING_USB_DEVICE
  740. config BSP_USING_HSUSBD
  741. bool "Enable High-Speed USB Device Controller(HSUSBD)"
  742. select RT_USING_USB_DEVICE
  743. config BSP_USING_USBH
  744. bool "Enable Full-Speed USB Host Controller(USBH)"
  745. select RT_USING_USB_HOST
  746. select RT_USBH_MSTORAGE
  747. config BSP_USING_HSUSBH
  748. bool "Enable High-Speed USB Host Controller(HSUSBH)"
  749. select RT_USING_USB_HOST
  750. select RT_USBH_MSTORAGE
  751. if BSP_USING_USBH || BSP_USING_HSUSBH
  752. config NU_USBHOST_HUB_POLLING_INTERVAL
  753. int "USB Root Hub Polling Interval(in Mili-seconds)"
  754. range 100 2000
  755. default 100
  756. endif
  757. config BSP_USING_HSOTG
  758. bool "Enable High-Speed USB On-The-Go(HSOTG)"
  759. select BSP_USING_HSUSBH
  760. select BSP_USING_HSUSBD