Kconfig 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954
  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 PKG_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. if BSP_USING_SDH
  356. config BSP_USING_SDH0
  357. bool "Enable SDH0"
  358. config BSP_USING_SDH1
  359. bool "Enable SDH1"
  360. config NU_SDH_USING_PDMA
  361. bool "Using PDMA"
  362. select BSP_USING_PDMA
  363. config NU_SDH_HOTPLUG
  364. bool "Using HOTPLUG"
  365. default y
  366. config NU_SDH_MOUNT_ON_ROOT
  367. bool "Mount on root"
  368. endif
  369. menuconfig BSP_USING_CAN
  370. bool "Enable Controller Area Network(CAN)"
  371. select RT_USING_CAN
  372. if BSP_USING_CAN
  373. config BSP_USING_CAN0
  374. bool "Enable CAN0"
  375. config BSP_USING_CAN1
  376. bool "Enable CAN1"
  377. endif
  378. menuconfig BSP_USING_BPWM
  379. bool "Enable Basic PWM Generator and Capture Timer(BPWM)"
  380. select RT_USING_PWM
  381. if BSP_USING_BPWM
  382. config BSP_USING_BPWM_CAPTURE
  383. bool
  384. choice
  385. prompt "Select BPWM0 function mode"
  386. config BSP_USING_BPWM0
  387. select RT_USING_PWM
  388. bool "Enable BPWM0"
  389. help
  390. Choose this option if you need PWM function mode.
  391. config BSP_USING_BPWM0_CAPTURE
  392. select RT_USING_INPUT_CAPTURE
  393. select BSP_USING_BPWM_CAPTURE
  394. bool "Enable BPWM0_CAPTURE"
  395. help
  396. Choose this option if you need PWM capture function mode.
  397. endchoice
  398. if BSP_USING_BPWM0_CAPTURE
  399. config BSP_USING_BPWM0_CAPTURE_CHMSK
  400. hex "Specify channel mask for BPWM0_CAP channel."
  401. range 0 0x3F
  402. default 0
  403. endif
  404. choice
  405. prompt "Select BPWM1 function mode"
  406. config BSP_USING_BPWM1
  407. select RT_USING_PWM
  408. bool "Enable BPWM1"
  409. help
  410. Choose this option if you need PWM function mode.
  411. config BSP_USING_BPWM1_CAPTURE
  412. select RT_USING_INPUT_CAPTURE
  413. select BSP_USING_BPWM_CAPTURE
  414. bool "Enable BPWM1_CAPTURE"
  415. help
  416. Choose this option if you need PWM capture function mode.
  417. endchoice
  418. if BSP_USING_BPWM1_CAPTURE
  419. config BSP_USING_BPWM1_CAPTURE_CHMSK
  420. hex "Specify channel mask for BPWM1_CAP channel."
  421. range 0 0x3F
  422. default 0
  423. endif
  424. endif
  425. menuconfig BSP_USING_EPWM
  426. bool "Enable EPWM Generator and Capture Timer(EPWM)"
  427. if BSP_USING_EPWM
  428. config BSP_USING_EPWM_CAPTURE
  429. bool
  430. choice
  431. prompt "Select EPWM0 function mode"
  432. config BSP_USING_EPWM0
  433. select RT_USING_PWM
  434. bool "Enable EPWM0"
  435. help
  436. Choose this option if you need PWM function mode.
  437. config BSP_USING_EPWM0_CAPTURE
  438. select RT_USING_INPUT_CAPTURE
  439. select BSP_USING_EPWM_CAPTURE
  440. bool "Enable EPWM0_CAPTURE"
  441. help
  442. Choose this option if you need PWM capture function mode.
  443. endchoice
  444. if BSP_USING_EPWM0_CAPTURE
  445. config BSP_USING_EPWM0_CAPTURE_CHMSK
  446. hex "Specify channel mask for EPWM0_CAP channel."
  447. range 0 0x3F
  448. default 0
  449. endif
  450. choice
  451. prompt "Select EPWM1 function mode"
  452. config BSP_USING_EPWM1
  453. select RT_USING_PWM
  454. bool "Enable EPWM1"
  455. help
  456. Choose this option if you need PWM function mode.
  457. config BSP_USING_EPWM1_CAPTURE
  458. select RT_USING_INPUT_CAPTURE
  459. select BSP_USING_EPWM_CAPTURE
  460. bool "Enable EPWM1_CAPTURE"
  461. help
  462. Choose this option if you need PWM capture function mode.
  463. endchoice
  464. if BSP_USING_EPWM1_CAPTURE
  465. config BSP_USING_EPWM1_CAPTURE_CHMSK
  466. hex "Specify channel mask for EPWM1_CAP channel."
  467. range 0 0x3F
  468. default 0
  469. endif
  470. endif
  471. menuconfig BSP_USING_SPI
  472. bool "Enable Serial Peripheral Interface(SPI)"
  473. select RT_USING_SPI
  474. if BSP_USING_SPI
  475. config BSP_USING_SPI_PDMA
  476. bool
  477. default n
  478. config BSP_USING_SPII2S
  479. bool
  480. default n
  481. choice
  482. prompt "Select SPI0 function mode"
  483. config BSP_USING_SPI0_NONE
  484. bool "NONE"
  485. help
  486. Choose this option if you need not SPI0.
  487. config BSP_USING_SPI0
  488. bool "Enable SPI0"
  489. help
  490. Choose this option if you need SPI function mode.
  491. config BSP_USING_SPII2S0
  492. select RT_USING_AUDIO
  493. select BSP_USING_SPII2S
  494. bool "Enable SPII2S0"
  495. help
  496. Choose this option if you need SPII2S function mode.
  497. endchoice
  498. if BSP_USING_SPI0
  499. config BSP_USING_SPI0_PDMA
  500. bool "Enable PDMA for SPI0"
  501. select BSP_USING_SPI_PDMA
  502. depends on BSP_USING_SPI0
  503. endif
  504. choice
  505. prompt "Select SPI1 function mode"
  506. config BSP_USING_SPI1_NONE
  507. bool "NONE"
  508. help
  509. Choose this option if you need not SPI1.
  510. config BSP_USING_SPI1
  511. bool "Enable SPI1"
  512. help
  513. Choose this option if you need SPI function mode.
  514. config BSP_USING_SPII2S1
  515. select RT_USING_AUDIO
  516. select BSP_USING_SPII2S
  517. bool "Enable SPII2S1"
  518. help
  519. Choose this option if you need SPII2S function mode.
  520. endchoice
  521. if BSP_USING_SPI1
  522. config BSP_USING_SPI1_PDMA
  523. bool "Enable PDMA for SPI1"
  524. select BSP_USING_SPI_PDMA
  525. depends on BSP_USING_SPI1
  526. endif
  527. choice
  528. prompt "Select SPI2 function mode"
  529. config BSP_USING_SPI2_NONE
  530. bool "NONE"
  531. help
  532. Choose this option if you need not SPI2.
  533. config BSP_USING_SPI2
  534. bool "Enable SPI2"
  535. help
  536. Choose this option if you need SPI function mode.
  537. config BSP_USING_SPII2S2
  538. select RT_USING_AUDIO
  539. select BSP_USING_SPII2S
  540. bool "Enable SPII2S2"
  541. help
  542. Choose this option if you need SPII2S function mode.
  543. endchoice
  544. if BSP_USING_SPI2
  545. config BSP_USING_SPI2_PDMA
  546. bool "Enable PDMA for SPI2"
  547. select BSP_USING_SPI_PDMA
  548. depends on BSP_USING_SPI2
  549. endif
  550. choice
  551. prompt "Select SPI3 function mode"
  552. config BSP_USING_SPI3_NONE
  553. bool "NONE"
  554. help
  555. Choose this option if you need not SPI3.
  556. config BSP_USING_SPI3
  557. bool "Enable SPI3"
  558. help
  559. Choose this option if you need SPI function mode.
  560. config BSP_USING_SPII2S3
  561. select RT_USING_AUDIO
  562. select BSP_USING_SPII2S
  563. bool "Enable SPII2S3"
  564. help
  565. Choose this option if you need SPII2S function mode.
  566. endchoice
  567. if BSP_USING_SPI3
  568. config BSP_USING_SPI3_PDMA
  569. bool "Enable PDMA for SPI3"
  570. select BSP_USING_SPI_PDMA
  571. depends on BSP_USING_SPI3
  572. endif
  573. endif
  574. config BSP_USING_I2S
  575. bool "Enable I2S Controller(I2S)"
  576. select RT_USING_AUDIO
  577. if BSP_USING_I2S || BSP_USING_SPII2S
  578. config NU_I2S_DMA_FIFO_SIZE
  579. int "DMA Buffer size of capture and playback"
  580. range 2048 4096
  581. default 2048
  582. endif
  583. menuconfig BSP_USING_QSPI
  584. bool "Enable Quad Serial Peripheral Interface(QSPI)"
  585. select RT_USING_SPI
  586. select RT_USING_QSPI
  587. select BSP_USING_SPI
  588. if BSP_USING_QSPI
  589. config BSP_USING_QSPI0
  590. bool "Enable QSPI0"
  591. config BSP_USING_QSPI0_PDMA
  592. bool "Enable PDMA for QSPI0"
  593. select BSP_USING_SPI_PDMA
  594. depends on BSP_USING_QSPI0
  595. config BSP_USING_QSPI1
  596. bool "Enable QSPI1"
  597. config BSP_USING_QSPI1_PDMA
  598. bool "Enable PDMA for QSPI1"
  599. select BSP_USING_SPI_PDMA
  600. depends on BSP_USING_QSPI1
  601. endif
  602. menuconfig BSP_USING_SCUART
  603. bool "Enable Smart Card Host Interface - UART(SCUART)"
  604. if BSP_USING_SCUART
  605. config BSP_USING_SCUART0
  606. bool "Enable SCUART0"
  607. config BSP_USING_SCUART1
  608. bool "Enable SCUART1"
  609. config BSP_USING_SCUART2
  610. bool "Enable SCUART2"
  611. endif
  612. menuconfig BSP_USING_ECAP
  613. bool "Enable Enhanced Input Capture Timer(ECAP)"
  614. if BSP_USING_ECAP
  615. config BSP_USING_ECAP0
  616. select RT_USING_INPUT_CAPTURE
  617. bool "Enable ECAP0"
  618. help
  619. Choose this option if you need ECAP0.
  620. if BSP_USING_ECAP0
  621. config BSP_USING_ECAP0_CHMSK
  622. hex "Specify channel mask for ECAP0 channel."
  623. range 0 0x7
  624. default 0
  625. endif
  626. config BSP_USING_ECAP1
  627. select RT_USING_INPUT_CAPTURE
  628. bool "Enable ECAP1"
  629. help
  630. Choose this option if you need ECAP1.
  631. if BSP_USING_ECAP1
  632. config BSP_USING_ECAP1_CHMSK
  633. hex "Specify channel mask for ECAP1 channel."
  634. range 0 0x7
  635. default 0
  636. endif
  637. endif
  638. menuconfig BSP_USING_QEI
  639. bool "Enable Quadrature Encoder Interface(QEI)"
  640. if BSP_USING_QEI
  641. config BSP_USING_QEI0
  642. bool "Enable QEI0"
  643. select RT_USING_PULSE_ENCODER
  644. config BSP_USING_QEI1
  645. bool "Enable QEI1"
  646. select RT_USING_PULSE_ENCODER
  647. endif
  648. menuconfig BSP_USING_CRYPTO
  649. bool "Enable Cryptographic Accelerator(CRYPTO)"
  650. select RT_USING_HWCRYPTO
  651. select RT_HWCRYPTO_USING_AES
  652. select RT_HWCRYPTO_USING_AES_ECB
  653. select RT_HWCRYPTO_USING_AES_CBC
  654. select RT_HWCRYPTO_USING_AES_CFB
  655. select RT_HWCRYPTO_USING_AES_CTR
  656. select RT_HWCRYPTO_USING_AES_CFB
  657. select RT_HWCRYPTO_USING_AES_OFB
  658. select RT_HWCRYPTO_USING_DES
  659. select RT_HWCRYPTO_USING_DES_ECB
  660. select RT_HWCRYPTO_USING_DES_CBC
  661. select RT_HWCRYPTO_USING_3DES
  662. select RT_HWCRYPTO_USING_3DES_ECB
  663. select RT_HWCRYPTO_USING_3DES_CBC
  664. select RT_HWCRYPTO_USING_SHA1
  665. select RT_HWCRYPTO_USING_SHA2
  666. select RT_HWCRYPTO_USING_SHA2_224
  667. select RT_HWCRYPTO_USING_SHA2_256
  668. select RT_HWCRYPTO_USING_SHA2_384
  669. select RT_HWCRYPTO_USING_SHA2_512
  670. select RT_HWCRYPTO_USING_RNG
  671. if BSP_USING_CRYPTO
  672. config NU_PRNG_USE_SEED
  673. bool "Use specified seed value."
  674. help
  675. Specify the seed value to PRNG.
  676. if NU_PRNG_USE_SEED
  677. config NU_PRNG_SEED_VALUE
  678. hex "Enter seed value"
  679. range 0 0xFFFFFFFF
  680. default 0
  681. endif
  682. endif
  683. config BSP_USING_TRNG
  684. bool "Enable True Random Number Generator(TRNG)"
  685. select BSP_USING_CRYPTO
  686. select RT_USING_HWCRYPTO
  687. select RT_HWCRYPTO_USING_RNG
  688. menuconfig BSP_USING_CRC
  689. bool "Enable Cyclic Redundancy Check Generator(CRC)"
  690. select BSP_USING_CRYPTO
  691. select RT_USING_HWCRYPTO
  692. select RT_HWCRYPTO_USING_CRC
  693. select RT_HWCRYPTO_USING_CRC_07
  694. select RT_HWCRYPTO_USING_CRC_8005
  695. select RT_HWCRYPTO_USING_CRC_1021
  696. select RT_HWCRYPTO_USING_CRC_04C11DB7
  697. if BSP_USING_CRC
  698. config NU_CRC_USE_PDMA
  699. bool "Use PDMA for data transferring."
  700. select BSP_USING_PDMA
  701. default y
  702. endif
  703. menuconfig BSP_USING_SOFT_I2C
  704. bool "Enable SOFT I2C"
  705. if BSP_USING_SOFT_I2C
  706. config BSP_USING_SOFT_I2C0
  707. bool "Enable SOFT I2C0"
  708. select RT_USING_I2C
  709. select RT_USING_I2C_BITOPS
  710. default n
  711. if BSP_USING_SOFT_I2C0
  712. config BSP_SOFT_I2C0_SCL_PIN
  713. hex "Specify the pin index of SCL of SOFT I2C0"
  714. range 0 0x7F
  715. default 0x18
  716. config BSP_SOFT_I2C0_SDA_PIN
  717. hex "Specify the pin index of SDA of SOFT I2C0"
  718. range 0 0x7F
  719. default 0x17
  720. endif
  721. config BSP_USING_SOFT_I2C1
  722. bool "Enable SOFT I2C1"
  723. select RT_USING_I2C
  724. select RT_USING_I2C_BITOPS
  725. default n
  726. if BSP_USING_SOFT_I2C1
  727. config BSP_SOFT_I2C1_SCL_PIN
  728. hex "Specify the pin index of SCL of SOFT I2C1"
  729. range 0 0x7F
  730. default 0x0B
  731. config BSP_SOFT_I2C1_SDA_PIN
  732. hex "Specify the pin index of SDA of SOFT I2C1"
  733. range 0 0x7F
  734. default 0x0A
  735. endif
  736. endif
  737. config BSP_USING_WDT
  738. bool "Enable Watchdog Timer(WDT)"
  739. select RT_USING_WDT
  740. default y
  741. config BSP_USING_EBI
  742. bool "Enable External Bus Interface(EBI)"
  743. default n
  744. config BSP_USING_USBD
  745. bool "Enable Full-Speed USB Device Controller(USBD)"
  746. select RT_USING_USB_DEVICE
  747. config BSP_USING_HSUSBD
  748. bool "Enable High-Speed USB Device Controller(HSUSBD)"
  749. select RT_USING_USB_DEVICE
  750. config BSP_USING_USBH
  751. bool "Enable Full-Speed USB Host Controller(USBH)"
  752. select RT_USING_USB_HOST
  753. select RT_USBH_MSTORAGE
  754. config BSP_USING_HSUSBH
  755. bool "Enable High-Speed USB Host Controller(HSUSBH)"
  756. select RT_USING_USB_HOST
  757. select RT_USBH_MSTORAGE
  758. if BSP_USING_USBH || BSP_USING_HSUSBH
  759. config NU_USBHOST_HUB_POLLING_INTERVAL
  760. int "USB Root Hub Polling Interval(in Mili-seconds)"
  761. range 100 2000
  762. default 100
  763. endif
  764. config BSP_USING_HSOTG
  765. bool "Enable High-Speed USB On-The-Go(HSOTG)"
  766. select BSP_USING_HSUSBH
  767. select BSP_USING_HSUSBD