Robobo
instance_pioa.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 _SAM4S_PIOA_INSTANCE_
31 #define _SAM4S_PIOA_INSTANCE_
32 
33 /* ========== Register definition for PIOA peripheral ========== */
34 #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
35 #define REG_PIOA_PER (0x400E0E00U)
36 #define REG_PIOA_PDR (0x400E0E04U)
37 #define REG_PIOA_PSR (0x400E0E08U)
38 #define REG_PIOA_OER (0x400E0E10U)
39 #define REG_PIOA_ODR (0x400E0E14U)
40 #define REG_PIOA_OSR (0x400E0E18U)
41 #define REG_PIOA_IFER (0x400E0E20U)
42 #define REG_PIOA_IFDR (0x400E0E24U)
43 #define REG_PIOA_IFSR (0x400E0E28U)
44 #define REG_PIOA_SODR (0x400E0E30U)
45 #define REG_PIOA_CODR (0x400E0E34U)
46 #define REG_PIOA_ODSR (0x400E0E38U)
47 #define REG_PIOA_PDSR (0x400E0E3CU)
48 #define REG_PIOA_IER (0x400E0E40U)
49 #define REG_PIOA_IDR (0x400E0E44U)
50 #define REG_PIOA_IMR (0x400E0E48U)
51 #define REG_PIOA_ISR (0x400E0E4CU)
52 #define REG_PIOA_MDER (0x400E0E50U)
53 #define REG_PIOA_MDDR (0x400E0E54U)
54 #define REG_PIOA_MDSR (0x400E0E58U)
55 #define REG_PIOA_PUDR (0x400E0E60U)
56 #define REG_PIOA_PUER (0x400E0E64U)
57 #define REG_PIOA_PUSR (0x400E0E68U)
58 #define REG_PIOA_ABCDSR (0x400E0E70U)
59 #define REG_PIOA_IFSCDR (0x400E0E80U)
60 #define REG_PIOA_IFSCER (0x400E0E84U)
61 #define REG_PIOA_IFSCSR (0x400E0E88U)
62 #define REG_PIOA_SCDR (0x400E0E8CU)
63 #define REG_PIOA_PPDDR (0x400E0E90U)
64 #define REG_PIOA_PPDER (0x400E0E94U)
65 #define REG_PIOA_PPDSR (0x400E0E98U)
66 #define REG_PIOA_OWER (0x400E0EA0U)
67 #define REG_PIOA_OWDR (0x400E0EA4U)
68 #define REG_PIOA_OWSR (0x400E0EA8U)
69 #define REG_PIOA_AIMER (0x400E0EB0U)
70 #define REG_PIOA_AIMDR (0x400E0EB4U)
71 #define REG_PIOA_AIMMR (0x400E0EB8U)
72 #define REG_PIOA_ESR (0x400E0EC0U)
73 #define REG_PIOA_LSR (0x400E0EC4U)
74 #define REG_PIOA_ELSR (0x400E0EC8U)
75 #define REG_PIOA_FELLSR (0x400E0ED0U)
76 #define REG_PIOA_REHLSR (0x400E0ED4U)
77 #define REG_PIOA_FRLHSR (0x400E0ED8U)
78 #define REG_PIOA_LOCKSR (0x400E0EE0U)
79 #define REG_PIOA_WPMR (0x400E0EE4U)
80 #define REG_PIOA_WPSR (0x400E0EE8U)
81 #define REG_PIOA_SCHMITT (0x400E0F00U)
82 #define REG_PIOA_PCMR (0x400E0F50U)
83 #define REG_PIOA_PCIER (0x400E0F54U)
84 #define REG_PIOA_PCIDR (0x400E0F58U)
85 #define REG_PIOA_PCIMR (0x400E0F5CU)
86 #define REG_PIOA_PCISR (0x400E0F60U)
87 #define REG_PIOA_PCRHR (0x400E0F64U)
88 #define REG_PIOA_RPR (0x400E0F68U)
89 #define REG_PIOA_RCR (0x400E0F6CU)
90 #define REG_PIOA_RNPR (0x400E0F78U)
91 #define REG_PIOA_RNCR (0x400E0F7CU)
92 #define REG_PIOA_PTCR (0x400E0F88U)
93 #define REG_PIOA_PTSR (0x400E0F8CU)
94 #else
95 #define REG_PIOA_PER (*(WoReg*)0x400E0E00U)
96 #define REG_PIOA_PDR (*(WoReg*)0x400E0E04U)
97 #define REG_PIOA_PSR (*(RoReg*)0x400E0E08U)
98 #define REG_PIOA_OER (*(WoReg*)0x400E0E10U)
99 #define REG_PIOA_ODR (*(WoReg*)0x400E0E14U)
100 #define REG_PIOA_OSR (*(RoReg*)0x400E0E18U)
101 #define REG_PIOA_IFER (*(WoReg*)0x400E0E20U)
102 #define REG_PIOA_IFDR (*(WoReg*)0x400E0E24U)
103 #define REG_PIOA_IFSR (*(RoReg*)0x400E0E28U)
104 #define REG_PIOA_SODR (*(WoReg*)0x400E0E30U)
105 #define REG_PIOA_CODR (*(WoReg*)0x400E0E34U)
106 #define REG_PIOA_ODSR (*(RwReg*)0x400E0E38U)
107 #define REG_PIOA_PDSR (*(RoReg*)0x400E0E3CU)
108 #define REG_PIOA_IER (*(WoReg*)0x400E0E40U)
109 #define REG_PIOA_IDR (*(WoReg*)0x400E0E44U)
110 #define REG_PIOA_IMR (*(RoReg*)0x400E0E48U)
111 #define REG_PIOA_ISR (*(RoReg*)0x400E0E4CU)
112 #define REG_PIOA_MDER (*(WoReg*)0x400E0E50U)
113 #define REG_PIOA_MDDR (*(WoReg*)0x400E0E54U)
114 #define REG_PIOA_MDSR (*(RoReg*)0x400E0E58U)
115 #define REG_PIOA_PUDR (*(WoReg*)0x400E0E60U)
116 #define REG_PIOA_PUER (*(WoReg*)0x400E0E64U)
117 #define REG_PIOA_PUSR (*(RoReg*)0x400E0E68U)
118 #define REG_PIOA_ABCDSR (*(RwReg*)0x400E0E70U)
119 #define REG_PIOA_IFSCDR (*(WoReg*)0x400E0E80U)
120 #define REG_PIOA_IFSCER (*(WoReg*)0x400E0E84U)
121 #define REG_PIOA_IFSCSR (*(RoReg*)0x400E0E88U)
122 #define REG_PIOA_SCDR (*(RwReg*)0x400E0E8CU)
123 #define REG_PIOA_PPDDR (*(WoReg*)0x400E0E90U)
124 #define REG_PIOA_PPDER (*(WoReg*)0x400E0E94U)
125 #define REG_PIOA_PPDSR (*(RoReg*)0x400E0E98U)
126 #define REG_PIOA_OWER (*(WoReg*)0x400E0EA0U)
127 #define REG_PIOA_OWDR (*(WoReg*)0x400E0EA4U)
128 #define REG_PIOA_OWSR (*(RoReg*)0x400E0EA8U)
129 #define REG_PIOA_AIMER (*(WoReg*)0x400E0EB0U)
130 #define REG_PIOA_AIMDR (*(WoReg*)0x400E0EB4U)
131 #define REG_PIOA_AIMMR (*(RoReg*)0x400E0EB8U)
132 #define REG_PIOA_ESR (*(WoReg*)0x400E0EC0U)
133 #define REG_PIOA_LSR (*(WoReg*)0x400E0EC4U)
134 #define REG_PIOA_ELSR (*(RoReg*)0x400E0EC8U)
135 #define REG_PIOA_FELLSR (*(WoReg*)0x400E0ED0U)
136 #define REG_PIOA_REHLSR (*(WoReg*)0x400E0ED4U)
137 #define REG_PIOA_FRLHSR (*(RoReg*)0x400E0ED8U)
138 #define REG_PIOA_LOCKSR (*(RoReg*)0x400E0EE0U)
139 #define REG_PIOA_WPMR (*(RwReg*)0x400E0EE4U)
140 #define REG_PIOA_WPSR (*(RoReg*)0x400E0EE8U)
141 #define REG_PIOA_SCHMITT (*(RwReg*)0x400E0F00U)
142 #define REG_PIOA_PCMR (*(RwReg*)0x400E0F50U)
143 #define REG_PIOA_PCIER (*(WoReg*)0x400E0F54U)
144 #define REG_PIOA_PCIDR (*(WoReg*)0x400E0F58U)
145 #define REG_PIOA_PCIMR (*(RoReg*)0x400E0F5CU)
146 #define REG_PIOA_PCISR (*(RoReg*)0x400E0F60U)
147 #define REG_PIOA_PCRHR (*(RoReg*)0x400E0F64U)
148 #define REG_PIOA_RPR (*(RwReg*)0x400E0F68U)
149 #define REG_PIOA_RCR (*(RwReg*)0x400E0F6CU)
150 #define REG_PIOA_RNPR (*(RwReg*)0x400E0F78U)
151 #define REG_PIOA_RNCR (*(RwReg*)0x400E0F7CU)
152 #define REG_PIOA_PTCR (*(WoReg*)0x400E0F88U)
153 #define REG_PIOA_PTSR (*(RoReg*)0x400E0F8CU)
154 #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
155 
156 #endif /* _SAM4S_PIOA_INSTANCE_ */