Kconfig 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137
  1. config SOC_SERIES_M460
  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 2
  19. config NU_PDMA_SGTBL_POOL_SIZE
  20. int "Specify maximum scatter-gather pool size"
  21. range 1 64
  22. default 32
  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_EMAC
  33. bool "Enable Ethernet MAC Controller(EMAC)"
  34. select RT_USING_LWIP
  35. select RT_USING_NETDEV
  36. menuconfig BSP_USING_RTC
  37. bool "Enable Real Time Clock(RTC)"
  38. select RT_USING_RTC
  39. config NU_RTC_SUPPORT_IO_RW
  40. bool "Support device RW entry"
  41. depends on BSP_USING_RTC && RT_USING_RTC
  42. config NU_RTC_SUPPORT_MSH_CMD
  43. bool "Support module shell command"
  44. depends on BSP_USING_RTC && RT_USING_RTC
  45. menuconfig BSP_USING_CCAP
  46. bool "Enable Camera Capture Interface Controller(CCAP)"
  47. select RT_USING_PIN
  48. if BSP_USING_CCAP
  49. config BSP_USING_CCAP0
  50. bool "Enable CCAP0"
  51. endif
  52. menuconfig BSP_USING_DAC
  53. bool "Enable Digital-to-Analog Converter(DAC)"
  54. select RT_USING_DAC
  55. if BSP_USING_DAC
  56. config BSP_USING_DAC0
  57. bool "Enable DAC0"
  58. config BSP_USING_DAC1
  59. bool "Enable DAC1"
  60. endif
  61. menuconfig BSP_USING_EADC
  62. bool "Enable Enhanced Analog-to-Digital Converter(EADC)"
  63. select RT_USING_ADC
  64. if BSP_USING_EADC
  65. config BSP_USING_EADC0
  66. bool "Enable EADC0"
  67. config BSP_USING_EADC1
  68. bool "Enable EADC1"
  69. config BSP_USING_EADC2
  70. bool "Enable EADC2"
  71. endif
  72. menuconfig BSP_USING_TMR
  73. bool "Enable Timer Controller(TIMER)"
  74. if BSP_USING_TMR
  75. config BSP_USING_TIMER
  76. bool
  77. config BSP_USING_TPWM
  78. bool
  79. config BSP_USING_TIMER_CAPTURE
  80. bool
  81. config BSP_USING_TMR0
  82. bool "Enable TIMER0"
  83. if BSP_USING_TMR0
  84. choice
  85. prompt "Select TIMER0 function mode"
  86. config BSP_USING_TIMER0
  87. select BSP_USING_TIMER
  88. select RT_USING_HWTIMER
  89. bool "TIMER"
  90. help
  91. Choose this option if you need TIMER function mode.
  92. config BSP_USING_TPWM0
  93. select BSP_USING_TPWM
  94. select RT_USING_PWM
  95. bool "TIMER PWM"
  96. help
  97. Choose this option if you need PWM function mode.
  98. config BSP_USING_TIMER0_CAPTURE
  99. select BSP_USING_TIMER_CAPTURE
  100. select RT_USING_INPUT_CAPTURE
  101. bool "TIMER CAPTURE"
  102. help
  103. Choose this option if you need CAPTURE function mode.
  104. endchoice
  105. endif
  106. config BSP_USING_TMR1
  107. bool "Enable TIMER1"
  108. if BSP_USING_TMR1
  109. choice
  110. prompt "Select TIMER1 function mode"
  111. config BSP_USING_TIMER1
  112. select BSP_USING_TIMER
  113. select RT_USING_HWTIMER
  114. bool "TIMER"
  115. help
  116. Choose this option if you need TIMER function mode.
  117. config BSP_USING_TPWM1
  118. select BSP_USING_TPWM
  119. select RT_USING_PWM
  120. bool "TIMER PWM"
  121. help
  122. Choose this option if you need PWM function mode.
  123. config BSP_USING_TIMER1_CAPTURE
  124. select BSP_USING_TIMER_CAPTURE
  125. select RT_USING_INPUT_CAPTURE
  126. bool "TIMER CAPTURE"
  127. help
  128. Choose this option if you need CAPTURE function mode.
  129. endchoice
  130. endif
  131. config BSP_USING_TMR2
  132. bool "Enable TIMER2"
  133. if BSP_USING_TMR2
  134. choice
  135. prompt "Select TIMER2 function mode"
  136. config BSP_USING_TIMER2
  137. select BSP_USING_TIMER
  138. select RT_USING_HWTIMER
  139. bool "TIMER"
  140. help
  141. Choose this option if you need TIMER function mode.
  142. config BSP_USING_TPWM2
  143. select BSP_USING_TPWM
  144. select RT_USING_PWM
  145. bool "TIMER PWM"
  146. help
  147. Choose this option if you need PWM function mode.
  148. config BSP_USING_TIMER2_CAPTURE
  149. select BSP_USING_TIMER_CAPTURE
  150. select RT_USING_INPUT_CAPTURE
  151. bool "TIMER CAPTURE"
  152. help
  153. Choose this option if you need CAPTURE function mode.
  154. endchoice
  155. endif
  156. config BSP_USING_TMR3
  157. bool "Enable TIMER3"
  158. if BSP_USING_TMR3
  159. choice
  160. prompt "Select TIMER3 function mode"
  161. config BSP_USING_TIMER3
  162. select BSP_USING_TIMER
  163. select RT_USING_HWTIMER
  164. bool "TIMER"
  165. help
  166. Choose this option if you need TIMER function mode.
  167. config BSP_USING_TPWM3
  168. select BSP_USING_TPWM
  169. select RT_USING_PWM
  170. bool "TIMER PWM"
  171. help
  172. Choose this option if you need PWM function mode.
  173. config BSP_USING_TIMER3_CAPTURE
  174. select BSP_USING_TIMER_CAPTURE
  175. select RT_USING_INPUT_CAPTURE
  176. bool "TIMER CAPTURE"
  177. help
  178. Choose this option if you need CAPTURE function mode.
  179. endchoice
  180. endif
  181. endif
  182. menuconfig BSP_USING_UART
  183. bool "Enable Universal Asynchronous Receiver/Transmitters(UART)"
  184. select RT_USING_SERIAL
  185. if BSP_USING_UART
  186. config BSP_USING_UART0
  187. bool "Enable UART0"
  188. config BSP_USING_UART0_TX_DMA
  189. bool "Enable UART0 TX DMA"
  190. depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA
  191. config BSP_USING_UART0_RX_DMA
  192. bool "Enable UART0 RX DMA"
  193. depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA
  194. config BSP_USING_UART1
  195. bool "Enable UART1"
  196. config BSP_USING_UART1_TX_DMA
  197. bool "Enable UART1 TX DMA"
  198. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  199. config BSP_USING_UART1_RX_DMA
  200. bool "Enable UART1 RX DMA"
  201. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  202. config BSP_USING_UART2
  203. bool "Enable UART2"
  204. config BSP_USING_UART2_TX_DMA
  205. bool "Enable UART2 TX DMA"
  206. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  207. config BSP_USING_UART2_RX_DMA
  208. bool "Enable UART2 RX DMA"
  209. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  210. config BSP_USING_UART3
  211. bool "Enable UART3"
  212. config BSP_USING_UART3_TX_DMA
  213. bool "Enable UART3 TX DMA"
  214. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  215. config BSP_USING_UART3_RX_DMA
  216. bool "Enable UART3 RX DMA"
  217. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  218. config BSP_USING_UART4
  219. bool "Enable UART4"
  220. config BSP_USING_UART4_TX_DMA
  221. bool "Enable UART4 TX DMA"
  222. depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA
  223. config BSP_USING_UART4_RX_DMA
  224. bool "Enable UART4 RX DMA"
  225. depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA
  226. config BSP_USING_UART5
  227. bool "Enable UART5"
  228. config BSP_USING_UART5_TX_DMA
  229. bool "Enable UART5 TX DMA"
  230. depends on BSP_USING_UART5 && RT_SERIAL_USING_DMA
  231. config BSP_USING_UART5_RX_DMA
  232. bool "Enable UART5 RX DMA"
  233. depends on BSP_USING_UART5 && RT_SERIAL_USING_DMA
  234. config BSP_USING_UART6
  235. bool "Enable UART6"
  236. config BSP_USING_UART6_TX_DMA
  237. bool "Enable UART6 TX DMA"
  238. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  239. config BSP_USING_UART6_RX_DMA
  240. bool "Enable UART6 RX DMA"
  241. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  242. config BSP_USING_UART7
  243. bool "Enable UART7"
  244. config BSP_USING_UART7_TX_DMA
  245. bool "Enable UART7 TX DMA"
  246. depends on BSP_USING_UART7 && RT_SERIAL_USING_DMA
  247. config BSP_USING_UART7_RX_DMA
  248. bool "Enable UART7 RX DMA"
  249. depends on BSP_USING_UART7 && RT_SERIAL_USING_DMA
  250. config BSP_USING_UART8
  251. bool "Enable UART8"
  252. config BSP_USING_UART8_TX_DMA
  253. bool "Enable UART8 TX DMA"
  254. depends on BSP_USING_UART8 && RT_SERIAL_USING_DMA
  255. config BSP_USING_UART8_RX_DMA
  256. bool "Enable UART8 RX DMA"
  257. depends on BSP_USING_UART8 && RT_SERIAL_USING_DMA
  258. config BSP_USING_UART9
  259. bool "Enable UART9"
  260. config BSP_USING_UART9_TX_DMA
  261. bool "Enable UART9 TX DMA"
  262. depends on BSP_USING_UART9 && RT_SERIAL_USING_DMA
  263. config BSP_USING_UART9_RX_DMA
  264. bool "Enable UART9 RX DMA"
  265. depends on BSP_USING_UART9 && RT_SERIAL_USING_DMA
  266. endif
  267. menuconfig BSP_USING_I2C
  268. bool "Enable I2C Serial Interface Controller(I2C)"
  269. select RT_USING_I2C
  270. if BSP_USING_I2C
  271. config BSP_USING_I2C0
  272. bool "Enable I2C0"
  273. config BSP_USING_I2C1
  274. bool "Enable I2C1"
  275. config BSP_USING_I2C2
  276. bool "Enable I2C2"
  277. config BSP_USING_I2C3
  278. bool "Enable I2C3"
  279. config BSP_USING_I2C4
  280. bool "Enable I2C4"
  281. endif
  282. menuconfig BSP_USING_USCI
  283. bool "Enable Universal Serial Control Interface Controller(USCI)"
  284. if BSP_USING_USCI
  285. config BSP_USING_UUART
  286. bool
  287. config BSP_USING_USPI
  288. bool
  289. config BSP_USING_USPI_PDMA
  290. bool
  291. default n
  292. config BSP_USING_UI2C
  293. bool
  294. config BSP_USING_USCI0
  295. bool "Enable USCI0"
  296. if BSP_USING_USCI0
  297. choice
  298. prompt "Select USCI0 function mode"
  299. config BSP_USING_UUART0
  300. select RT_USING_SERIAL
  301. select BSP_USING_UUART
  302. bool "UUART0"
  303. help
  304. Choose this option if you need UART function mode.
  305. config BSP_USING_UI2C0
  306. select RT_USING_I2C
  307. select BSP_USING_UI2C
  308. bool "UI2C0"
  309. help
  310. Choose this option if you need I2C function mode.
  311. config BSP_USING_USPI0
  312. select RT_USING_SPI
  313. select BSP_USING_USPI
  314. bool "USPI0"
  315. help
  316. Choose this option if you need SPI function mode.
  317. endchoice
  318. config BSP_USING_UUART0_TX_DMA
  319. bool "Enable UUART0 TX DMA"
  320. depends on BSP_USING_UUART0 && RT_SERIAL_USING_DMA
  321. config BSP_USING_UUART0_RX_DMA
  322. bool "Enable UUART0 RX DMA"
  323. depends on BSP_USING_UUART0 && RT_SERIAL_USING_DMA
  324. config BSP_USING_USPI0_PDMA
  325. bool "Use PDMA for data transferring"
  326. select BSP_USING_USPI_PDMA
  327. depends on BSP_USING_USPI0
  328. endif
  329. endif
  330. menuconfig BSP_USING_SDH
  331. bool "Enable Secure Digital Host Controller(SDH)"
  332. select RT_USING_DFS
  333. select RT_USING_SDIO
  334. if BSP_USING_SDH
  335. config BSP_USING_SDH0
  336. bool "Enable SDH0"
  337. config BSP_USING_SDH1
  338. bool "Enable SDH1"
  339. endif
  340. menuconfig BSP_USING_CANFD
  341. bool "Enable CAN with Flexible Data-rate(CAN FD)"
  342. select RT_USING_CAN
  343. if BSP_USING_CANFD
  344. config BSP_USING_CANFD0
  345. bool "Enable CANFD0"
  346. config BSP_USING_CANFD1
  347. bool "Enable CANFD1"
  348. config BSP_USING_CANFD2
  349. bool "Enable CANFD2"
  350. config BSP_USING_CANFD3
  351. bool "Enable CANFD3"
  352. endif
  353. menuconfig BSP_USING_BPWM
  354. bool "Enable Basic PWM Generator and Capture Timer(BPWM)"
  355. select RT_USING_PWM
  356. if BSP_USING_BPWM
  357. config BSP_USING_BPWM_CAPTURE
  358. bool
  359. choice
  360. prompt "Select BPWM0 function mode"
  361. config BSP_USING_BPWM0_NONE
  362. bool "Disable BPWM0"
  363. help
  364. Choose this option if you need not any function mode.
  365. config BSP_USING_BPWM0
  366. select RT_USING_PWM
  367. bool "Enable BPWM0"
  368. help
  369. Choose this option if you need PWM function mode.
  370. config BSP_USING_BPWM0_CAPTURE
  371. select RT_USING_INPUT_CAPTURE
  372. select BSP_USING_BPWM_CAPTURE
  373. bool "Enable BPWM0_CAPTURE"
  374. help
  375. Choose this option if you need PWM capture function mode.
  376. endchoice
  377. choice
  378. prompt "Select BPWM1 function mode"
  379. config BSP_USING_BPWM1_NONE
  380. bool "Disable BPWM1"
  381. help
  382. Choose this option if you need not any function mode.
  383. config BSP_USING_BPWM1
  384. select RT_USING_PWM
  385. bool "Enable BPWM1"
  386. help
  387. Choose this option if you need PWM function mode.
  388. config BSP_USING_BPWM1_CAPTURE
  389. select RT_USING_INPUT_CAPTURE
  390. select BSP_USING_BPWM_CAPTURE
  391. bool "Enable BPWM1_CAPTURE"
  392. help
  393. Choose this option if you need PWM capture function mode.
  394. endchoice
  395. endif
  396. menuconfig BSP_USING_EPWM
  397. bool "Enable EPWM Generator and Capture Timer(EPWM)"
  398. if BSP_USING_EPWM
  399. config BSP_USING_EPWM_CAPTURE
  400. bool
  401. choice
  402. prompt "Select EPWM0 function mode"
  403. config BSP_USING_EPWM0_NONE
  404. bool "Disable EPWM0"
  405. help
  406. Choose this option if you need not any function mode.
  407. config BSP_USING_EPWM0
  408. select RT_USING_PWM
  409. bool "Enable EPWM0"
  410. help
  411. Choose this option if you need PWM function mode.
  412. config BSP_USING_EPWM0_CAPTURE
  413. select RT_USING_INPUT_CAPTURE
  414. select BSP_USING_EPWM_CAPTURE
  415. bool "Enable EPWM0_CAPTURE"
  416. help
  417. Choose this option if you need PWM capture function mode.
  418. endchoice
  419. choice
  420. prompt "Select EPWM1 function mode"
  421. config BSP_USING_EPWM1_NONE
  422. bool "Disable EPWM1"
  423. help
  424. Choose this option if you need not any function mode.
  425. config BSP_USING_EPWM1
  426. select RT_USING_PWM
  427. bool "Enable EPWM1"
  428. help
  429. Choose this option if you need PWM function mode.
  430. config BSP_USING_EPWM1_CAPTURE
  431. select RT_USING_INPUT_CAPTURE
  432. select BSP_USING_EPWM_CAPTURE
  433. bool "Enable EPWM1_CAPTURE"
  434. help
  435. Choose this option if you need PWM capture function mode.
  436. endchoice
  437. endif
  438. menuconfig BSP_USING_SPI
  439. bool "Enable Serial Peripheral Interface(SPI)"
  440. select RT_USING_SPI
  441. if BSP_USING_SPI
  442. config BSP_USING_SPI_PDMA
  443. bool
  444. default n
  445. config BSP_USING_SPII2S
  446. bool
  447. default n
  448. choice
  449. prompt "Select SPI0 function mode"
  450. config BSP_USING_SPI0_NONE
  451. bool "NONE"
  452. help
  453. Choose this option if you need not SPI0.
  454. config BSP_USING_SPI0
  455. bool "Enable SPI0"
  456. help
  457. Choose this option if you need SPI function mode.
  458. config BSP_USING_SPII2S0
  459. select RT_USING_AUDIO
  460. select BSP_USING_SPII2S
  461. bool "Enable SPII2S0"
  462. help
  463. Choose this option if you need SPII2S function mode.
  464. endchoice
  465. if BSP_USING_SPI0
  466. config BSP_USING_SPI0_PDMA
  467. bool "Enable PDMA for SPI0"
  468. select BSP_USING_SPI_PDMA
  469. depends on BSP_USING_SPI0
  470. endif
  471. choice
  472. prompt "Select SPI1 function mode"
  473. config BSP_USING_SPI1_NONE
  474. bool "NONE"
  475. help
  476. Choose this option if you need not SPI1.
  477. config BSP_USING_SPI1
  478. bool "Enable SPI1"
  479. help
  480. Choose this option if you need SPI function mode.
  481. config BSP_USING_SPII2S1
  482. select RT_USING_AUDIO
  483. select BSP_USING_SPII2S
  484. bool "Enable SPII2S1"
  485. help
  486. Choose this option if you need SPII2S function mode.
  487. endchoice
  488. if BSP_USING_SPI1
  489. config BSP_USING_SPI1_PDMA
  490. bool "Enable PDMA for SPI1"
  491. select BSP_USING_SPI_PDMA
  492. depends on BSP_USING_SPI1
  493. endif
  494. choice
  495. prompt "Select SPI2 function mode"
  496. config BSP_USING_SPI2_NONE
  497. bool "NONE"
  498. help
  499. Choose this option if you need not SPI2.
  500. config BSP_USING_SPI2
  501. bool "Enable SPI2"
  502. help
  503. Choose this option if you need SPI function mode.
  504. config BSP_USING_SPII2S2
  505. select RT_USING_AUDIO
  506. select BSP_USING_SPII2S
  507. bool "Enable SPII2S2"
  508. help
  509. Choose this option if you need SPII2S function mode.
  510. endchoice
  511. if BSP_USING_SPI2
  512. config BSP_USING_SPI2_PDMA
  513. bool "Enable PDMA for SPI2"
  514. select BSP_USING_SPI_PDMA
  515. depends on BSP_USING_SPI2
  516. endif
  517. choice
  518. prompt "Select SPI3 function mode"
  519. config BSP_USING_SPI3_NONE
  520. bool "NONE"
  521. help
  522. Choose this option if you need not SPI3.
  523. config BSP_USING_SPI3
  524. bool "Enable SPI3"
  525. help
  526. Choose this option if you need SPI function mode.
  527. config BSP_USING_SPII2S3
  528. select RT_USING_AUDIO
  529. select BSP_USING_SPII2S
  530. bool "Enable SPII2S3"
  531. help
  532. Choose this option if you need SPII2S function mode.
  533. endchoice
  534. if BSP_USING_SPI3
  535. config BSP_USING_SPI3_PDMA
  536. bool "Enable PDMA for SPI3"
  537. select BSP_USING_SPI_PDMA
  538. depends on BSP_USING_SPI3
  539. endif
  540. choice
  541. prompt "Select SPI4 function mode"
  542. config BSP_USING_SPI4_NONE
  543. bool "NONE"
  544. help
  545. Choose this option if you need not SPI4.
  546. config BSP_USING_SPI4
  547. bool "Enable SPI4"
  548. help
  549. Choose this option if you need SPI function mode.
  550. config BSP_USING_SPII2S4
  551. select RT_USING_AUDIO
  552. select BSP_USING_SPII2S
  553. bool "Enable SPII2S4"
  554. help
  555. Choose this option if you need SPII2S function mode.
  556. endchoice
  557. if BSP_USING_SPI4
  558. config BSP_USING_SPI4_PDMA
  559. bool "Enable PDMA for SPI4"
  560. select BSP_USING_SPI_PDMA
  561. depends on BSP_USING_SPI4
  562. endif
  563. choice
  564. prompt "Select SPI5 function mode"
  565. config BSP_USING_SPI5_NONE
  566. bool "NONE"
  567. help
  568. Choose this option if you need not SPI5.
  569. config BSP_USING_SPI5
  570. bool "Enable SPI5"
  571. help
  572. Choose this option if you need SPI function mode.
  573. config BSP_USING_SPII2S5
  574. select RT_USING_AUDIO
  575. select BSP_USING_SPII2S
  576. bool "Enable SPII2S5"
  577. help
  578. Choose this option if you need SPII2S function mode.
  579. endchoice
  580. if BSP_USING_SPI5
  581. config BSP_USING_SPI5_PDMA
  582. bool "Enable PDMA for SPI5"
  583. select BSP_USING_SPI_PDMA
  584. depends on BSP_USING_SPI5
  585. endif
  586. choice
  587. prompt "Select SPI6 function mode"
  588. config BSP_USING_SPI6_NONE
  589. bool "NONE"
  590. help
  591. Choose this option if you need not SPI6.
  592. config BSP_USING_SPI6
  593. bool "Enable SPI6"
  594. help
  595. Choose this option if you need SPI function mode.
  596. config BSP_USING_SPII2S6
  597. select RT_USING_AUDIO
  598. select BSP_USING_SPII2S
  599. bool "Enable SPII2S6"
  600. help
  601. Choose this option if you need SPII2S function mode.
  602. endchoice
  603. if BSP_USING_SPI6
  604. config BSP_USING_SPI6_PDMA
  605. bool "Enable PDMA for SPI6"
  606. select BSP_USING_SPI_PDMA
  607. depends on BSP_USING_SPI6
  608. endif
  609. choice
  610. prompt "Select SPI7 function mode"
  611. config BSP_USING_SPI7_NONE
  612. bool "NONE"
  613. help
  614. Choose this option if you need not SPI7.
  615. config BSP_USING_SPI7
  616. bool "Enable SPI7"
  617. help
  618. Choose this option if you need SPI function mode.
  619. config BSP_USING_SPII2S7
  620. select RT_USING_AUDIO
  621. select BSP_USING_SPII2S
  622. bool "Enable SPII2S7"
  623. help
  624. Choose this option if you need SPII2S function mode.
  625. endchoice
  626. if BSP_USING_SPI7
  627. config BSP_USING_SPI7_PDMA
  628. bool "Enable PDMA for SPI7"
  629. select BSP_USING_SPI_PDMA
  630. depends on BSP_USING_SPI7
  631. endif
  632. choice
  633. prompt "Select SPI8 function mode"
  634. config BSP_USING_SPI8_NONE
  635. bool "NONE"
  636. help
  637. Choose this option if you need not SPI8.
  638. config BSP_USING_SPI8
  639. bool "Enable SPI8"
  640. help
  641. Choose this option if you need SPI function mode.
  642. config BSP_USING_SPII2S8
  643. select RT_USING_AUDIO
  644. select BSP_USING_SPII2S
  645. bool "Enable SPII2S8"
  646. help
  647. Choose this option if you need SPII2S function mode.
  648. endchoice
  649. if BSP_USING_SPI8
  650. config BSP_USING_SPI8_PDMA
  651. bool "Enable PDMA for SPI8"
  652. select BSP_USING_SPI_PDMA
  653. depends on BSP_USING_SPI8
  654. endif
  655. choice
  656. prompt "Select SPI9 function mode"
  657. config BSP_USING_SPI9_NONE
  658. bool "NONE"
  659. help
  660. Choose this option if you need not SPI9.
  661. config BSP_USING_SPI9
  662. bool "Enable SPI9"
  663. help
  664. Choose this option if you need SPI function mode.
  665. config BSP_USING_SPII2S9
  666. select RT_USING_AUDIO
  667. select BSP_USING_SPII2S
  668. bool "Enable SPII2S9"
  669. help
  670. Choose this option if you need SPII2S function mode.
  671. endchoice
  672. if BSP_USING_SPI9
  673. config BSP_USING_SPI9_PDMA
  674. bool "Enable PDMA for SPI9"
  675. select BSP_USING_SPI_PDMA
  676. depends on BSP_USING_SPI9
  677. endif
  678. choice
  679. prompt "Select SPI10 function mode"
  680. config BSP_USING_SPI10_NONE
  681. bool "NONE"
  682. help
  683. Choose this option if you need not SPI10.
  684. config BSP_USING_SPI10
  685. bool "Enable SPI10"
  686. help
  687. Choose this option if you need SPI function mode.
  688. config BSP_USING_SPII2S10
  689. select RT_USING_AUDIO
  690. select BSP_USING_SPII2S
  691. bool "Enable SPII2S10"
  692. help
  693. Choose this option if you need SPII2S function mode.
  694. endchoice
  695. if BSP_USING_SPI10
  696. config BSP_USING_SPI10_PDMA
  697. bool "Enable PDMA for SPI10"
  698. select BSP_USING_SPI_PDMA
  699. depends on BSP_USING_SPI10
  700. endif
  701. endif
  702. menuconfig BSP_USING_I2S
  703. bool "Enable I2S Controller(I2S)"
  704. select RT_USING_AUDIO
  705. select BSP_USING_PDMA
  706. if BSP_USING_I2S
  707. config BSP_USING_I2S0
  708. bool "Enable I2S0"
  709. config BSP_USING_I2S1
  710. bool "Enable I2S1"
  711. endif
  712. if BSP_USING_I2S || BSP_USING_SPII2S
  713. config NU_I2S_DMA_FIFO_SIZE
  714. int "DMA Buffer size of capture and playback"
  715. range 2048 4096
  716. default 2048
  717. endif
  718. menuconfig BSP_USING_QSPI
  719. bool "Enable Quad Serial Peripheral Interface(QSPI)"
  720. select RT_USING_SPI
  721. select RT_USING_QSPI
  722. select BSP_USING_SPI
  723. if BSP_USING_QSPI
  724. config BSP_USING_QSPI0
  725. bool "Enable QSPI0"
  726. config BSP_USING_QSPI0_PDMA
  727. bool "Enable PDMA for QSPI0"
  728. select BSP_USING_SPI_PDMA
  729. depends on BSP_USING_QSPI0
  730. config BSP_USING_QSPI1
  731. bool "Enable QSPI1"
  732. config BSP_USING_QSPI1_PDMA
  733. bool "Enable PDMA for QSPI1"
  734. select BSP_USING_SPI_PDMA
  735. depends on BSP_USING_QSPI1
  736. endif
  737. menuconfig BSP_USING_SCUART
  738. bool "Enable Smart Card Host Interface - UART(SCUART)"
  739. if BSP_USING_SCUART
  740. config BSP_USING_SCUART0
  741. bool "Enable SCUART0"
  742. config BSP_USING_SCUART1
  743. bool "Enable SCUART1"
  744. config BSP_USING_SCUART2
  745. bool "Enable SCUART2"
  746. endif
  747. menuconfig BSP_USING_ECAP
  748. bool "Enable Enhanced Input Capture Timer(ECAP)"
  749. if BSP_USING_ECAP
  750. config BSP_USING_ECAP0
  751. select RT_USING_INPUT_CAPTURE
  752. bool "Enable ECAP0"
  753. help
  754. Choose this option if you need ECAP0.
  755. config BSP_USING_ECAP1
  756. select RT_USING_INPUT_CAPTURE
  757. bool "Enable ECAP1"
  758. help
  759. Choose this option if you need ECAP1.
  760. config BSP_USING_ECAP2
  761. select RT_USING_INPUT_CAPTURE
  762. bool "Enable ECAP2"
  763. help
  764. Choose this option if you need ECAP2.
  765. config BSP_USING_ECAP3
  766. select RT_USING_INPUT_CAPTURE
  767. bool "Enable ECAP3"
  768. help
  769. Choose this option if you need ECAP3.
  770. endif
  771. menuconfig BSP_USING_EQEI
  772. bool "Enable Adve Quadrature Encoder Interface(EQEI)"
  773. if BSP_USING_EQEI
  774. config BSP_USING_EQEI0
  775. bool "Enable EQEI0"
  776. select RT_USING_PULSE_ENCODER
  777. config BSP_USING_EQEI1
  778. bool "Enable EQEI1"
  779. select RT_USING_PULSE_ENCODER
  780. config BSP_USING_EQEI2
  781. bool "Enable EQEI2"
  782. select RT_USING_PULSE_ENCODER
  783. config BSP_USING_EQEI3
  784. bool "Enable EQEI3"
  785. select RT_USING_PULSE_ENCODER
  786. endif
  787. menuconfig BSP_USING_CRYPTO
  788. bool "Enable Cryptographic Accelerator(CRYPTO)"
  789. select RT_USING_HWCRYPTO
  790. select RT_HWCRYPTO_USING_AES
  791. select RT_HWCRYPTO_USING_AES_ECB
  792. select RT_HWCRYPTO_USING_AES_CBC
  793. select RT_HWCRYPTO_USING_AES_CFB
  794. select RT_HWCRYPTO_USING_AES_CTR
  795. select RT_HWCRYPTO_USING_AES_CFB
  796. select RT_HWCRYPTO_USING_AES_OFB
  797. select RT_HWCRYPTO_USING_DES
  798. select RT_HWCRYPTO_USING_DES_ECB
  799. select RT_HWCRYPTO_USING_DES_CBC
  800. select RT_HWCRYPTO_USING_3DES
  801. select RT_HWCRYPTO_USING_3DES_ECB
  802. select RT_HWCRYPTO_USING_3DES_CBC
  803. select RT_HWCRYPTO_USING_SHA1
  804. select RT_HWCRYPTO_USING_SHA2
  805. select RT_HWCRYPTO_USING_SHA2_224
  806. select RT_HWCRYPTO_USING_SHA2_256
  807. select RT_HWCRYPTO_USING_SHA2_384
  808. select RT_HWCRYPTO_USING_SHA2_512
  809. select RT_HWCRYPTO_USING_RNG
  810. if BSP_USING_CRYPTO
  811. config NU_PRNG_USE_SEED
  812. bool "Use specified seed value."
  813. help
  814. Specify the seed value to PRNG.
  815. if NU_PRNG_USE_SEED
  816. config NU_PRNG_SEED_VALUE
  817. hex "Enter seed value"
  818. range 0 0xFFFFFFFF
  819. default 0
  820. endif
  821. endif
  822. config BSP_USING_TRNG
  823. bool "Enable True Random Number Generator(TRNG)"
  824. select BSP_USING_CRYPTO
  825. select RT_USING_HWCRYPTO
  826. select RT_HWCRYPTO_USING_RNG
  827. menuconfig BSP_USING_CRC
  828. bool "Enable Cyclic Redundancy Check Generator(CRC)"
  829. select BSP_USING_CRYPTO
  830. select RT_USING_HWCRYPTO
  831. select RT_HWCRYPTO_USING_CRC
  832. select RT_HWCRYPTO_USING_CRC_07
  833. select RT_HWCRYPTO_USING_CRC_8005
  834. select RT_HWCRYPTO_USING_CRC_1021
  835. select RT_HWCRYPTO_USING_CRC_04C11DB7
  836. if BSP_USING_CRC
  837. config NU_CRC_USE_PDMA
  838. bool "Use PDMA for data transferring."
  839. select BSP_USING_PDMA
  840. default y
  841. endif
  842. menuconfig BSP_USING_SOFT_I2C
  843. bool "Enable SOFT I2C"
  844. if BSP_USING_SOFT_I2C
  845. config BSP_USING_SOFT_I2C0
  846. bool "Enable SOFT I2C0"
  847. select RT_USING_I2C
  848. select RT_USING_I2C_BITOPS
  849. default n
  850. if BSP_USING_SOFT_I2C0
  851. config BSP_SOFT_I2C0_SCL_PIN
  852. hex "Specify the pin index of SCL of SOFT I2C0"
  853. range 0 0x7F
  854. default 0x18
  855. config BSP_SOFT_I2C0_SDA_PIN
  856. hex "Specify the pin index of SDA of SOFT I2C0"
  857. range 0 0x7F
  858. default 0x17
  859. endif
  860. config BSP_USING_SOFT_I2C1
  861. bool "Enable SOFT I2C1"
  862. select RT_USING_I2C
  863. select RT_USING_I2C_BITOPS
  864. default n
  865. if BSP_USING_SOFT_I2C1
  866. config BSP_SOFT_I2C1_SCL_PIN
  867. hex "Specify the pin index of SCL of SOFT I2C1"
  868. range 0 0x7F
  869. default 0x0B
  870. config BSP_SOFT_I2C1_SDA_PIN
  871. hex "Specify the pin index of SDA of SOFT I2C1"
  872. range 0 0x7F
  873. default 0x0A
  874. endif
  875. endif
  876. config BSP_USING_WDT
  877. bool "Enable Watchdog Timer(WDT)"
  878. select RT_USING_WDT
  879. default y
  880. config BSP_USING_EBI
  881. bool "Enable External Bus Interface(EBI)"
  882. default n
  883. config BSP_USING_HBI
  884. bool "Enable HyperBus Interface(HBI)"
  885. default y
  886. config BSP_USING_USBD
  887. bool "Enable Full-Speed USB Device Controller(USBD)"
  888. select RT_USING_USB_DEVICE
  889. config BSP_USING_HSUSBD
  890. bool "Enable High-Speed USB Device Controller(HSUSBD)"
  891. select RT_USING_USB_DEVICE
  892. config BSP_USING_USBH
  893. bool "Enable Full-Speed USB Host Controller(USBH)"
  894. select RT_USING_USB_HOST
  895. select RT_USBH_MSTORAGE
  896. config BSP_USING_HSUSBH
  897. bool "Enable High-Speed USB Host Controller(HSUSBH)"
  898. select RT_USING_USB_HOST
  899. select RT_USBH_MSTORAGE
  900. if BSP_USING_USBH || BSP_USING_HSUSBH
  901. config NU_USBHOST_HUB_POLLING_INTERVAL
  902. int "USB Root Hub Polling Interval(in Mili-seconds)"
  903. range 100 2000
  904. default 100
  905. endif
  906. config BSP_USING_HSOTG
  907. bool "Enable High-Speed USB On-The-Go(HSOTG)"
  908. select BSP_USING_HSUSBH
  909. select BSP_USING_HSUSBD