Robobo
instance_can1.h
1 /* ----------------------------------------------------------------------------
2  * SAM Software Package License
3  * ----------------------------------------------------------------------------
4  * Copyright (c) 2012, Atmel Corporation
5  *
6  * All rights reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following condition is met:
10  *
11  * - Redistributions of source code must retain the above copyright notice,
12  * this list of conditions and the disclaimer below.
13  *
14  * Atmel's name may not be used to endorse or promote products derived from
15  * this software without specific prior written permission.
16  *
17  * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR
18  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
20  * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,
21  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
23  * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
24  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
26  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27  * ----------------------------------------------------------------------------
28  */
29 
30 #ifndef _SAM3XA_CAN1_INSTANCE_
31 #define _SAM3XA_CAN1_INSTANCE_
32 
33 /* ========== Register definition for CAN1 peripheral ========== */
34 #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
35 #define REG_CAN1_MR (0x400B8000U)
36 #define REG_CAN1_IER (0x400B8004U)
37 #define REG_CAN1_IDR (0x400B8008U)
38 #define REG_CAN1_IMR (0x400B800CU)
39 #define REG_CAN1_SR (0x400B8010U)
40 #define REG_CAN1_BR (0x400B8014U)
41 #define REG_CAN1_TIM (0x400B8018U)
42 #define REG_CAN1_TIMESTP (0x400B801CU)
43 #define REG_CAN1_ECR (0x400B8020U)
44 #define REG_CAN1_TCR (0x400B8024U)
45 #define REG_CAN1_ACR (0x400B8028U)
46 #define REG_CAN1_WPMR (0x400B80E4U)
47 #define REG_CAN1_WPSR (0x400B80E8U)
48 #define REG_CAN1_MMR0 (0x400B8200U)
49 #define REG_CAN1_MAM0 (0x400B8204U)
50 #define REG_CAN1_MID0 (0x400B8208U)
51 #define REG_CAN1_MFID0 (0x400B820CU)
52 #define REG_CAN1_MSR0 (0x400B8210U)
53 #define REG_CAN1_MDL0 (0x400B8214U)
54 #define REG_CAN1_MDH0 (0x400B8218U)
55 #define REG_CAN1_MCR0 (0x400B821CU)
56 #define REG_CAN1_MMR1 (0x400B8220U)
57 #define REG_CAN1_MAM1 (0x400B8224U)
58 #define REG_CAN1_MID1 (0x400B8228U)
59 #define REG_CAN1_MFID1 (0x400B822CU)
60 #define REG_CAN1_MSR1 (0x400B8230U)
61 #define REG_CAN1_MDL1 (0x400B8234U)
62 #define REG_CAN1_MDH1 (0x400B8238U)
63 #define REG_CAN1_MCR1 (0x400B823CU)
64 #define REG_CAN1_MMR2 (0x400B8240U)
65 #define REG_CAN1_MAM2 (0x400B8244U)
66 #define REG_CAN1_MID2 (0x400B8248U)
67 #define REG_CAN1_MFID2 (0x400B824CU)
68 #define REG_CAN1_MSR2 (0x400B8250U)
69 #define REG_CAN1_MDL2 (0x400B8254U)
70 #define REG_CAN1_MDH2 (0x400B8258U)
71 #define REG_CAN1_MCR2 (0x400B825CU)
72 #define REG_CAN1_MMR3 (0x400B8260U)
73 #define REG_CAN1_MAM3 (0x400B8264U)
74 #define REG_CAN1_MID3 (0x400B8268U)
75 #define REG_CAN1_MFID3 (0x400B826CU)
76 #define REG_CAN1_MSR3 (0x400B8270U)
77 #define REG_CAN1_MDL3 (0x400B8274U)
78 #define REG_CAN1_MDH3 (0x400B8278U)
79 #define REG_CAN1_MCR3 (0x400B827CU)
80 #define REG_CAN1_MMR4 (0x400B8280U)
81 #define REG_CAN1_MAM4 (0x400B8284U)
82 #define REG_CAN1_MID4 (0x400B8288U)
83 #define REG_CAN1_MFID4 (0x400B828CU)
84 #define REG_CAN1_MSR4 (0x400B8290U)
85 #define REG_CAN1_MDL4 (0x400B8294U)
86 #define REG_CAN1_MDH4 (0x400B8298U)
87 #define REG_CAN1_MCR4 (0x400B829CU)
88 #define REG_CAN1_MMR5 (0x400B82A0U)
89 #define REG_CAN1_MAM5 (0x400B82A4U)
90 #define REG_CAN1_MID5 (0x400B82A8U)
91 #define REG_CAN1_MFID5 (0x400B82ACU)
92 #define REG_CAN1_MSR5 (0x400B82B0U)
93 #define REG_CAN1_MDL5 (0x400B82B4U)
94 #define REG_CAN1_MDH5 (0x400B82B8U)
95 #define REG_CAN1_MCR5 (0x400B82BCU)
96 #define REG_CAN1_MMR6 (0x400B82C0U)
97 #define REG_CAN1_MAM6 (0x400B82C4U)
98 #define REG_CAN1_MID6 (0x400B82C8U)
99 #define REG_CAN1_MFID6 (0x400B82CCU)
100 #define REG_CAN1_MSR6 (0x400B82D0U)
101 #define REG_CAN1_MDL6 (0x400B82D4U)
102 #define REG_CAN1_MDH6 (0x400B82D8U)
103 #define REG_CAN1_MCR6 (0x400B82DCU)
104 #define REG_CAN1_MMR7 (0x400B82E0U)
105 #define REG_CAN1_MAM7 (0x400B82E4U)
106 #define REG_CAN1_MID7 (0x400B82E8U)
107 #define REG_CAN1_MFID7 (0x400B82ECU)
108 #define REG_CAN1_MSR7 (0x400B82F0U)
109 #define REG_CAN1_MDL7 (0x400B82F4U)
110 #define REG_CAN1_MDH7 (0x400B82F8U)
111 #define REG_CAN1_MCR7 (0x400B82FCU)
112 #else
113 #define REG_CAN1_MR (*(RwReg*)0x400B8000U)
114 #define REG_CAN1_IER (*(WoReg*)0x400B8004U)
115 #define REG_CAN1_IDR (*(WoReg*)0x400B8008U)
116 #define REG_CAN1_IMR (*(RoReg*)0x400B800CU)
117 #define REG_CAN1_SR (*(RoReg*)0x400B8010U)
118 #define REG_CAN1_BR (*(RwReg*)0x400B8014U)
119 #define REG_CAN1_TIM (*(RoReg*)0x400B8018U)
120 #define REG_CAN1_TIMESTP (*(RoReg*)0x400B801CU)
121 #define REG_CAN1_ECR (*(RoReg*)0x400B8020U)
122 #define REG_CAN1_TCR (*(WoReg*)0x400B8024U)
123 #define REG_CAN1_ACR (*(WoReg*)0x400B8028U)
124 #define REG_CAN1_WPMR (*(RwReg*)0x400B80E4U)
125 #define REG_CAN1_WPSR (*(RoReg*)0x400B80E8U)
126 #define REG_CAN1_MMR0 (*(RwReg*)0x400B8200U)
127 #define REG_CAN1_MAM0 (*(RwReg*)0x400B8204U)
128 #define REG_CAN1_MID0 (*(RwReg*)0x400B8208U)
129 #define REG_CAN1_MFID0 (*(RoReg*)0x400B820CU)
130 #define REG_CAN1_MSR0 (*(RoReg*)0x400B8210U)
131 #define REG_CAN1_MDL0 (*(RwReg*)0x400B8214U)
132 #define REG_CAN1_MDH0 (*(RwReg*)0x400B8218U)
133 #define REG_CAN1_MCR0 (*(WoReg*)0x400B821CU)
134 #define REG_CAN1_MMR1 (*(RwReg*)0x400B8220U)
135 #define REG_CAN1_MAM1 (*(RwReg*)0x400B8224U)
136 #define REG_CAN1_MID1 (*(RwReg*)0x400B8228U)
137 #define REG_CAN1_MFID1 (*(RoReg*)0x400B822CU)
138 #define REG_CAN1_MSR1 (*(RoReg*)0x400B8230U)
139 #define REG_CAN1_MDL1 (*(RwReg*)0x400B8234U)
140 #define REG_CAN1_MDH1 (*(RwReg*)0x400B8238U)
141 #define REG_CAN1_MCR1 (*(WoReg*)0x400B823CU)
142 #define REG_CAN1_MMR2 (*(RwReg*)0x400B8240U)
143 #define REG_CAN1_MAM2 (*(RwReg*)0x400B8244U)
144 #define REG_CAN1_MID2 (*(RwReg*)0x400B8248U)
145 #define REG_CAN1_MFID2 (*(RoReg*)0x400B824CU)
146 #define REG_CAN1_MSR2 (*(RoReg*)0x400B8250U)
147 #define REG_CAN1_MDL2 (*(RwReg*)0x400B8254U)
148 #define REG_CAN1_MDH2 (*(RwReg*)0x400B8258U)
149 #define REG_CAN1_MCR2 (*(WoReg*)0x400B825CU)
150 #define REG_CAN1_MMR3 (*(RwReg*)0x400B8260U)
151 #define REG_CAN1_MAM3 (*(RwReg*)0x400B8264U)
152 #define REG_CAN1_MID3 (*(RwReg*)0x400B8268U)
153 #define REG_CAN1_MFID3 (*(RoReg*)0x400B826CU)
154 #define REG_CAN1_MSR3 (*(RoReg*)0x400B8270U)
155 #define REG_CAN1_MDL3 (*(RwReg*)0x400B8274U)
156 #define REG_CAN1_MDH3 (*(RwReg*)0x400B8278U)
157 #define REG_CAN1_MCR3 (*(WoReg*)0x400B827CU)
158 #define REG_CAN1_MMR4 (*(RwReg*)0x400B8280U)
159 #define REG_CAN1_MAM4 (*(RwReg*)0x400B8284U)
160 #define REG_CAN1_MID4 (*(RwReg*)0x400B8288U)
161 #define REG_CAN1_MFID4 (*(RoReg*)0x400B828CU)
162 #define REG_CAN1_MSR4 (*(RoReg*)0x400B8290U)
163 #define REG_CAN1_MDL4 (*(RwReg*)0x400B8294U)
164 #define REG_CAN1_MDH4 (*(RwReg*)0x400B8298U)
165 #define REG_CAN1_MCR4 (*(WoReg*)0x400B829CU)
166 #define REG_CAN1_MMR5 (*(RwReg*)0x400B82A0U)
167 #define REG_CAN1_MAM5 (*(RwReg*)0x400B82A4U)
168 #define REG_CAN1_MID5 (*(RwReg*)0x400B82A8U)
169 #define REG_CAN1_MFID5 (*(RoReg*)0x400B82ACU)
170 #define REG_CAN1_MSR5 (*(RoReg*)0x400B82B0U)
171 #define REG_CAN1_MDL5 (*(RwReg*)0x400B82B4U)
172 #define REG_CAN1_MDH5 (*(RwReg*)0x400B82B8U)
173 #define REG_CAN1_MCR5 (*(WoReg*)0x400B82BCU)
174 #define REG_CAN1_MMR6 (*(RwReg*)0x400B82C0U)
175 #define REG_CAN1_MAM6 (*(RwReg*)0x400B82C4U)
176 #define REG_CAN1_MID6 (*(RwReg*)0x400B82C8U)
177 #define REG_CAN1_MFID6 (*(RoReg*)0x400B82CCU)
178 #define REG_CAN1_MSR6 (*(RoReg*)0x400B82D0U)
179 #define REG_CAN1_MDL6 (*(RwReg*)0x400B82D4U)
180 #define REG_CAN1_MDH6 (*(RwReg*)0x400B82D8U)
181 #define REG_CAN1_MCR6 (*(WoReg*)0x400B82DCU)
182 #define REG_CAN1_MMR7 (*(RwReg*)0x400B82E0U)
183 #define REG_CAN1_MAM7 (*(RwReg*)0x400B82E4U)
184 #define REG_CAN1_MID7 (*(RwReg*)0x400B82E8U)
185 #define REG_CAN1_MFID7 (*(RoReg*)0x400B82ECU)
186 #define REG_CAN1_MSR7 (*(RoReg*)0x400B82F0U)
187 #define REG_CAN1_MDL7 (*(RwReg*)0x400B82F4U)
188 #define REG_CAN1_MDH7 (*(RwReg*)0x400B82F8U)
189 #define REG_CAN1_MCR7 (*(WoReg*)0x400B82FCU)
190 #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
191 
192 #endif /* _SAM3XA_CAN1_INSTANCE_ */