SAME54P20A Test Project
hmatrix.h
Go to the documentation of this file.
1 
30 #ifndef _SAME54_HMATRIX_INSTANCE_
31 #define _SAME54_HMATRIX_INSTANCE_
32 
33 /* ========== Register definition for HMATRIX peripheral ========== */
34 #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
35 #define REG_HMATRIX_PRAS0 (0x4100C080)
36 #define REG_HMATRIX_PRBS0 (0x4100C084)
37 #define REG_HMATRIX_PRAS1 (0x4100C088)
38 #define REG_HMATRIX_PRBS1 (0x4100C08C)
39 #define REG_HMATRIX_PRAS2 (0x4100C090)
40 #define REG_HMATRIX_PRBS2 (0x4100C094)
41 #define REG_HMATRIX_PRAS3 (0x4100C098)
42 #define REG_HMATRIX_PRBS3 (0x4100C09C)
43 #define REG_HMATRIX_PRAS4 (0x4100C0A0)
44 #define REG_HMATRIX_PRBS4 (0x4100C0A4)
45 #define REG_HMATRIX_PRAS5 (0x4100C0A8)
46 #define REG_HMATRIX_PRBS5 (0x4100C0AC)
47 #define REG_HMATRIX_PRAS6 (0x4100C0B0)
48 #define REG_HMATRIX_PRBS6 (0x4100C0B4)
49 #define REG_HMATRIX_PRAS7 (0x4100C0B8)
50 #define REG_HMATRIX_PRBS7 (0x4100C0BC)
51 #define REG_HMATRIX_PRAS8 (0x4100C0C0)
52 #define REG_HMATRIX_PRBS8 (0x4100C0C4)
53 #define REG_HMATRIX_PRAS9 (0x4100C0C8)
54 #define REG_HMATRIX_PRBS9 (0x4100C0CC)
55 #define REG_HMATRIX_PRAS10 (0x4100C0D0)
56 #define REG_HMATRIX_PRBS10 (0x4100C0D4)
57 #define REG_HMATRIX_PRAS11 (0x4100C0D8)
58 #define REG_HMATRIX_PRBS11 (0x4100C0DC)
59 #define REG_HMATRIX_PRAS12 (0x4100C0E0)
60 #define REG_HMATRIX_PRBS12 (0x4100C0E4)
61 #define REG_HMATRIX_PRAS13 (0x4100C0E8)
62 #define REG_HMATRIX_PRBS13 (0x4100C0EC)
63 #define REG_HMATRIX_PRAS14 (0x4100C0F0)
64 #define REG_HMATRIX_PRBS14 (0x4100C0F4)
65 #define REG_HMATRIX_PRAS15 (0x4100C0F8)
66 #define REG_HMATRIX_PRBS15 (0x4100C0FC)
67 #else
68 #define REG_HMATRIX_PRAS0 (*(RwReg *)0x4100C080UL)
69 #define REG_HMATRIX_PRBS0 (*(RwReg *)0x4100C084UL)
70 #define REG_HMATRIX_PRAS1 (*(RwReg *)0x4100C088UL)
71 #define REG_HMATRIX_PRBS1 (*(RwReg *)0x4100C08CUL)
72 #define REG_HMATRIX_PRAS2 (*(RwReg *)0x4100C090UL)
73 #define REG_HMATRIX_PRBS2 (*(RwReg *)0x4100C094UL)
74 #define REG_HMATRIX_PRAS3 (*(RwReg *)0x4100C098UL)
75 #define REG_HMATRIX_PRBS3 (*(RwReg *)0x4100C09CUL)
76 #define REG_HMATRIX_PRAS4 (*(RwReg *)0x4100C0A0UL)
77 #define REG_HMATRIX_PRBS4 (*(RwReg *)0x4100C0A4UL)
78 #define REG_HMATRIX_PRAS5 (*(RwReg *)0x4100C0A8UL)
79 #define REG_HMATRIX_PRBS5 (*(RwReg *)0x4100C0ACUL)
80 #define REG_HMATRIX_PRAS6 (*(RwReg *)0x4100C0B0UL)
81 #define REG_HMATRIX_PRBS6 (*(RwReg *)0x4100C0B4UL)
82 #define REG_HMATRIX_PRAS7 (*(RwReg *)0x4100C0B8UL)
83 #define REG_HMATRIX_PRBS7 (*(RwReg *)0x4100C0BCUL)
84 #define REG_HMATRIX_PRAS8 (*(RwReg *)0x4100C0C0UL)
85 #define REG_HMATRIX_PRBS8 (*(RwReg *)0x4100C0C4UL)
86 #define REG_HMATRIX_PRAS9 (*(RwReg *)0x4100C0C8UL)
87 #define REG_HMATRIX_PRBS9 (*(RwReg *)0x4100C0CCUL)
88 #define REG_HMATRIX_PRAS10 (*(RwReg *)0x4100C0D0UL)
89 #define REG_HMATRIX_PRBS10 (*(RwReg *)0x4100C0D4UL)
90 #define REG_HMATRIX_PRAS11 (*(RwReg *)0x4100C0D8UL)
91 #define REG_HMATRIX_PRBS11 (*(RwReg *)0x4100C0DCUL)
92 #define REG_HMATRIX_PRAS12 (*(RwReg *)0x4100C0E0UL)
93 #define REG_HMATRIX_PRBS12 (*(RwReg *)0x4100C0E4UL)
94 #define REG_HMATRIX_PRAS13 (*(RwReg *)0x4100C0E8UL)
95 #define REG_HMATRIX_PRBS13 (*(RwReg *)0x4100C0ECUL)
96 #define REG_HMATRIX_PRAS14 (*(RwReg *)0x4100C0F0UL)
97 #define REG_HMATRIX_PRBS14 (*(RwReg *)0x4100C0F4UL)
98 #define REG_HMATRIX_PRAS15 (*(RwReg *)0x4100C0F8UL)
99 #define REG_HMATRIX_PRBS15 (*(RwReg *)0x4100C0FCUL)
100 #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
101 
102 /* ========== Instance parameters for HMATRIX peripheral ========== */
103 #define HMATRIX_CLK_AHB_ID 5 // Index of AHB Clock in MCLK.AHBMASK register (MASK may be tied to 1 depending on chip integration)
104 #define HMATRIX_DEFINED
105 /* ========== Instance parameters for HMATRIX ========== */
106 #define HMATRIX_SLAVE_FLASH 0
107 #define HMATRIX_SLAVE_FLASH_ALT 1
108 #define HMATRIX_SLAVE_SEEPROM 2
109 #define HMATRIX_SLAVE_RAMCM4S 3
110 #define HMATRIX_SLAVE_RAMPPPDSU 4
111 #define HMATRIX_SLAVE_RAMDMAWR 5
112 #define HMATRIX_SLAVE_RAMDMACICM 6
113 #define HMATRIX_SLAVE_HPB0 7
114 #define HMATRIX_SLAVE_HPB1 8
115 #define HMATRIX_SLAVE_HPB2 9
116 #define HMATRIX_SLAVE_HPB3 10
117 #define HMATRIX_SLAVE_SDHC0 12
118 #define HMATRIX_SLAVE_SDHC1 13
119 #define HMATRIX_SLAVE_QSPI 14
120 #define HMATRIX_SLAVE_BKUPRAM 15
121 #define HMATRIX_SLAVE_NUM 16
122 
123 #define HMATRIX_MASTER_CM4_S 0
124 #define HMATRIX_MASTER_CMCC 1
125 #define HMATRIX_MASTER_PICOP_MEM 2
126 #define HMATRIX_MASTER_PICOP_IO 3
127 #define HMATRIX_MASTER_DMAC_DTWR 4
128 #define HMATRIX_MASTER_DMAC_DTRD 5
129 #define HMATRIX_MASTER_ICM 6
130 #define HMATRIX_MASTER_DSU 7
131 #define HMATRIX_MASTER_NUM 8
132 
133 #endif /* _SAME54_HMATRIX_INSTANCE_ */