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