-
Notifications
You must be signed in to change notification settings - Fork 0
/
RTE_Device_template_gen2.h
8481 lines (7082 loc) · 248 KB
/
RTE_Device_template_gen2.h
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
/* Copyright (C) 2022 Alif Semiconductor - All Rights Reserved.
* Use, distribution and modification of this code is permitted under the
* terms stated in the Alif Semiconductor Software License Agreement
*
* You should have received a copy of the Alif Semiconductor Software
* License Agreement with this file. If not, please write to:
* [email protected], or visit: https://alifsemi.com/license
*
*/
//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
#ifndef __RTE_DEVICE_H
#define __RTE_DEVICE_H
// <e> RTSS_M55_HP (Core Selection)
// <i> Select if the Configured core is M55_HP
#define RTE_RTSS_M55_HP 0
#if RTE_RTSS_M55_HP
#define RTE_RTSS_M55_HE 0
#else
#define RTE_RTSS_M55_HE 1
#endif
// </e> RTSS_M55_HP (Core Selection)
// <e> MRAM (NVM (Non-Volatile Memory)) [Driver_MRAM]
// <i> Configuration settings for Driver_MRAM in component ::Drivers:MRAM
#define RTE_MRAM 1
#if RTE_MRAM
#define RTE_MRAM_SIZE 0x00580000
#endif
// </e> MRAM (NVM (Non-Volatile Memory)) [Driver_MRAM]
// <e> CPI (Camera) [Driver_CPI]
// <i> Configuration settings for Driver_CPI in component ::Drivers:CPI
#define RTE_CPI 1
#if RTE_CPI
// <o> CPI interrupt priority <0-255>
// <i> Defines CPI interrupt priority.
// <i> Default: 0
#define RTE_CPI_IRQ_PRI 0
// <o> CPI CSI halt enable/disable
// <0=> disable
// <1=> enable
// <i> Defines CPI CSI halt enable/disable.
// <i> Default: 0
#define RTE_CPI_CSI_HALT 0
// <o> CPI Row roundup
// <0=> disable
// <1=> enable
// <i> Defines CPI row roundup to 64 bit.
// <i> Default: 0
#define RTE_CPI_ROW_ROUNDUP 0
// <o> CPI FIFO read watermark
// <i> Defines FIFO read watermark.
// <i> Default: 0x8
#define RTE_CPI_FIFO_READ_WATERMARK 0x8
// <o> CPI FIFO write watermark
// <i> Defines CPI FIFO write watermark.
// <i> Default: 0x18
#define RTE_CPI_FIFO_WRITE_WATERMARK 0x18
// <e> MT9M114 [Driver_MT9M114]
// <o> Enable/Disable MT9M114 camera sensor
// <0=> disable
// <1=> enable
// <i> define if to enable or disable MT9M114 camera sensor
// <i> default: disable
#define RTE_MT9M114_CAMERA_SENSOR_CPI_ENABLE 0
#if (RTE_MT9M114_CAMERA_SENSOR_CPI_ENABLE)
// <o> Select camera MT9M114 pixel clock polarity
// <0=> not invert camera pixclk
// <1=> invert camera pixclk
// <i> Defines camera MT9M114 pixel clock polarity
// <i> Default: not invert camera pixclk
#define RTE_MT9M114_CAMERA_SENSOR_CPI_PIXEL_CLK_POL 0
// <o> Select camera MT9M114 HSYNC polarity
// <0=> not invert HSYNC input
// <1=> invert HSYNC input
// <i> Defines camera MT9M114 HSYNC polarity
// <i> Default: not invert HSYNC input
#define RTE_MT9M114_CAMERA_SENSOR_CPI_HSYNC_POL 0
// <o> Select camera MT9M114 VSYNC polarity
// <0=> not invert VSYNC input
// <1=> invert VSYNC input
// <i> Defines camera MT9M114 VSYNC polarity
// <i> Default: not invert VSYNC input
#define RTE_MT9M114_CAMERA_SENSOR_CPI_VSYNC_POL 0
// <o> Select camera MT9M114 VSYNC wait
// <0=> vsync wait disable
// <1=> vsync wait enable
// <i> Defines camera MT9M114 VSYNC wait
// <i> Default: vsync wait disable
#define RTE_MT9M114_CAMERA_SENSOR_CPI_VSYNC_WAIT 0
// <o> Select camera MT9M114 VSYNC mode
// <0=> sync enable
// <1=> data enable
// <i> Defines camera MT9M114 VSYNC mode
// <i> Default: sync enable
#define RTE_MT9M114_CAMERA_SENSOR_CPI_VSYNC_MODE 0
// <o> Select video data mode
// <0=> 1 bit
// <1=> 2 bit
// <2=> 4 bit
// <3=> 8 bit
// <4=> 16 bit
// <i> Defines video data mode
// <i> Default: 8 bit
#define RTE_MT9M114_CAMERA_SENSOR_CPI_DATA_MODE 3
// <o> Select Data Endianness
// <0=> LSB First
// <1=> MSB First
// <i> Select MSB/LSB
// <i> Default: LSB
#define RTE_MT9M114_CAMERA_SENSOR_CPI_DATA_ENDIANNESS 0
// <o> Select CODE10ON8
// <0=> Disable
// <1=> Enable
// <i> Defines transfer 10-bit coding over 8-bit data bus.
// <i> Default: 8 bit
#define RTE_MT9M114_CAMERA_SENSOR_CPI_CODE10ON8 0
// <o> Select camera MT9M114 data mask
// <0=> 16 bit
// <1=> 10 bit
// <2=> 12 bit
// <3=> 14 bit
// <i> Defines camera MT9M114 data mask
// <i> Default: 10 bit
#define RTE_MT9M114_CAMERA_SENSOR_CPI_DATA_MASK 1
// <o> select MT9M114 frame height
// <i> defines select MT9M114 frame height.
// <i> default: 480
#define RTE_MT9M114_CAMERA_SENSOR_FRAME_HEIGHT 480
// <o> select MT9M114 frame width
// <i> defines select MT9M114 frame width.
// <i> default: 640
#define RTE_MT9M114_CAMERA_SENSOR_FRAME_WIDTH 640
// <o RTE_MT9M114_CAMERA_SENSOR_I2C_INSTANCE> Select camera sensor MT9M114 i2c instance
// <i> Defines camera sensor MT9M114 i2c instance
// <0=> I2C0
// <1=> I2C1
// <2=> I2C2
// <3=> I2C3
// <I3C=> I2C OVER I3C
// <i> Default: 1
#define RTE_MT9M114_CAMERA_SENSOR_I2C_INSTANCE 1
#endif
// </e> MT9M114 [Driver_MT9M114]
#endif
// </e> CPI (Camera) [Driver_CPI]
// <e> LPCPI (Camera) [Driver_LPCPI]
// <i> Configuration settings for Driver_LPCPI in component ::Drivers:LPCPI
#define RTE_LPCPI 0
#if RTE_LPCPI
// <o> LPCPI interrupt priority <0-255>
// <i> Defines LPCPI interrupt priority.
// <i> Default: 0
#define RTE_LPCPI_IRQ_PRI 0
// <o> LPCPI Row roundup
// <0=> disable
// <1=> enable
// <i> Defines LPCPI row roundup to 64 bit.
// <i> Default: 0
#define RTE_LPCPI_ROW_ROUNDUP 0
// <o> LPCPI FIFO read watermark
// <i> Defines LPCPI FIFO read watermark.
// <i> Default: 0x8
#define RTE_LPCPI_FIFO_READ_WATERMARK 0x8
// <o> LPCPI FIFO write watermark
// <i> Defines LPCPI FIFO write watermark.
// <i> Default: 0x18
#define RTE_LPCPI_FIFO_WRITE_WATERMARK 0x18
// <e> MT9M114 [Driver_MT9M114]
// <o> Enable/Disable MT9M114 camera sensor
// <0=> disable
// <1=> enable
// <i> define if to enable or disable MT9M114 camera sensor
// <i> default: disable
#define RTE_MT9M114_CAMERA_SENSOR_LPCPI_ENABLE 1
#if (RTE_MT9M114_CAMERA_SENSOR_LPCPI_ENABLE)
// <o> Select camera MT9M114 pixel clock polarity
// <0=> not invert camera pixclk
// <1=> invert camera pixclk
// <i> Defines camera MT9M114 pixel clock polarity
// <i> Default: not invert camera pixclk
#define RTE_MT9M114_CAMERA_SENSOR_LPCPI_PIXEL_CLK_POL 0
// <o> Select camera MT9M114 HSYNC polarity
// <0=> not invert HSYNC input
// <1=> invert HSYNC input
// <i> Defines camera MT9M114 HSYNC polarity
// <i> Default: not invert HSYNC input
#define RTE_MT9M114_CAMERA_SENSOR_LPCPI_HSYNC_POL 0
// <o> Select camera MT9M114 VSYNC polarity
// <0=> not invert VSYNC input
// <1=> invert VSYNC input
// <i> Defines camera MT9M114 VSYNC polarity
// <i> Default: not invert VSYNC input
#define RTE_MT9M114_CAMERA_SENSOR_LPCPI_VSYNC_POL 0
// <o> Select camera MT9M114 VSYNC wait
// <0=> vsync wait disable
// <1=> vsync wait enable
// <i> Defines camera MT9M114 VSYNC wait
// <i> Default: vsync wait disable
#define RTE_MT9M114_CAMERA_SENSOR_LPCPI_VSYNC_WAIT 0
// <o> Select camera MT9M114 VSYNC mode
// <0=> sync enable
// <1=> data enable
// <i> Defines camera MT9M114 VSYNC mode
// <i> Default: sync enable
#define RTE_MT9M114_CAMERA_SENSOR_LPCPI_VSYNC_MODE 0
// <o> Select video data mode
// <0=> 1 bit
// <1=> 2 bit
// <2=> 4 bit
// <3=> 8 bit
// <i> Defines video data mode
// <i> Default: 8 bit
#define RTE_MT9M114_CAMERA_SENSOR_LPCPI_DATA_MODE 3
// <o> Select Data Endianness
// <0=> LSB First
// <1=> MSB First
// <i> Select MSB/LSB
// <i> Default: LSB
#define RTE_MT9M114_CAMERA_SENSOR_LPCPI_DATA_ENDIANNESS 0
// <o> Select CODE10ON8
// <0=> Disable
// <1=> Enable
// <i> Defines transfer 10-bit coding over 8-bit data bus.
// <i> Default: 8 bit
#define RTE_MT9M114_CAMERA_SENSOR_LPCPI_CODE10ON8 0
// <o> select MT9M114 frame height
// <i> defines select MT9M114 frame height.
// <i> default: 480
#define RTE_MT9M114_CAMERA_SENSOR_FRAME_HEIGHT 480
// <o> select MT9M114 frame width
// <i> defines select MT9M114 frame width.
// <i> default: 640
#define RTE_MT9M114_CAMERA_SENSOR_FRAME_WIDTH 640
// <o RTE_MT9M114_CAMERA_SENSOR_I2C_INSTANCE> Select camera sensor MT9M114 i2c instance
// <i> Defines camera sensor MT9M114 i2c instance
// <0=> I2C0
// <1=> I2C1
// <2=> I2C2
// <3=> I2C3
// <I3C=> I2C OVER I3C
// <i> Default: 1
#define RTE_MT9M114_CAMERA_SENSOR_I2C_INSTANCE 1
#endif
// </e> MT9M114 [Driver_MT9M114]
#endif
// </e> LPCPI (Camera) [Driver_LPCPI]
// <e> MIPI_CSI2 (mipi csi2) [Driver_MIPI_CSI2]
// <i> Configuration settings for Driver_MIPI_CSI2 in component ::Drivers:MIPI_CSI2
#define RTE_MIPI_CSI2 1
#if RTE_MIPI_CSI2
// <o> CSI pixel clock select
// <0=> 400 MHz clock source (PLL_CLK1/2)
// <1=> 480 MHz clock source (PLL_CLK3)
// <i> Defines CSI pixel clock select
// <i> Default: 400 MHz clock source (PLL_CLK1/2)
#define RTE_CSI2_PIX_CLK_SEL 0
// <o> select IPI mode
// <0=> camera mode
// <1=> controller mode
// <i> defines select IPI mode
// <i> default: camera mode
#define RTE_MIPI_CSI2_IPI_MODE 0
// <o> select memory flush
// <0=> manual
// <1=> auto
// <i> defines select memory flush
// <i> default: auto
#define RTE_MIPI_CSI2_MEMFLUSH 1
// <o> select sync event mode
// <0=> not trigger by frame start
// <1=> trigger by frame start
// <i> defines select sync event mode
// <i> default : not trigger by frame start
#define RTE_MIPI_CSI2_SYNC_ET_MODE 0
// <o> select sync event select
// <0=> auto
// <1=> programmed
// <i> defines select sync event select
// <i> default : programmed
#define RTE_MIPI_CSI2_SYNC_ET_SEL 1
// <o> embedded packets for IPI synchronization events
// <0=> disable
// <1=> enable
// <i> define if want to use embedded packets for IPI synchronization events
// <i> default: disable
#define RTE_MIPI_CSI2_EN_EMBEDDED 0
// <o> blanking packets for IPI synchronization events
// <0=> disable
// <1=> enable
// <i> define if want to use blanking packets for IPI synchronization events
// <i> default: disable
#define RTE_MIPI_CSI2_EN_BLANKING 0
// <o> null packets for IPI synchronization events
// <0=> disable
// <1=> enable
// <i> define if want to use null packets for IPI synchronization events
// <i> default: disable
#define RTE_MIPI_CSI2_EN_NULL 0
// <o> line start packets for IPI synchronization events
// <0=> disable
// <1=> enable
// <i> define if want to use line start packets for IPI synchronization events
// <i> default: disable
#define RTE_MIPI_CSI2_EN_LINE_START 0
// <o> video packets for IPI synchronization events
// <0=> disable
// <1=> enable
// <i> define if want to use video packets for IPI synchronization events
// <i> default: enable
#define RTE_MIPI_CSI2_EN_VIDEO 1
// <o> datatype to overwrite
// <o> select CSI2 Data type to overwrite
// <24=> YUV420_8
// <25=> YUV420_10
// <26=> YUV420_8_LEGACY
// <28=> YUV420_8_SHIFT
// <29=> YUV420_10_SHIFT
// <30=> YUV422_8
// <31=> YUV422_10
// <32=> RGB444
// <33=> RGB555
// <34=> RGB565
// <35=> RGB666
// <36=> RGB888
// <40=> RAW6
// <41=> RAW7
// <42=> RAW8
// <43=> RAW10
// <44=> RAW12
// <45=> RAW14
// <46=> RAW16
// <48=> USER_DEFINED_1
// <49=> USER_DEFINED_2
// <50=> USER_DEFINED_3
// <51=> USER_DEFINED_4
// <52=> USER_DEFINED_5
// <53=> USER_DEFINED_6
// <54=> USER_DEFINED_7
// <55=> USER_DEFINED_8
// <i> defines select CSI2 Data type to be overwrite
// <i> default: RAW10
#define RTE_MIPI_CSI2_EN_DT 43
// <o> datatype to overwrite with programmed datatype
// <i> define if want to use programmed datatype ignoring datatype of the header
// <i> default: 0
#define RTE_MIPI_CSI2_EN_DT_OVERWRITE 0
// <o> Horizontal Synchronism Active Time range <0-2047>
// <i> Defines possible range for selecting horizontal sync active time
// <i> Default: 0
#define RTE_MIPI_CSI2_IPI_HSA_TIME 5
// <o> Horizontal Synchronism back porch Time range <0-2047>
// <i> Defines possible range for selecting horizontal sync back porch time
// <i> Default: 0
#define RTE_MIPI_CSI2_IPI_HBP_TIME 10
// <o> Horizontal sync delay Time range <0-2047>
// <i> Defines possible range for selecting horizontal sync delay time
// <i> Default: 560
#define RTE_MIPI_CSI2_IPI_HSD_TIME 280
// <o> Horizontal Active Time range <0-2047>
// <i> Defines possible range for selecting horizontal active time
// <i> Default: 560
#define RTE_MIPI_CSI2_IPI_HACTIVE_TIME 560
// <o> Vertical sync active period range <0-511>
// <i> Defines possible range for selecting vertical sync active period
// <i> Default: 0
#define RTE_MIPI_CSI2_IPI_VSA_LINE 4
// <o> Vertical back porch period range <0-511>
// <i> Defines possible range for selecting vertical back porch period
// <i> Default: 0
#define RTE_MIPI_CSI2_IPI_VBP_LINE 4
// <o> Vertical front porch period range <0-511>
// <i> Defines possible range for selecting vertical front porch period
// <i> Default: 0
#define RTE_MIPI_CSI2_IPI_VFP_LINE 4
// <o> Vertical active period range <0-8191>
// <i> Defines possible range for selecting vertical active period
// <i> Default: 560
#define RTE_MIPI_CSI2_IPI_VACTIVE_LINE 560
// <o> CSI2 interrupt priority <0-255>
// <i> Defines CSI2 interrupt priority.
// <i> Default: 0
#define RTE_MIPI_CSI2_IRQ_PRI 0
// <e> ARX3A0 [Driver_ARX3A0]
// <o> Enable/Disable ARX3A0 camera sensor
// <0=> disable
// <1=> enable
// <i> define if to enable or disable ARX3A0 camera sensor
// <i> default: enable
#define RTE_ARX3A0_CAMERA_SENSOR_CSI_ENABLE 1
#if (RTE_ARX3A0_CAMERA_SENSOR_CSI_ENABLE)
// <o> Select camera ARX3A0 frame per second
// <5=> 5 FPS
// <40=> 40 FPS
// <60=> 60 FPS
// <90=> 90 FPS
// <i> Defines camera ARX3A0 frame per second
// <i> Default: 90 FPS
#define RTE_ARX3A0_CAMERA_SENSOR_CSI_CFG_FPS 90
// <o> Select camera ARX3A0 frequency
// <i> Defines camera ARX3A0 frequency
// <i> Default: 400000000
#define RTE_ARX3A0_CAMERA_SENSOR_CSI_FREQ 400000000
// <o> select ARX3A0 CSI2 Data type
// <i> defines select CSI2 Data type
// <i> default: 43(RAW10)
#define RTE_ARX3A0_CAMERA_SENSOR_CSI_DATA_TYPE 43
// <o> select ARX3A0 clock mode
// <0=> CONTINUOUS CLOCK_MODE
// <1=> NON CONTINUOUS CLOCK MODE
// <i> defines ARX3A0 clock mode for mipi csi2
// <i> default: 1 (non continuous clock mode)
#define RTE_ARX3A0_CAMERA_SENSOR_CLOCK_MODE 1
// <o> select ARX3A0 number of lanes in DPHY
// <i> defines select ARX3A0 number of lanes in DPHY.
// <i> default: 2 two lane
#define RTE_ARX3A0_CAMERA_SENSOR_CSI_N_LANES 2
// <o> select ARX3A0 virtual channel ID
// <i> defines select ARX3A0 virtual channel ID.
// <i> default: 0
#define RTE_ARX3A0_CAMERA_SENSOR_CSI_VC_ID 0
// <o> select ARX3A0 override CPI color mode
// <i> defines select ARX3A0 override CPI color mode.
// <i> default: 1 (Ensable)
#define RTE_ARX3A0_CAMERA_SENSOR_OVERRIDE_CPI_COLOR_MODE 1
// <o> select ARX3A0 CPI color mode
// <i> defines select ARX3A0 CPI color mode.
// <i> default: 2 (IPI-16 RAW 8)
#define RTE_ARX3A0_CAMERA_SENSOR_CPI_COLOR_MODE 2
// <o> select ARX3A0 frame height
// <i> defines select ARX3A0 frame height.
// <i> default: 560
#define RTE_ARX3A0_CAMERA_SENSOR_FRAME_HEIGHT 560
// <o> select ARX3A0 frame width
// <i> defines select ARX3A0 frame width.
// <i> default: 560
#define RTE_ARX3A0_CAMERA_SENSOR_FRAME_WIDTH 560
// <o> Select camera sensor ARX3A0 CSI clock source division [Divisor] <2-511>
// <i> Defines camera sensor ARX3A0 CSI clock source division
// <i> Default: 20
#define RTE_ARX3A0_CAMERA_SENSOR_CSI_CLK_SCR_DIV 20
// <o> Select camera sensor ARX3A0 reset pin number
// <i> Defines camera sensor ARX3A0 reset pin number
// <i> Default: 1
#define RTE_ARX3A0_CAMERA_SENSOR_RESET_PIN_NO BOARD_CAMERA_RESET_PIN_NO
// <o> Select camera sensor ARX3A0 reset GPIO port
// <i> Defines camera sensor ARX3A0 reset GPIO port
// <i> Default: 9
#define RTE_ARX3A0_CAMERA_SENSOR_RESET_GPIO_PORT BOARD_CAMERA_RESET_GPIO_PORT
// <o> Select camera sensor ARX3A0 power pin number
// <i> Defines camera sensor ARX3A0 power pin number
// <i> Default: 5
#define RTE_ARX3A0_CAMERA_SENSOR_POWER_PIN_NO BOARD_CAMERA_POWER_PIN_NO
// <o> Select camera sensor ARX3A0 power GPIO port
// <i> Defines camera sensor ARX3A0 power GPIO port
// <i> Default: 7
#define RTE_ARX3A0_CAMERA_SENSOR_POWER_GPIO_PORT BOARD_CAMERA_POWER_GPIO_PORT
// <o RTE_ARX3A0_CAMERA_SENSOR_I2C_INSTANCE> Select camera sensor ARX3A0 i2c instance
// <i> Defines camera sensor ARX3A0 i2c instance
// <0=> I2C0
// <1=> I2C1
// <2=> I2C2
// <3=> I2C3
// <I3C=> I2C OVER I3C
// <i> Default: 1
#define RTE_ARX3A0_CAMERA_SENSOR_I2C_INSTANCE 1
#endif
// </e> ARX3A0 [Driver_ARX3A0]
#endif
// </e> MIPI_CSI2 (mipi csi2) [Driver_MIPI_CSI2]
// <e> MIPI_DSI (mipi dsi) [Driver_MIPI_DSI]
// <i> Configuration settings for Driver_MIPI_DSI in component ::Drivers:MIPI_DSI
#define RTE_MIPI_DSI 1
#if RTE_MIPI_DSI
// <o> Number of data lanes
// <1=> ONE
// <2=> TWO
// <i> Defines Number of data lanes
// <i> Default: TWO
#define RTE_MIPI_DSI_N_LANES 0x2
// <o> Virtual channel ID
// <i> Defines Virtual Channel ID
// <i> Default: 0
#define RTE_MIPI_DSI_VC_ID 0
// <o> DPHY Clock Mode
// <0=> CONTINUOUS CLOCK_MODE
// <1=> NON CONTINUOUS CLOCK MODE
// <i> Defines DPHY Clock Mode
// <i> Default: NON CONTINUOUS CLOCK MODE
#define RTE_MIPI_DSI_NON_CONTINUOUS_CLOCK_MODE 1
// <o> DPHY PLL input division factor
// <i> Defines DPHY PLL input division factor
// <i> Default: 3
#define RTE_MIPI_DSI_PLL_INPUT_DIV_FACTOR_N 3
// <o> DPHY clock lane HS to LP transition time.
// <i> Defines DPHY clock lane HS to LP transition time.
// <i> Default: 35
#define RTE_MIPI_DSI_PHY_CLKHS2LP_TIME 35
// <o> DPHY clock lane LP to HS transition time.
// <i> Defines DPHY clock lane LP to HS transition time.
// <i> Default: 51
#define RTE_MIPI_DSI_PHY_CLKLP2HS_TIME 51
// <o> DPHY data lane HS to LP transition time.
// <i> Defines DPHY data lane HS to LP transition time.
// <i> Default: 20
#define RTE_MIPI_DSI_PHY_HS2LP_TIME 20
// <o> DPHY data lane LP to HS transition time.
// <i> Defines DPHY data lane LP to HS transition time.
// <i> Default: 40
#define RTE_MIPI_DSI_PHY_LP2HS_TIME 40
// <o> DSI TX escape clock division value.
// <i> Defines DSI TX escape clock division value.
// <i> Default: 2
#define RTE_MIPI_DSI_TX_ESC_CLK_DIVISION 2
// <o> DPI Video Mode
// <0=> NON_BURST SYNC_PULSES
// <1=> NON_BURST SYNC_EVENTS
// <2=> BURST MODE
// <i> Defines DPI Video Mode
// <i> Default:BURST MODE
#define RTE_MIPI_DSI_VID_MODE_TYPE 2
// <o> DSI Video number of Chunks
// <i> Defines Number of chunks used to transfer single video packet .
// <i> Default: 0
#define RTE_MIPI_DSI_VID_NUM_CHUNKS 0
// <o> DSI Size of NULL packet
// <i> Defines Size of the NULL packet.
// <i> Default: 0
#define RTE_MIPI_DSI_VID_NULL_SIZE 0
// <o> DPI interface color code
// <1=> 16bit
// <4=> 18bit
// <5=> 24bit
// <i> Defines Color code for DPI Interface
// <i> Default: 24bit
#define RTE_MIPI_DSI_DPI_COLOR_CODE 5
// <o> DPI DATAEN pin active state
// <0=> ACTIVE HIGH
// <1=> ACTIVE LOW
// <i> Defines DPI DATAEN pin active state
// <i> Default: ACTIVE HIGH
#define RTE_MIPI_DSI_DPI_DATAEN_ACTIVE_LOW 0
// <o> DPI VSYNC pin active state
// <0=> ACTIVE HIGH
// <1=> ACTIVE LOW
// <i> Defines DPI VSYNC pin active state
// <i> Default: ACTIVE LOW
#define RTE_MIPI_DSI_DPI_VSYNC_ACTIVE_LOW 1
// <o> DPI HSYNC pin active state
// <0=> ACTIVE HIGH
// <1=> ACTIVE LOW
// <i> Defines DPI HSYNC pin active state
// <i> Default: ACTIVE LOW
#define RTE_MIPI_DSI_DPI_HSYNC_ACTIVE_LOW 1
// <o> DPI SHUTD pin active state
// <0=> ACTIVE HIGH
// <1=> ACTIVE LOW
// <i> Defines DPI SHUTD pin active state
// <i> Default: ACTIVE HIGH
#define RTE_MIPI_DSI_DPI_SHUTD_ACTIVE_LOW 0
// <o> DPI COLORM pin active state
// <0=> ACTIVE HIGH
// <1=> ACTIVE LOW
// <i> Defines DPI COLORM pin active state
// <i> Default: ACTIVE HIGH
#define RTE_MIPI_DSI_DPI_COLORM_ACTIVE_LOW 0
// <o> DSI IRQ priority <0-255>
// <i> Defines Interrupt priority.
// <i> Default: 0
#define RTE_MIPI_DSI_IRQ_PRI 0
// <e> MIPI_DSI (ILI9806E_PANEL) [Driver_ILI9806E_PANEL]
// <o> DSI ILI9806E LCD PANEL
// <0=> DISABLE
// <1=> ENABLE
// <i> Defines DSI ILI9806E LCD PANEL
// <i> Default: ENABLE
#define RTE_MIPI_DSI_ILI9806E_PANEL 1
#if RTE_MIPI_DSI_ILI9806E_PANEL
// <o> DSI ILI9806E panel variant
// <0=> E43RB_FW405
// <1=> E43GB_MW405
// <2=> E50RA_MW550
// <i> Defines ILI9806E panel variant
// <i> Default: E43RB_FW405
#define RTE_ILI9806E_PANEL_VARIANT BOARD_ILI9806E_PANEL_VARIANT
#if (RTE_ILI9806E_PANEL_VARIANT == 0)
#define RTE_ILI9806E_PANEL_E43RB_FW405_EN 1
#elif (RTE_ILI9806E_PANEL_VARIANT == 1)
#define RTE_ILI9806E_PANEL_E43GB_MW405_EN 1
#elif (RTE_ILI9806E_PANEL_VARIANT == 2)
#define RTE_ILI9806E_PANEL_E50RA_MW550_EN 1
#endif
// <o> ILI9806 LCD panel maximum bitrate in mbps
// <i> Defines ILI9806 LCD panel maximum bitrate in mbps.
// <i> Default: 500
#define RTE_ILI9806E_PANEL_MAX_BITRATE_MBPS 500
// <o> ILI9806 LCD panel reset pin number
// <i> Defines ILI9806 LCD panel reset pin number.
// <i> Default: 5
#define RTE_ILI9806E_PANEL_RESET_PIN_NO BOARD_LCD_RESET_PIN_NO
// <o> ILI9806 LCD panel reset pin GPIO port number
// <i> Defines ILI9806 LCD panel reset pin GPIO port number.
// <i> Default: 15
#define RTE_ILI9806E_PANEL_RESET_GPIO_PORT BOARD_LCD_RESET_GPIO_PORT
// <o> ILI9806 LCD panel back light pin number
// <i> Defines ILI9806 LCD panel back light pin number.
// <i> Default: 1
#define RTE_ILI9806E_PANEL_BL_LED_PIN_NO BOARD_LCD_BACKLIGHT_PIN_NO
// <o> ILI9806 LCD panel back light pin GPIO port number
// <i> Defines ILI9806 LCD panel back light pin GPIO port number.
// <i> Default: 6
#define RTE_ILI9806E_PANEL_BL_LED_GPIO_PORT BOARD_LCD_BACKLIGHT_GPIO_PORT
// <e> MIPI_DSI (ILI9806E_PANEL_E43RB_FW405 | ILI9806E_PANEL_E43GB_MW405) [Driver_ILI9806E_PANEL]
#if (RTE_ILI9806E_PANEL_E43RB_FW405_EN || RTE_ILI9806E_PANEL_E43GB_MW405_EN)
// <o> Panel hsync time in pixels
// <i> Defines ILI9806 LCD panel hsync time in pixels.
// <i> Default: 4
#define RTE_PANEL_HSYNC_TIME 4
// <o> Panel FW405/MW405 hbp time in pixels
// <i> Defines ILI9806 LCD panel hbp time in pixels.
// <i> Default: 5
#define RTE_PANEL_HBP_TIME 5
// <o> Panel FW405/MW405 hfp time in pixels
// <i> Defines ILI9806 LCD panel hfp time in pixels.
// <i> Default: 5
#define RTE_PANEL_HFP_TIME 5
// <o> Panel FW405/MW405 hactive pixels
// <i> Defines ILI9806 LCD panel hactive pixels.
// <i> Default: 480
#define RTE_PANEL_HACTIVE_TIME 480
// <o> Panel FW405/MW405 vsync time in lines
// <i> Defines ILI9806 LCD panel vsync time in lines.
// <i> Default: 2
#define RTE_PANEL_VSYNC_LINE 2
// <o> Panel FW405/MW405 vbp time in lines
// <i> Defines ILI9806 LCD panel vbp time in lines.
// <i> Default: 10
#define RTE_PANEL_VBP_LINE 10
// <o> Panel FW405/MW405 vfp time in lines
// <i> Defines ILI9806 LCD panel vfp time in lines.
// <i> Default: 10
#define RTE_PANEL_VFP_LINE 10
// <o> Panel FW405/MW405 vactive lines
// <i> Defines ILI9806 LCD panel vactive lines.
// <i> Default: 800
#define RTE_PANEL_VACTIVE_LINE 800
// </e> MIPI_DSI (ILI9806E_PANEL_E43RB_FW405 | ILI9806E_PANEL_E43GB_MW405) [Driver_ILI9806E_PANEL]
// <e> MIPI_DSI (ILI9806E_PANEL_E50RA_MW550) [Driver_ILI9806E_PANEL]
#elif RTE_ILI9806E_PANEL_E50RA_MW550_EN
// <o> Panel MW550 hsync time in pixels
// <i> Defines ILI9806 LCD panel hsync time in pixels.
// <i> Default: 4
#define RTE_PANEL_HSYNC_TIME 4
// <o> Panel MW550 hbp time in pixels
// <i> Defines ILI9806 LCD panel hbp time in pixels.
// <i> Default: 30
#define RTE_PANEL_HBP_TIME 30
// <o> Panel MW550 hfp time in pixels
// <i> Defines ILI9806 LCD panel hfp time in pixels.
// <i> Default: 18
#define RTE_PANEL_HFP_TIME 18
// <o> Panel MW550 hactive pixels
// <i> Defines ILI9806 LCD panel hactive pixels.
// <i> Default: 480
#define RTE_PANEL_HACTIVE_TIME 480
// <o> Panel MW550 vsync time in lines
// <i> Defines ILI9806 LCD panel vsync time in lines.
// <i> Default: 4
#define RTE_PANEL_VSYNC_LINE 4
// <o> Panel MW550 vbp time in lines
// <i> Defines ILI9806 LCD panel vbp time in lines.
// <i> Default: 30
#define RTE_PANEL_VBP_LINE 30
// <o> Panel MW550 vfp time in lines
// <i> Defines ILI9806 LCD panel vfp time in lines.
// <i> Default: 20
#define RTE_PANEL_VFP_LINE 20
// <o> Panel MW550 vactive lines
// <i> Defines ILI9806 LCD panel vactive lines.
// <i> Default: 854
#define RTE_PANEL_VACTIVE_LINE 854
#endif
// </e> MIPI_DSI (ILI9806E_PANEL_E50RA_MW550) [Driver_ILI9806E_PANEL]
#endif
// </e> MIPI_DSI (ILI9806E_PANEL) [Driver_ILI9806E_PANEL]
#endif
// </e> MIPI_DSI (mipi dsi) [Driver_MIPI_DSI]
// <e> TOUCH_SCREEN (touch screen) [Driver_Touch_Screen]
// <i> Configuration settings for Driver_Touch_Screen in component ::Drivers:touch screen
#define RTE_TOUCH_SCREEN 1
#if RTE_TOUCH_SCREEN
// <o> GT911 Touch screen
// <0=> DISABLE
// <1=> ENABLE
// <i> Defines GT911 Touch screen
// <i> Default: ENABLE
#define RTE_GT911 1
#if RTE_GT911
// <o> select active touch points
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <i> defines select active touch points
// <i> default: 5
#define RTE_ACTIVE_TOUCH_POINTS 5
// <o> GT911 Touch screen reset pin GPIO port number range <0-15>
// <i> Defines GT911 Touch screen reset pin GPIO port number.
// <i> Default: 4
#define RTE_GT911_TOUCH_RESET_GPIO_PORT BOARD_TOUCH_RESET_GPIO_PORT
// <o> GT911 Touch screen reset pin number range <0-7>
// <i> Defines GT911 Touch screen reset pin number.
// <i> Default: 0
#define RTE_GT911_TOUCH_RESET_PIN_NO BOARD_TOUCH_RESET_PIN_NO
// <o> GT911 Touch screen INT pin GPIO port number range <0-15>
// <i> Defines GT911 Touch screen INT pin GPIO port number.
// <i> Default: 9
#define RTE_GT911_TOUCH_INT_GPIO_PORT BOARD_TOUCH_INT_GPIO_PORT
// <o> GT911 Touch screen INT pin number range <0-7>
// <i> Defines GT911 Touch screen INT pin number.
// <i> Default: 4
#define RTE_GT911_TOUCH_INT_PIN_NO BOARD_TOUCH_INT_PIN_NO
// <o RTE_GT911_TOUCH_I2C_INSTANCE> Select GT911 Touchscreen i2c instance
// <i> Defines GT911 Touchscreen i2c instance
// <0=> I2C0
// <1=> I2C1
// <2=> I2C2
// <3=> I2C3
// <I3C=> I2C OVER I3C
// <i> Default: 1
#define RTE_GT911_TOUCH_I2C_INSTANCE 1
#endif
#endif
// </e> TOUCH_SCREEN (touch screen) [Driver_Touch_Screen]
// <e> CDC200 (cdc200) [Driver_CDC200]
// <i> Configuration settings for Driver_CDC200 in component ::Drivers:CDC200
#define RTE_CDC200 1
#if RTE_CDC200
// <o> CDC200 IRQ priority <0-255>
// <i> Defines Interrupt priority.
// <i> Default: 0
#define RTE_CDC200_IRQ_PRI 0
// <o> CDC200 clock select
// <0=> 400 MHz clock source (PLL_CLK1/2)
// <1=> 480 MHz clock source (PLL_CLK3)
// <i> Defines CDC200 clock select
// <i> Default: 400 MHz clock source (PLL_CLK1/2)
#define RTE_CDC200_CLK_SEL 0
// <o> CDC200 background color red <0-255>
// <i> Defines CDC200 background color red.
// <i> Default: 0
#define RTE_CDC200_BGC_RED 0
// <o> CDC200 background color green <0-255>
// <i> Defines CDC200 background color green.
// <i> Default: 0
#define RTE_CDC200_BGC_GREEN 0
// <o> CDC200 background color blue <0-255>
// <i> Defines CDC200 background color blue.
// <i> Default: 0
#define RTE_CDC200_BGC_BLUE 0
// <o> CDC200 pixel format
// <0=> ARGB8888
// <1=> RGB888
// <2=> RGB565
// <i> Defines CDC200 pixel format
// <i> Default: RGB888
#define RTE_CDC200_PIXEL_FORMAT 1
// <o> CDC200 Constant alpha <0-255>
// <i> Defines CDC200 constant alpha range from 0 (fully transparent) to 255 or 1.0 (fully opaque).
// <i> Default: 255
#define RTE_CDC200_CONSTANT_ALPHA 255
// <o> CDC200 blending factor
// <0=> CONST_ALPHA
// <1=> PIXEL_ALPHA_X_CONST_ALPHA
// <i> Defines CDC200 blending factor selection.
// <i> Default: PIXEL_ALPHA_X_CONST_ALPHA
#define RTE_CDC200_BLEND_FACTOR 1
// <o> CDC200 DPI interface FPS
// <i> Defines CDC200 DPI interface Framrate per second.
// <i> Default: 60
#define RTE_CDC200_DPI_FPS 60
// <o> Parallel ILI6122 LCD PANEL
// <0=> DISABLE
// <1=> ENABLE
// <i> Defines Parallel ILI6122 LCD PANEL
// <i> Default: ENABLE
#define RTE_ILI6122_PANEL 0
#if RTE_ILI6122_PANEL
// <o> Panel hsync time in pixels
// <i> Defines ILI6122 LCD panel hsync time in pixels.
// <i> Default: 1
#define RTE_PANEL_HSYNC_TIME 1
// <o> Panel hbp time in pixels
// <i> Defines ILI6122 LCD panel hbp time in pixels.
// <i> Default: 46
#define RTE_PANEL_HBP_TIME 46
// <o> Panel hfp time in pixels
// <i> Defines ILI6122 LCD panel hfp time in pixels.
// <i> Default: 210
#define RTE_PANEL_HFP_TIME 210
// <o> Panel hactive pixels
// <i> Defines ILI6122 LCD panel hactive pixels.
// <i> Default: 800
#define RTE_PANEL_HACTIVE_TIME 800
// <o> Panel vsync time in lines
// <i> Defines ILI6122 LCD panel vsync time in lines.
// <i> Default: 1
#define RTE_PANEL_VSYNC_LINE 1
// <o> Panel vbp time in lines
// <i> Defines ILI6122 LCD panel vbp time in lines.
// <i> Default: 23
#define RTE_PANEL_VBP_LINE 23
// <o> Panel vfp time in lines
// <i> Defines ILI6122 LCD panel vfp time in lines.
// <i> Default: 22
#define RTE_PANEL_VFP_LINE 22
// <o> Panel vactive lines
// <i> Defines ILI6122 LCD panel vactive lines.
// <i> Default: 480
#define RTE_PANEL_VACTIVE_LINE 480
#endif
#endif
// </e> CDC200 (cdc200) [Driver_CDC200]
// <e> I3C (Improved Inter-Integrated Circuit) [Driver_I3C]
// <i> Configuration settings for Driver_I3C in component ::Drivers:I3C
#define RTE_I3C 1
#if RTE_I3C
#define RTE_I3C_IRQ_PRI 0
// <e> I2C (Inter Integrated Circuit) [Driver_I2CI3C]