summaryrefslogtreecommitdiff
path: root/bsp/nuvoton/libraries/ma35/rtt_port/Kconfig
blob: b2bb0c0b51e7e687343fc684a9dcabc0076c06c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
    config SOC_SERIES_MA35D1
        bool
        select SOC_FAMILY_NUMICRO
        select RT_USING_COMPONENTS_INIT
        select RT_USING_USER_MAIN
        select PKG_USING_NUVOTON_SERIES_DRIVER
        default y

    config BSP_USING_SSPCC
        bool
        depends on SOC_SERIES_MA35D1 && !USE_MA35D1_SUBM
        default y

    config BSP_USING_SSMCC
        bool
        depends on SOC_SERIES_MA35D1 && !USE_MA35D1_SUBM
        default y

    config BSP_USING_UMCTL2
        bool
        depends on SOC_SERIES_MA35D1 && !USE_MA35D1_SUBM
        default y

    config BSP_USING_RTP
        bool
        depends on SOC_SERIES_MA35D1 && !USE_MA35D1_SUBM
        default y

    if BSP_USING_RTP
        config RTP_USING_AT_STARTUP
            bool "Enable RTP Executation at startup"
            default y
    endif

    config USE_MA35D1_AARCH32
        bool
        select ARCH_ARM_CORTEX_A
        select RT_USING_GIC_V2
        select RT_USING_FPU
        select ARCH_ARMV8
        select RT_SMP_AUTO_BOOT

    config USE_MA35D1_AARCH64
        bool
        select ARCH_ARMV8

    if USE_MA35D1_AARCH64
        config BSP_USING_GIC
            bool
            default y
        config BSP_USING_GICV2
            bool
            default y
    endif

    config USE_MA35D1_SUBM
        bool
        select ARCH_ARM_CORTEX_M4

    config RT_USING_FPU
        bool

    config BSP_USE_STDDRIVER_SOURCE
        bool "Build StdDriver source"
        default n

    menuconfig BSP_USING_PDMA
        bool "Enable Peripheral Direct Memory Access Controller(PDMA)"
        default y

        if BSP_USING_PDMA
            config BSP_USING_PDMA0
                bool "Enable PDMA0"
                depends on !USE_MA35D1_SUBM

            config BSP_USING_PDMA1
                bool "Enable PDMA1"
                depends on !USE_MA35D1_SUBM

            config BSP_USING_PDMA2
                bool "Enable PDMA2"

            config BSP_USING_PDMA3
                bool "Enable PDMA3"

            config  NU_PDMA_MEMFUN_ACTOR_MAX
                int "Specify maximum mem actor for memfun"
                range 1 4
                default 2
        endif

    config BSP_USING_GPIO
        bool "Enable General Purpose I/O(GPIO)"
        select RT_USING_PIN
        default y

    menuconfig BSP_USING_GMAC
        bool "Enable Ethernet Gigabit MAC Controller(GMAC)"
        select RT_USING_LWIP
        select RT_USING_NETDEV
        depends on !USE_MA35D1_SUBM

        if BSP_USING_GMAC
            config BSP_USING_GMAC0
                bool "Enable GMAC0"

            config BSP_USING_GMAC1
                bool "Enable GMAC1"
        endif

    menuconfig BSP_USING_RTC
        bool "Enable Real Time Clock(RTC)"
        select RT_USING_RTC

        config NU_RTC_SUPPORT_IO_RW
            bool "Support device RW entry"
            depends on BSP_USING_RTC && RT_USING_RTC

        config NU_RTC_SUPPORT_MSH_CMD
            bool "Support module shell command"
            depends on BSP_USING_RTC && RT_USING_RTC

    menuconfig BSP_USING_ADC
        bool "Enable Analog-to-Digital Converter(ADC)"
        select RT_USING_ADC
        depends on !USE_MA35D1_SUBM

        if BSP_USING_ADC
            config BSP_USING_ADC_TOUCH
            bool "Enable ADC Touching function"
            select RT_USING_TOUCH
            default y
        endif

    menuconfig BSP_USING_CCAP
        bool "Enable Camera Capture Interface Controller(CCAP)"
        select RT_USING_PIN
        depends on !USE_MA35D1_SUBM

        if BSP_USING_CCAP
            config BSP_USING_CCAP0
                bool "Enable CCAP0"
            config BSP_USING_CCAP1
                bool "Enable CCAP1"
        endif
    menuconfig BSP_USING_EADC
        bool "Enable Enhanced Analog-to-Digital Converter(EADC)"
        select RT_USING_ADC

        if BSP_USING_EADC
            config BSP_USING_EADC0
                bool "Enable EADC0"
        endif

    menuconfig BSP_USING_TMR
        bool "Enable Timer Controller(TIMER)"

    if BSP_USING_TMR

        config BSP_USING_TIMER
            bool

        config BSP_USING_TPWM
            bool

        config BSP_USING_TMR0
            bool "Enable TIMER0"
            depends on BSP_USING_TMR && !USE_MA35D1_SUBM

        if BSP_USING_TMR0
            choice BSP_TIMER0_FUNC_SEL
                prompt "Select TIMER0 function mode"

                config BSP_USING_TIMER0
                    select BSP_USING_TIMER
                    select RT_USING_CLOCK_TIME
                    bool "Timer"
                    help
                    Choose this option if you need TIMER function mode.

                config BSP_USING_TPWM0
                    select BSP_USING_TPWM
                    select RT_USING_PWM
                    bool "Timer PWM"
                    help
                    Choose this option if you need Timer PWM function mode.

            endchoice
        endif

        config BSP_USING_TMR1
            bool "Enable TIMER1"
            depends on BSP_USING_TMR && !USE_MA35D1_SUBM

        if BSP_USING_TMR1
            choice BSP_TIMER1_FUNC_SEL
                prompt "Select TIMER1 function mode"

                config BSP_USING_TIMER1
                    select BSP_USING_TIMER
                    select RT_USING_CLOCK_TIME
                    bool "Timer"
                    help
                    Choose this option if you need TIMER function mode.

                config BSP_USING_TPWM1
                    select BSP_USING_TPWM
                    select RT_USING_PWM
                    bool "Timer PWM"
                    help
                    Choose this option if you need Timer PWM function mode.
            endchoice
         endif

        config BSP_USING_TMR2
            bool "Enable TIMER2"
            depends on BSP_USING_TMR

         if BSP_USING_TMR2
            choice BSP_TIMER2_FUNC_SEL
                prompt "Select TIMER2 function mode"

                config BSP_USING_TIMER2
                    select BSP_USING_TIMER
                    select RT_USING_CLOCK_TIME
                    bool "Timer"
                    help
                        Choose this option if you need TIMER function mode.

                config BSP_USING_TPWM2
                    select BSP_USING_TPWM
                    select RT_USING_PWM
                    bool "Timer PWM"
                    help
                    Choose this option if you need Timer PWM function mode.
            endchoice
        endif

        config BSP_USING_TMR3
            bool "Enable TIMER3"
            depends on BSP_USING_TMR

        if BSP_USING_TMR3
            choice BSP_TIMER3_FUNC_SEL
                prompt "Select TIMER3 function mode"

                config BSP_USING_TIMER3
                    select BSP_USING_TIMER
                    select RT_USING_CLOCK_TIME
                    bool "Timer"
                    help
                        Choose this option if you need TIMER function mode.

                config BSP_USING_TPWM3
                    select BSP_USING_TPWM
                    select RT_USING_PWM
                    bool "Timer PWM"
                    help
                    Choose this option if you need Timer PWM function mode.
            endchoice
        endif

        config BSP_USING_TMR4
            bool "Enable TIMER4"
            depends on BSP_USING_TMR

        if BSP_USING_TMR4
            choice BSP_TIMER4_FUNC_SEL
                prompt "Select TIMER4 function mode"

                config BSP_USING_TIMER4
                    select BSP_USING_TIMER
                    select RT_USING_CLOCK_TIME
                    bool "Timer"
                    help
                        Choose this option if you need TIMER function mode.

                config BSP_USING_TPWM4
                    select BSP_USING_TPWM
                    select RT_USING_PWM
                    bool "Timer PWM"
                    help
                    Choose this option if you need Timer PWM function mode.

            endchoice
        endif

        config BSP_USING_TMR5
            bool "Enable TIMER5"
            depends on BSP_USING_TMR

        if BSP_USING_TMR5
            choice BSP_TIMER5_FUNC_SEL
                prompt "Select TIMER5 function mode"

                config BSP_USING_TIMER5
                    select BSP_USING_TIMER
                    select RT_USING_CLOCK_TIME
                    bool "Timer"
                    help
                        Choose this option if you need TIMER function mode.

                config BSP_USING_TPWM5
                    select BSP_USING_TPWM
                    select RT_USING_PWM
                    bool "Timer PWM"
                    help
                    Choose this option if you need Timer PWM function mode.

            endchoice
        endif

        config BSP_USING_TMR6
            bool "Enable TIMER6"
            depends on BSP_USING_TMR

        if BSP_USING_TMR6
            choice BSP_TIMER6_FUNC_SEL
                prompt "Select TIMER6 function mode"

                config BSP_USING_TIMER6
                    select BSP_USING_TIMER
                    select RT_USING_CLOCK_TIME
                    bool "Timer"
                    help
                        Choose this option if you need TIMER function mode.

                config BSP_USING_TPWM6
                    select BSP_USING_TPWM
                    select RT_USING_PWM
                    bool "Timer PWM"
                    help
                    Choose this option if you need Timer PWM function mode.

            endchoice
        endif


        config BSP_USING_TMR7
            bool "Enable TIMER7"
            depends on BSP_USING_TMR

        if BSP_USING_TMR7
            choice BSP_TIMER7_FUNC_SEL
                prompt "Select TIMER7 function mode"

                config BSP_USING_TIMER7
                    select BSP_USING_TIMER
                    select RT_USING_CLOCK_TIME
                    bool "Timer"
                    help
                        Choose this option if you need TIMER function mode.

                config BSP_USING_TPWM7
                    select BSP_USING_TPWM
                    select RT_USING_PWM
                    bool "Timer PWM"
                    help
                    Choose this option if you need Timer PWM function mode.

            endchoice
        endif

        config BSP_USING_TMR8
            bool "Enable TIMER8"
            depends on BSP_USING_TMR

        if BSP_USING_TMR8
            choice BSP_TIMER8_FUNC_SEL
                prompt "Select TIMER8 function mode"

                config BSP_USING_TIMER8
                    select BSP_USING_TIMER
                    select RT_USING_CLOCK_TIME
                    bool "Timer"
                    help
                        Choose this option if you need TIMER function mode.

                config BSP_USING_TPWM8
                    select BSP_USING_TPWM
                    select RT_USING_PWM
                    bool "Timer PWM"
                    help
                    Choose this option if you need Timer PWM function mode.

            endchoice
        endif

        config BSP_USING_TMR9
            bool "Enable TIMER9"
            depends on BSP_USING_TMR

        if BSP_USING_TMR9
            choice BSP_TIMER9_FUNC_SEL
                prompt "Select TIMER9 function mode"

                config BSP_USING_TIMER9
                    select BSP_USING_TIMER
                    select RT_USING_CLOCK_TIME
                    bool "Timer"
                    help
                        Choose this option if you need TIMER function mode.

                config BSP_USING_TPWM9
                    select BSP_USING_TPWM
                    select RT_USING_PWM
                    bool "Timer PWM"
                    help
                    Choose this option if you need Timer PWM function mode.

            endchoice
        endif

        config BSP_USING_TMR10
            bool "Enable TIMER10"
            depends on BSP_USING_TMR

        if BSP_USING_TMR10
            choice BSP_TIMER10_FUNC_SEL
                prompt "Select TIMER10 function mode"

                config BSP_USING_TIMER10
                    select BSP_USING_TIMER
                    select RT_USING_CLOCK_TIME
                    bool "Timer"
                    help
                        Choose this option if you need TIMER function mode.

                config BSP_USING_TPWM10
                    select BSP_USING_TPWM
                    select RT_USING_PWM
                    bool "Timer PWM"
                    help
                    Choose this option if you need Timer PWM function mode.

            endchoice
        endif

        config BSP_USING_TMR11
            bool "Enable TIMER11"
            depends on BSP_USING_TMR

        if BSP_USING_TMR11
            choice BSP_TIMER11_FUNC_SEL
                prompt "Select TIMER11 function mode"

                config BSP_USING_TIMER11
                    select BSP_USING_TIMER
                    select RT_USING_CLOCK_TIME
                    bool "Timer"
                    help
                        Choose this option if you need TIMER function mode.

                config BSP_USING_TPWM11
                    select BSP_USING_TPWM
                    select RT_USING_PWM
                    bool "Timer PWM"
                    help
                    Choose this option if you need Timer PWM function mode.

            endchoice
        endif

    endif

    menuconfig BSP_USING_UART
        bool "Enable Universal Asynchronous Receiver/Transmitters(UART)"
        select RT_USING_SERIAL

        if BSP_USING_UART
            config BSP_USING_UART0
                bool "Enable UART0"
                depends on !USE_MA35D1_SUBM

            config BSP_USING_UART0_TX_DMA
                bool "Enable UART0 TX DMA"
                depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA

            config BSP_USING_UART0_RX_DMA
                bool "Enable UART0 RX DMA"
                depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA

            config BSP_USING_UART1
                bool "Enable UART1"

            config BSP_USING_UART1_TX_DMA
                bool "Enable UART1 TX DMA"
                depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA

            config BSP_USING_UART1_RX_DMA
                bool "Enable UART1 RX DMA"
                depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA

            config BSP_USING_UART2
                bool "Enable UART2"

            config BSP_USING_UART2_TX_DMA
                bool "Enable UART2 TX DMA"
                depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA

            config BSP_USING_UART2_RX_DMA
                bool "Enable UART2 RX DMA"
                depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA

            config BSP_USING_UART3
                bool "Enable UART3"

            config BSP_USING_UART3_TX_DMA
                bool "Enable UART3 TX DMA"
                depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA

            config BSP_USING_UART3_RX_DMA
                bool "Enable UART3 RX DMA"
                depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA

            config BSP_USING_UART4
                bool "Enable UART4"

            config BSP_USING_UART4_TX_DMA
                bool "Enable UART4 TX DMA"
                depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA

            config BSP_USING_UART4_RX_DMA
                bool "Enable UART4 RX DMA"
                depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA

            config BSP_USING_UART5
                bool "Enable UART5"

            config BSP_USING_UART5_TX_DMA
                bool "Enable UART5 TX DMA"
                depends on BSP_USING_UART5 && RT_SERIAL_USING_DMA

            config BSP_USING_UART5_RX_DMA
                bool "Enable UART5 RX DMA"
                depends on BSP_USING_UART5 && RT_SERIAL_USING_DMA

            config BSP_USING_UART6
                bool "Enable UART6"

            config BSP_USING_UART6_TX_DMA
                bool "Enable UART6 TX DMA"
                depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA

            config BSP_USING_UART6_RX_DMA
                bool "Enable UART6 RX DMA"
                depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA

            config BSP_USING_UART7
                bool "Enable UART7"

            config BSP_USING_UART7_TX_DMA
                bool "Enable UART7 TX DMA"
                depends on BSP_USING_UART7 && RT_SERIAL_USING_DMA

            config BSP_USING_UART7_RX_DMA
                bool "Enable UART7 RX DMA"
                depends on BSP_USING_UART7 && RT_SERIAL_USING_DMA

            config BSP_USING_UART8
                bool "Enable UART8"

            config BSP_USING_UART8_TX_DMA
                bool "Enable UART8 TX DMA"
                depends on BSP_USING_UART8 && RT_SERIAL_USING_DMA

            config BSP_USING_UART8_RX_DMA
                bool "Enable UART8 RX DMA"
                depends on BSP_USING_UART8 && RT_SERIAL_USING_DMA

            config BSP_USING_UART9
                bool "Enable UART9"

            config BSP_USING_UART9_TX_DMA
                bool "Enable UART9 TX DMA"
                depends on BSP_USING_UART9 && RT_SERIAL_USING_DMA

            config BSP_USING_UART9_RX_DMA
                bool "Enable UART9 RX DMA"
                depends on BSP_USING_UART9 && RT_SERIAL_USING_DMA

            config BSP_USING_UART10
                bool "Enable UART10"

            config BSP_USING_UART10_TX_DMA
                bool "Enable UART10 TX DMA"
                depends on BSP_USING_UART10 && RT_SERIAL_USING_DMA

            config BSP_USING_UART10_RX_DMA
                bool "Enable UART10 RX DMA"
                depends on BSP_USING_UART10 && RT_SERIAL_USING_DMA

            config BSP_USING_UART11
                bool "Enable UART11"

            config BSP_USING_UART11_TX_DMA
                bool "Enable UART11 TX DMA"
                depends on BSP_USING_UART11 && RT_SERIAL_USING_DMA

            config BSP_USING_UART11_RX_DMA
                bool "Enable UART11 RX DMA"
                depends on BSP_USING_UART11 && RT_SERIAL_USING_DMA

            config BSP_USING_UART12
                bool "Enable UART12"

            config BSP_USING_UART12_TX_DMA
                bool "Enable UART12 TX DMA"
                depends on BSP_USING_UART12 && RT_SERIAL_USING_DMA

            config BSP_USING_UART12_RX_DMA
                bool "Enable UART12 RX DMA"
                depends on BSP_USING_UART12 && RT_SERIAL_USING_DMA

            config BSP_USING_UART13
                bool "Enable UART13"

            config BSP_USING_UART13_TX_DMA
                bool "Enable UART13 TX DMA"
                depends on BSP_USING_UART13 && RT_SERIAL_USING_DMA

            config BSP_USING_UART13_RX_DMA
                bool "Enable UART13 RX DMA"
                depends on BSP_USING_UART13 && RT_SERIAL_USING_DMA

            config BSP_USING_UART14
                bool "Enable UART14"

            config BSP_USING_UART14_TX_DMA
                bool "Enable UART14 TX DMA"
                depends on BSP_USING_UART14 && RT_SERIAL_USING_DMA

            config BSP_USING_UART14_RX_DMA
                bool "Enable UART14 RX DMA"
                depends on BSP_USING_UART14 && RT_SERIAL_USING_DMA

            config BSP_USING_UART15
                bool "Enable UART15"

            config BSP_USING_UART15_TX_DMA
                bool "Enable UART15 TX DMA"
                depends on BSP_USING_UART15 && RT_SERIAL_USING_DMA

            config BSP_USING_UART15_RX_DMA
                bool "Enable UART15 RX DMA"
                depends on BSP_USING_UART15 && RT_SERIAL_USING_DMA

            config BSP_USING_UART16
                bool "Enable UART16"

            config BSP_USING_UART16_TX_DMA
                bool "Enable UART16 TX DMA"
                depends on BSP_USING_UART16 && RT_SERIAL_USING_DMA

            config BSP_USING_UART16_RX_DMA
                bool "Enable UART16 RX DMA"
                depends on BSP_USING_UART16 && RT_SERIAL_USING_DMA

       endif

    menuconfig BSP_USING_I2C
        bool "Enable I2C Serial Interface Controller(I2C)"
        select RT_USING_I2C

        if BSP_USING_I2C
            config BSP_USING_I2C0
                bool "Enable I2C0"

            config BSP_USING_I2C1
                bool "Enable I2C1"

            config BSP_USING_I2C2
                bool "Enable I2C2"

            config BSP_USING_I2C3
                bool "Enable I2C3"

            config BSP_USING_I2C4
                bool "Enable I2C4"

            config BSP_USING_I2C5
                bool "Enable I2C5"

        endif

    menuconfig BSP_USING_SDH
        bool "Enable Secure Digital Host Controller(SDH)"
        select RT_USING_DFS
        select RT_USING_SDIO
        depends on !USE_MA35D1_SUBM

        if BSP_USING_SDH
            config BSP_USING_SDH0
                bool "Enable SDH0"

            config BSP_USING_SDH1
                bool "Enable SDH1"
        endif

    menuconfig BSP_USING_CANFD
        bool "Enable CAN with Flexible Data-rate(CAN FD)"
        select RT_USING_CAN

        if BSP_USING_CANFD
            config BSP_USING_CANFD0
                bool "Enable CANFD0"

            config BSP_USING_CANFD1
                bool "Enable CANFD1"

            config BSP_USING_CANFD2
                bool "Enable CANFD2"

            config BSP_USING_CANFD3
                bool "Enable CANFD3"
        endif

    menuconfig BSP_USING_EPWM
        bool "Enable EPWM Generator and Capture Timer(EPWM)"

        if BSP_USING_EPWM

            config BSP_USING_EPWM0
                bool "Enable EPWM0"
                depends on BSP_USING_EPWM && !USE_MA35D1_SUBM

            config BSP_USING_EPWM_CAPTURE
                bool

            if BSP_USING_EPWM0
                choice BSP_EPWM0_SEL
                prompt "Select EPWM0 function mode"
                config BSP_USING_EPWM0_PWM
                    select RT_USING_PWM
                    bool "EPWM0 PWM"
                    help
                        Choose this option if you need PWM function mode.

                config BSP_USING_EPWM0_CAPTURE
                    select RT_USING_INPUT_CAPTURE
                    select BSP_USING_EPWM_CAPTURE
                    bool "EPWM0 CAPTURE"
                    help
                        Choose this option if you need PWM capture function mode.
                endchoice
            endif

            config BSP_USING_EPWM1
                bool "Enable EPWM1"
                depends on BSP_USING_EPWM && !USE_MA35D1_SUBM

            if BSP_USING_EPWM1
                choice BSP_EPWM1_SEL
                prompt "Select EPWM1 function mode"
                config BSP_USING_EPWM1_PWM
                    select RT_USING_PWM
                    bool "EPWM1 PWM"
                    help
                        Choose this option if you need PWM function mode.

                config BSP_USING_EPWM1_CAPTURE
                    select RT_USING_INPUT_CAPTURE
                    select BSP_USING_EPWM_CAPTURE
                    bool "EPWM1 CAPTURE"
                    help
                        Choose this option if you need PWM capture function mode.
                endchoice
            endif

            config BSP_USING_EPWM2
                bool "Enable EPWM2"
                depends on BSP_USING_EPWM && !USE_MA35D1_SUBM

            if BSP_USING_EPWM2
                choice BSP_EPWM2_SEL
                prompt "Select EPWM2 function mode"
                config BSP_USING_EPWM2_PWM
                    select RT_USING_PWM
                    bool "EPWM2 PWM"
                    help
                        Choose this option if you need PWM function mode.

                config BSP_USING_EPWM2_CAPTURE
                    select RT_USING_INPUT_CAPTURE
                    select BSP_USING_EPWM_CAPTURE
                    bool "EPWM2 CAPTURE"
                    help
                        Choose this option if you need PWM capture function mode.
                endchoice
            endif

        endif

    menuconfig BSP_USING_SPI
       bool "Enable Serial Peripheral Interface(SPI)"
       select RT_USING_SPI

       if BSP_USING_SPI
            config BSP_USING_SPI_PDMA
            bool
            default n

            config BSP_USING_SPII2S
            bool

            choice BSP_SPI0_FUNC_SEL
                prompt "Select SPI0 function mode"
                config BSP_USING_SPI0_NONE
                bool "NONE"
                help
                    Choose this option if you need not SPI0.

                config BSP_USING_SPI0
                bool "Enable SPI0"
                help
                    Choose this option if you need SPI function mode.

                config BSP_USING_SPII2S0
                    select RT_USING_AUDIO
                    select BSP_USING_SPII2S
                    bool "Enable SPII2S0"
                    help
                      Choose this option if you need SPII2S function mode.

            endchoice

            if BSP_USING_SPI0
                   config BSP_USING_SPI0_PDMA
                       bool "Enable PDMA for SPI0"
                       select BSP_USING_SPI_PDMA
                       depends on BSP_USING_SPI0
            endif

            choice BSP_SPI1_FUNC_SEL
                prompt "Select SPI1 function mode"
                config BSP_USING_SPI1_NONE
                bool "NONE"
                help
                    Choose this option if you need not SPI1.

                config BSP_USING_SPI1
                bool "Enable SPI1"
                help
                    Choose this option if you need SPI function mode.

                config BSP_USING_SPII2S1
                    select RT_USING_AUDIO
                    select BSP_USING_SPII2S
                    bool "Enable SPII2S1"
                    help
                      Choose this option if you need SPII2S function mode.

            endchoice

            if BSP_USING_SPI1
                config BSP_USING_SPI1_PDMA
                    bool "Enable PDMA for SPI1"
                    select BSP_USING_SPI_PDMA
                    depends on BSP_USING_SPI1
            endif

            choice BSP_SPI2_FUNC_SEL
                prompt "Select SPI2 function mode"
                config BSP_USING_SPI2_NONE
                bool "NONE"
                help
                    Choose this option if you need not SPI2.

                config BSP_USING_SPI2
                bool "Enable SPI2"
                help
                    Choose this option if you need SPI function mode.

                config BSP_USING_SPII2S2
                    select RT_USING_AUDIO
                    select BSP_USING_SPII2S
                    bool "Enable SPII2S2"
                    help
                      Choose this option if you need SPII2S function mode.

            endchoice

            if BSP_USING_SPI2
                config BSP_USING_SPI1_PDMA
                    bool "Enable PDMA for SPI2"
                    select BSP_USING_SPI_PDMA
                    depends on BSP_USING_SPI2
            endif

            choice BSP_SPI3_FUNC_SEL
                prompt "Select SPI3 function mode"
                config BSP_USING_SPI3_NONE
                bool "NONE"
                help
                    Choose this option if you need not SPI3.

                config BSP_USING_SPI3
                bool "Enable SPI3"
                help
                    Choose this option if you need SPI function mode.

                config BSP_USING_SPII2S3
                    select RT_USING_AUDIO
                    select BSP_USING_SPII2S
                    bool "Enable SPII2S3"
                    help
                      Choose this option if you need SPII2S function mode.

            endchoice

            if BSP_USING_SPI3
                config BSP_USING_SPI3_PDMA
                    bool "Enable PDMA for SPI3"
                    select BSP_USING_SPI_PDMA
                    depends on BSP_USING_SPI3
            endif

        endif

    menuconfig BSP_USING_I2S
        bool "Enable I2S Controller(I2S)"
        select RT_USING_AUDIO

        if BSP_USING_I2S
            config BSP_USING_I2S0
                bool "Enable I2S0"

            config BSP_USING_I2S1
                bool "Enable I2S1"

            config NU_I2S_DMA_FIFO_SIZE
                int "DMA Buffer size of capture and playback"
                range 2048 4096
                default 2048
        endif

    menuconfig BSP_USING_QSPI
        bool "Enable Quad Serial Peripheral Interface(QSPI)"
        select RT_USING_SPI
        select RT_USING_QSPI
        select BSP_USING_SPI

        if BSP_USING_QSPI

            config BSP_USING_QSPI_PDMA
                bool
                select BSP_USING_SPI_PDMA
                default n

            config BSP_USING_QSPI0
                bool "Enable QSPI0"

            config BSP_USING_QSPI0_PDMA
                bool "Enable PDMA for QSPI0"
                select BSP_USING_QSPI_PDMA
                depends on BSP_USING_QSPI0

            config BSP_USING_QSPI1
                bool "Enable QSPI1"

            config BSP_USING_QSPI1_PDMA
                bool "Enable PDMA for QSPI1"
                select BSP_USING_QSPI_PDMA
                depends on BSP_USING_QSPI1

        endif

    menuconfig BSP_USING_SCUART
        bool "Enable Smart Card Host Interface - UART(SCUART)"

        if BSP_USING_SCUART
           config BSP_USING_SCUART0
               bool "Enable SCUART0"

           config BSP_USING_SCUART1
               bool "Enable SCUART1"

        endif

    menuconfig BSP_USING_ECAP
        bool "Enable Enhanced Input Capture Timer(ECAP)"
    select RT_USING_INPUT_CAPTURE

        if BSP_USING_ECAP

            config BSP_USING_ECAP0
                select RT_USING_INPUT_CAPTURE
                bool "Enable ECAP0"
                help
                    Choose this option if you need ECAP0.

            config BSP_USING_ECAP1
                select RT_USING_INPUT_CAPTURE
                bool "Enable ECAP1"
                help
                    Choose this option if you need ECAP1.

            config BSP_USING_ECAP2
                select RT_USING_INPUT_CAPTURE
                bool "Enable ECAP2"
                help
                    Choose this option if you need ECAP2.

        endif

    menuconfig BSP_USING_QEI
        bool "Enable Quadrature Encoder Interface(QEI)"

        if BSP_USING_QEI
            config BSP_USING_QEI0
                bool "Enable QEI0"
                select RT_USING_PULSE_ENCODER

            config BSP_USING_QEI1
                bool "Enable QEI1"
                select RT_USING_PULSE_ENCODER

            config BSP_USING_QEI2
                bool "Enable QEI2"
                select RT_USING_PULSE_ENCODER

        endif

    menuconfig BSP_USING_SOFT_I2C
        bool "Enable software I2C (swi2c)"
        default n
        select RT_USING_I2C
        select RT_USING_SOFT_I2C
        if BSP_USING_SOFT_I2C
        menuconfig BSP_USING_SOFT_I2C0
            bool "Enable software I2C0 Bus (swi2c0)"
            default n
            select RT_USING_SOFT_I2C0
            if BSP_USING_SOFT_I2C0
                config RT_SOFT_I2C0_SCL_PIN
                    int "swi2c0 SCL pin number"
                    default 0x19
                config RT_SOFT_I2C0_SDA_PIN
                    int "swi2c0 SDA pin number"
                    default 0x18
            endif

        menuconfig BSP_USING_SOFT_I2C1
            bool "Enable software I2C1 Bus (swi2c1)"
            default n
            select RT_USING_SOFT_I2C1
            if BSP_USING_SOFT_I2C1
                config RT_SOFT_I2C1_SCL_PIN
                    int "swi2c1 SCL pin number"
                    default 0x0B
                config RT_SOFT_I2C1_SDA_PIN
                    int "swi2c1 SDA pin number"
                    default 0x0A
            endif
        endif
    config BSP_USING_DISP
        bool "Enable Display"
        depends on !USE_MA35D1_SUBM
        default y

        if BSP_USING_DISP
            choice LCM_F_SEL
                prompt "Select Supported LCM panel"
                default LCM_USING_FW070TFT_WSVGA
                config LCM_USING_FW070TFT_WSVGA
                    bool "eDispLcd_1024x600(1024x600-RGB888)"

                config LCM_USING_FW070TFT_WVGA
                    bool "eDispLcd_800x480(800x480-RGB888)"

                config LCM_USING_FHD
                    bool "eDispLcd_1920x1080(1920x1080-RGB888)"
            endchoice

            config DISP_USING_LCD_IDX
                int
                default 0    if LCM_USING_FW070TFT_WSVGA
                default 1    if LCM_USING_FW070TFT_WVGA
                default 2    if LCM_USING_FHD

           config BSP_LCD_BPP
                int
                default 32   if LCM_USING_FW070TFT_WSVGA
                default 32   if LCM_USING_FW070TFT_WVGA
                default 32   if LCM_USING_FHD

           config BSP_LCD_WIDTH
                int
                default 1024   if LCM_USING_FW070TFT_WSVGA
                default 800    if LCM_USING_FW070TFT_WVGA
                default 1920   if LCM_USING_FHD

           config BSP_LCD_HEIGHT
                int
                default 600   if LCM_USING_FW070TFT_WSVGA
                default 480   if LCM_USING_FW070TFT_WVGA
                default 1080  if LCM_USING_FHD

            config DISP_USING_OVERLAY
                bool "Enable Overlay layer"
                default n
        endif

    config BSP_USING_WDT
        bool "Enable Watchdog Timer(WDT)"
        select RT_USING_WDT
        default y

        if BSP_USING_WDT
            config BSP_USING_WDT0
            bool "Enable WDT0"
            select RT_USING_WATCHDOG
            depends on !USE_MA35D1_SUBM
            default n

            config BSP_USING_WDT1
            bool "Enable WDT1"
            select RT_USING_WATCHDOG
            depends on !USE_MA35D1_SUBM
            default n

            config BSP_USING_WDT2
            bool "Enable WDT2"
            select RT_USING_WATCHDOG
            default n
        endif

    config BSP_USING_HWSEM
        bool "Enable Hardware semaphore(HWSEM)"
        default y

        if BSP_USING_HWSEM
            config BSP_USING_HWSEM0
            bool "Enable HWSEM0"
            default y
        endif

    config BSP_USING_WHC
        bool "Enable Wormhole(WHC)"
        default y

        if BSP_USING_WHC
            config BSP_USING_WHC0
            bool "Enable WHC0"
            default y

            config BSP_USING_WHC1
            bool "Enable WHC1"
            depends on !USE_MA35D1_SUBM
            default n
        endif

    config BSP_USING_NFI
        bool "Enable Raw NAND flash Interface(NFI)"
        depends on !USE_MA35D1_SUBM
        default y

    config BSP_USING_EBI
        bool "Enable External Bus Interface(EBI)"
        default n

    config BSP_USING_USBH
        bool "Enable USB Host Controller(USBH)"
        select RT_USING_USB_HOST
        select RT_USBH_MSTORAGE
        depends on !USE_MA35D1_SUBM

        if BSP_USING_USBH
            config BSP_USING_HSUSBH0
            bool "Enable HSUSBH0"
            default y

            config BSP_USING_HSUSBH1
            bool "Enable HSUSBH1"
            default y


        endif

    config RT_SOFT_I2C0_HAS_PIN_DEFAULT
        bool
        default y if RT_USING_SOFT_I2C0

    config RT_SOFT_I2C0_SCL_PIN_DEFAULT
        int
        default 0x19 if RT_USING_SOFT_I2C0

    config RT_SOFT_I2C0_SDA_PIN_DEFAULT
        int
        default 0x18 if RT_USING_SOFT_I2C0

    config RT_SOFT_I2C1_HAS_PIN_DEFAULT
        bool
        default y if RT_USING_SOFT_I2C1

    config RT_SOFT_I2C1_SCL_PIN_DEFAULT
        int
        default 0x0B if RT_USING_SOFT_I2C1

    config RT_SOFT_I2C1_SDA_PIN_DEFAULT
        int
        default 0x0A if RT_USING_SOFT_I2C1