SAME54P20A Test Project
sdhc1.h
Go to the documentation of this file.
1 
30 #ifndef _SAME54_SDHC1_INSTANCE_
31 #define _SAME54_SDHC1_INSTANCE_
32 
33 /* ========== Register definition for SDHC1 peripheral ========== */
34 #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
35 #define REG_SDHC1_SSAR (0x46000000)
36 #define REG_SDHC1_BSR (0x46000004)
37 #define REG_SDHC1_BCR (0x46000006)
38 #define REG_SDHC1_ARG1R (0x46000008)
39 #define REG_SDHC1_TMR (0x4600000C)
40 #define REG_SDHC1_CR (0x4600000E)
41 #define REG_SDHC1_RR0 (0x46000010)
42 #define REG_SDHC1_RR1 (0x46000014)
43 #define REG_SDHC1_RR2 (0x46000018)
44 #define REG_SDHC1_RR3 (0x4600001C)
45 #define REG_SDHC1_BDPR (0x46000020)
46 #define REG_SDHC1_PSR (0x46000024)
47 #define REG_SDHC1_HC1R (0x46000028)
48 #define REG_SDHC1_PCR (0x46000029)
49 #define REG_SDHC1_BGCR (0x4600002A)
50 #define REG_SDHC1_WCR (0x4600002B)
51 #define REG_SDHC1_CCR (0x4600002C)
52 #define REG_SDHC1_TCR (0x4600002E)
53 #define REG_SDHC1_SRR (0x4600002F)
54 #define REG_SDHC1_NISTR (0x46000030)
55 #define REG_SDHC1_EISTR (0x46000032)
56 #define REG_SDHC1_NISTER (0x46000034)
57 #define REG_SDHC1_EISTER (0x46000036)
58 #define REG_SDHC1_NISIER (0x46000038)
59 #define REG_SDHC1_EISIER (0x4600003A)
60 #define REG_SDHC1_ACESR (0x4600003C)
61 #define REG_SDHC1_HC2R (0x4600003E)
62 #define REG_SDHC1_CA0R (0x46000040)
63 #define REG_SDHC1_CA1R (0x46000044)
64 #define REG_SDHC1_MCCAR (0x46000048)
65 #define REG_SDHC1_FERACES (0x46000050)
66 #define REG_SDHC1_FEREIS (0x46000052)
67 #define REG_SDHC1_AESR (0x46000054)
68 #define REG_SDHC1_ASAR0 (0x46000058)
69 #define REG_SDHC1_PVR0 (0x46000060)
70 #define REG_SDHC1_PVR1 (0x46000062)
71 #define REG_SDHC1_PVR2 (0x46000064)
72 #define REG_SDHC1_PVR3 (0x46000066)
73 #define REG_SDHC1_PVR4 (0x46000068)
74 #define REG_SDHC1_PVR5 (0x4600006A)
75 #define REG_SDHC1_PVR6 (0x4600006C)
76 #define REG_SDHC1_PVR7 (0x4600006E)
77 #define REG_SDHC1_SISR (0x460000FC)
78 #define REG_SDHC1_HCVR (0x460000FE)
79 #define REG_SDHC1_MC1R (0x46000204)
80 #define REG_SDHC1_MC2R (0x46000205)
81 #define REG_SDHC1_ACR (0x46000208)
82 #define REG_SDHC1_CC2R (0x4600020C)
83 #define REG_SDHC1_CACR (0x46000230)
84 #define REG_SDHC1_DBGR (0x46000234)
85 #else
86 #define REG_SDHC1_SSAR (*(RwReg *)0x46000000UL)
87 #define REG_SDHC1_BSR (*(RwReg16*)0x46000004UL)
88 #define REG_SDHC1_BCR (*(RwReg16*)0x46000006UL)
89 #define REG_SDHC1_ARG1R (*(RwReg *)0x46000008UL)
90 #define REG_SDHC1_TMR (*(RwReg16*)0x4600000CUL)
91 #define REG_SDHC1_CR (*(RwReg16*)0x4600000EUL)
92 #define REG_SDHC1_RR0 (*(RoReg *)0x46000010UL)
93 #define REG_SDHC1_RR1 (*(RoReg *)0x46000014UL)
94 #define REG_SDHC1_RR2 (*(RoReg *)0x46000018UL)
95 #define REG_SDHC1_RR3 (*(RoReg *)0x4600001CUL)
96 #define REG_SDHC1_BDPR (*(RwReg *)0x46000020UL)
97 #define REG_SDHC1_PSR (*(RoReg *)0x46000024UL)
98 #define REG_SDHC1_HC1R (*(RwReg8 *)0x46000028UL)
99 #define REG_SDHC1_PCR (*(RwReg8 *)0x46000029UL)
100 #define REG_SDHC1_BGCR (*(RwReg8 *)0x4600002AUL)
101 #define REG_SDHC1_WCR (*(RwReg8 *)0x4600002BUL)
102 #define REG_SDHC1_CCR (*(RwReg16*)0x4600002CUL)
103 #define REG_SDHC1_TCR (*(RwReg8 *)0x4600002EUL)
104 #define REG_SDHC1_SRR (*(RwReg8 *)0x4600002FUL)
105 #define REG_SDHC1_NISTR (*(RwReg16*)0x46000030UL)
106 #define REG_SDHC1_EISTR (*(RwReg16*)0x46000032UL)
107 #define REG_SDHC1_NISTER (*(RwReg16*)0x46000034UL)
108 #define REG_SDHC1_EISTER (*(RwReg16*)0x46000036UL)
109 #define REG_SDHC1_NISIER (*(RwReg16*)0x46000038UL)
110 #define REG_SDHC1_EISIER (*(RwReg16*)0x4600003AUL)
111 #define REG_SDHC1_ACESR (*(RoReg16*)0x4600003CUL)
112 #define REG_SDHC1_HC2R (*(RwReg16*)0x4600003EUL)
113 #define REG_SDHC1_CA0R (*(RoReg *)0x46000040UL)
114 #define REG_SDHC1_CA1R (*(RoReg *)0x46000044UL)
115 #define REG_SDHC1_MCCAR (*(RoReg *)0x46000048UL)
116 #define REG_SDHC1_FERACES (*(WoReg16*)0x46000050UL)
117 #define REG_SDHC1_FEREIS (*(WoReg16*)0x46000052UL)
118 #define REG_SDHC1_AESR (*(RoReg8 *)0x46000054UL)
119 #define REG_SDHC1_ASAR0 (*(RwReg *)0x46000058UL)
120 #define REG_SDHC1_PVR0 (*(RwReg16*)0x46000060UL)
121 #define REG_SDHC1_PVR1 (*(RwReg16*)0x46000062UL)
122 #define REG_SDHC1_PVR2 (*(RwReg16*)0x46000064UL)
123 #define REG_SDHC1_PVR3 (*(RwReg16*)0x46000066UL)
124 #define REG_SDHC1_PVR4 (*(RwReg16*)0x46000068UL)
125 #define REG_SDHC1_PVR5 (*(RwReg16*)0x4600006AUL)
126 #define REG_SDHC1_PVR6 (*(RwReg16*)0x4600006CUL)
127 #define REG_SDHC1_PVR7 (*(RwReg16*)0x4600006EUL)
128 #define REG_SDHC1_SISR (*(RoReg16*)0x460000FCUL)
129 #define REG_SDHC1_HCVR (*(RoReg16*)0x460000FEUL)
130 #define REG_SDHC1_MC1R (*(RwReg8 *)0x46000204UL)
131 #define REG_SDHC1_MC2R (*(WoReg8 *)0x46000205UL)
132 #define REG_SDHC1_ACR (*(RwReg *)0x46000208UL)
133 #define REG_SDHC1_CC2R (*(RwReg *)0x4600020CUL)
134 #define REG_SDHC1_CACR (*(RwReg *)0x46000230UL)
135 #define REG_SDHC1_DBGR (*(RwReg8 *)0x46000234UL)
136 #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
137 
138 /* ========== Instance parameters for SDHC1 peripheral ========== */
139 #define SDHC1_CARD_DATA_SIZE 4
140 #define SDHC1_CLK_AHB_ID 16
141 #define SDHC1_GCLK_ID 46
142 #define SDHC1_GCLK_ID_SLOW 3
143 #define SDHC1_NB_OF_DEVICES 1
144 #define SDHC1_NB_REG_PVR 8
145 #define SDHC1_NB_REG_RR 4
146 
147 #endif /* _SAME54_SDHC1_INSTANCE_ */