Kconfig 30 KB

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