1 /* ---------------------------------------------------------------------------- */
2 /*                  Atmel Microcontroller Software Support                      */
3 /*                       SAM Software Package License                           */
4 /* ---------------------------------------------------------------------------- */
5 /* Copyright (c) %copyright_year%, Atmel Corporation                                        */
6 /*                                                                              */
7 /* All rights reserved.                                                         */
8 /*                                                                              */
9 /* Redistribution and use in source and binary forms, with or without           */
10 /* modification, are permitted provided that the following condition is met:    */
11 /*                                                                              */
12 /* - Redistributions of source code must retain the above copyright notice,     */
13 /* this list of conditions and the disclaimer below.                            */
14 /*                                                                              */
15 /* Atmel's name may not be used to endorse or promote products derived from     */
16 /* this software without specific prior written permission.                     */
17 /*                                                                              */
18 /* DISCLAIMER:  THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR   */
19 /* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */
20 /* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE   */
21 /* DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,      */
22 /* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT */
23 /* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,  */
24 /* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF    */
25 /* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING         */
26 /* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, */
27 /* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.                           */
28 /* ---------------------------------------------------------------------------- */
29 
30 #ifndef _SAM4E16E_PIO_
31 #define _SAM4E16E_PIO_
32 
33 #define PIO_PA0              (1u << 0)  /**< \brief Pin Controlled by PA0 */
34 #define PIO_PA1              (1u << 1)  /**< \brief Pin Controlled by PA1 */
35 #define PIO_PA2              (1u << 2)  /**< \brief Pin Controlled by PA2 */
36 #define PIO_PA3              (1u << 3)  /**< \brief Pin Controlled by PA3 */
37 #define PIO_PA4              (1u << 4)  /**< \brief Pin Controlled by PA4 */
38 #define PIO_PA5              (1u << 5)  /**< \brief Pin Controlled by PA5 */
39 #define PIO_PA6              (1u << 6)  /**< \brief Pin Controlled by PA6 */
40 #define PIO_PA7              (1u << 7)  /**< \brief Pin Controlled by PA7 */
41 #define PIO_PA8              (1u << 8)  /**< \brief Pin Controlled by PA8 */
42 #define PIO_PA9              (1u << 9)  /**< \brief Pin Controlled by PA9 */
43 #define PIO_PA10             (1u << 10) /**< \brief Pin Controlled by PA10 */
44 #define PIO_PA11             (1u << 11) /**< \brief Pin Controlled by PA11 */
45 #define PIO_PA12             (1u << 12) /**< \brief Pin Controlled by PA12 */
46 #define PIO_PA13             (1u << 13) /**< \brief Pin Controlled by PA13 */
47 #define PIO_PA14             (1u << 14) /**< \brief Pin Controlled by PA14 */
48 #define PIO_PA15             (1u << 15) /**< \brief Pin Controlled by PA15 */
49 #define PIO_PA16             (1u << 16) /**< \brief Pin Controlled by PA16 */
50 #define PIO_PA17             (1u << 17) /**< \brief Pin Controlled by PA17 */
51 #define PIO_PA18             (1u << 18) /**< \brief Pin Controlled by PA18 */
52 #define PIO_PA19             (1u << 19) /**< \brief Pin Controlled by PA19 */
53 #define PIO_PA20             (1u << 20) /**< \brief Pin Controlled by PA20 */
54 #define PIO_PA21             (1u << 21) /**< \brief Pin Controlled by PA21 */
55 #define PIO_PA22             (1u << 22) /**< \brief Pin Controlled by PA22 */
56 #define PIO_PA23             (1u << 23) /**< \brief Pin Controlled by PA23 */
57 #define PIO_PA24             (1u << 24) /**< \brief Pin Controlled by PA24 */
58 #define PIO_PA25             (1u << 25) /**< \brief Pin Controlled by PA25 */
59 #define PIO_PA26             (1u << 26) /**< \brief Pin Controlled by PA26 */
60 #define PIO_PA27             (1u << 27) /**< \brief Pin Controlled by PA27 */
61 #define PIO_PA28             (1u << 28) /**< \brief Pin Controlled by PA28 */
62 #define PIO_PA29             (1u << 29) /**< \brief Pin Controlled by PA29 */
63 #define PIO_PA30             (1u << 30) /**< \brief Pin Controlled by PA30 */
64 #define PIO_PA31             (1u << 31) /**< \brief Pin Controlled by PA31 */
65 #define PIO_PB0              (1u << 0)  /**< \brief Pin Controlled by PB0 */
66 #define PIO_PB1              (1u << 1)  /**< \brief Pin Controlled by PB1 */
67 #define PIO_PB2              (1u << 2)  /**< \brief Pin Controlled by PB2 */
68 #define PIO_PB3              (1u << 3)  /**< \brief Pin Controlled by PB3 */
69 #define PIO_PB4              (1u << 4)  /**< \brief Pin Controlled by PB4 */
70 #define PIO_PB5              (1u << 5)  /**< \brief Pin Controlled by PB5 */
71 #define PIO_PB6              (1u << 6)  /**< \brief Pin Controlled by PB6 */
72 #define PIO_PB7              (1u << 7)  /**< \brief Pin Controlled by PB7 */
73 #define PIO_PB8              (1u << 8)  /**< \brief Pin Controlled by PB8 */
74 #define PIO_PB9              (1u << 9)  /**< \brief Pin Controlled by PB9 */
75 #define PIO_PB10             (1u << 10) /**< \brief Pin Controlled by PB10 */
76 #define PIO_PB11             (1u << 11) /**< \brief Pin Controlled by PB11 */
77 #define PIO_PB12             (1u << 12) /**< \brief Pin Controlled by PB12 */
78 #define PIO_PB13             (1u << 13) /**< \brief Pin Controlled by PB13 */
79 #define PIO_PB14             (1u << 14) /**< \brief Pin Controlled by PB14 */
80 #define PIO_PC0              (1u << 0)  /**< \brief Pin Controlled by PC0 */
81 #define PIO_PC1              (1u << 1)  /**< \brief Pin Controlled by PC1 */
82 #define PIO_PC2              (1u << 2)  /**< \brief Pin Controlled by PC2 */
83 #define PIO_PC3              (1u << 3)  /**< \brief Pin Controlled by PC3 */
84 #define PIO_PC4              (1u << 4)  /**< \brief Pin Controlled by PC4 */
85 #define PIO_PC5              (1u << 5)  /**< \brief Pin Controlled by PC5 */
86 #define PIO_PC6              (1u << 6)  /**< \brief Pin Controlled by PC6 */
87 #define PIO_PC7              (1u << 7)  /**< \brief Pin Controlled by PC7 */
88 #define PIO_PC8              (1u << 8)  /**< \brief Pin Controlled by PC8 */
89 #define PIO_PC9              (1u << 9)  /**< \brief Pin Controlled by PC9 */
90 #define PIO_PC10             (1u << 10) /**< \brief Pin Controlled by PC10 */
91 #define PIO_PC11             (1u << 11) /**< \brief Pin Controlled by PC11 */
92 #define PIO_PC12             (1u << 12) /**< \brief Pin Controlled by PC12 */
93 #define PIO_PC13             (1u << 13) /**< \brief Pin Controlled by PC13 */
94 #define PIO_PC14             (1u << 14) /**< \brief Pin Controlled by PC14 */
95 #define PIO_PC15             (1u << 15) /**< \brief Pin Controlled by PC15 */
96 #define PIO_PC16             (1u << 16) /**< \brief Pin Controlled by PC16 */
97 #define PIO_PC17             (1u << 17) /**< \brief Pin Controlled by PC17 */
98 #define PIO_PC18             (1u << 18) /**< \brief Pin Controlled by PC18 */
99 #define PIO_PC19             (1u << 19) /**< \brief Pin Controlled by PC19 */
100 #define PIO_PC20             (1u << 20) /**< \brief Pin Controlled by PC20 */
101 #define PIO_PC21             (1u << 21) /**< \brief Pin Controlled by PC21 */
102 #define PIO_PC22             (1u << 22) /**< \brief Pin Controlled by PC22 */
103 #define PIO_PC23             (1u << 23) /**< \brief Pin Controlled by PC23 */
104 #define PIO_PC24             (1u << 24) /**< \brief Pin Controlled by PC24 */
105 #define PIO_PC25             (1u << 25) /**< \brief Pin Controlled by PC25 */
106 #define PIO_PC26             (1u << 26) /**< \brief Pin Controlled by PC26 */
107 #define PIO_PC27             (1u << 27) /**< \brief Pin Controlled by PC27 */
108 #define PIO_PC28             (1u << 28) /**< \brief Pin Controlled by PC28 */
109 #define PIO_PC29             (1u << 29) /**< \brief Pin Controlled by PC29 */
110 #define PIO_PC30             (1u << 30) /**< \brief Pin Controlled by PC30 */
111 #define PIO_PC31             (1u << 31) /**< \brief Pin Controlled by PC31 */
112 #define PIO_PD0              (1u << 0)  /**< \brief Pin Controlled by PD0 */
113 #define PIO_PD1              (1u << 1)  /**< \brief Pin Controlled by PD1 */
114 #define PIO_PD2              (1u << 2)  /**< \brief Pin Controlled by PD2 */
115 #define PIO_PD3              (1u << 3)  /**< \brief Pin Controlled by PD3 */
116 #define PIO_PD4              (1u << 4)  /**< \brief Pin Controlled by PD4 */
117 #define PIO_PD5              (1u << 5)  /**< \brief Pin Controlled by PD5 */
118 #define PIO_PD6              (1u << 6)  /**< \brief Pin Controlled by PD6 */
119 #define PIO_PD7              (1u << 7)  /**< \brief Pin Controlled by PD7 */
120 #define PIO_PD8              (1u << 8)  /**< \brief Pin Controlled by PD8 */
121 #define PIO_PD9              (1u << 9)  /**< \brief Pin Controlled by PD9 */
122 #define PIO_PD10             (1u << 10) /**< \brief Pin Controlled by PD10 */
123 #define PIO_PD11             (1u << 11) /**< \brief Pin Controlled by PD11 */
124 #define PIO_PD12             (1u << 12) /**< \brief Pin Controlled by PD12 */
125 #define PIO_PD13             (1u << 13) /**< \brief Pin Controlled by PD13 */
126 #define PIO_PD14             (1u << 14) /**< \brief Pin Controlled by PD14 */
127 #define PIO_PD15             (1u << 15) /**< \brief Pin Controlled by PD15 */
128 #define PIO_PD16             (1u << 16) /**< \brief Pin Controlled by PD16 */
129 #define PIO_PD17             (1u << 17) /**< \brief Pin Controlled by PD17 */
130 #define PIO_PD18             (1u << 18) /**< \brief Pin Controlled by PD18 */
131 #define PIO_PD19             (1u << 19) /**< \brief Pin Controlled by PD19 */
132 #define PIO_PD20             (1u << 20) /**< \brief Pin Controlled by PD20 */
133 #define PIO_PD21             (1u << 21) /**< \brief Pin Controlled by PD21 */
134 #define PIO_PD22             (1u << 22) /**< \brief Pin Controlled by PD22 */
135 #define PIO_PD23             (1u << 23) /**< \brief Pin Controlled by PD23 */
136 #define PIO_PD24             (1u << 24) /**< \brief Pin Controlled by PD24 */
137 #define PIO_PD25             (1u << 25) /**< \brief Pin Controlled by PD25 */
138 #define PIO_PD26             (1u << 26) /**< \brief Pin Controlled by PD26 */
139 #define PIO_PD27             (1u << 27) /**< \brief Pin Controlled by PD27 */
140 #define PIO_PD28             (1u << 28) /**< \brief Pin Controlled by PD28 */
141 #define PIO_PD29             (1u << 29) /**< \brief Pin Controlled by PD29 */
142 #define PIO_PD30             (1u << 30) /**< \brief Pin Controlled by PD30 */
143 #define PIO_PD31             (1u << 31) /**< \brief Pin Controlled by PD31 */
144 #define PIO_PE0              (1u << 0)  /**< \brief Pin Controlled by PE0 */
145 #define PIO_PE1              (1u << 1)  /**< \brief Pin Controlled by PE1 */
146 #define PIO_PE2              (1u << 2)  /**< \brief Pin Controlled by PE2 */
147 #define PIO_PE3              (1u << 3)  /**< \brief Pin Controlled by PE3 */
148 #define PIO_PE4              (1u << 4)  /**< \brief Pin Controlled by PE4 */
149 #define PIO_PE5              (1u << 5)  /**< \brief Pin Controlled by PE5 */
150 /* ========== Pio definition for AFEC0 peripheral ========== */
151 #define PIO_PA17X1_AFE0_AD0  (1u << 17) /**< \brief Afec0 signal: AFE0_AD0 */
152 #define PIO_PA18X1_AFE0_AD1  (1u << 18) /**< \brief Afec0 signal: AFE0_AD1 */
153 #define PIO_PC30X1_AFE0_AD10 (1u << 30) /**< \brief Afec0 signal: AFE0_AD10 */
154 #define PIO_PC31X1_AFE0_AD11 (1u << 31) /**< \brief Afec0 signal: AFE0_AD11 */
155 #define PIO_PC26X1_AFE0_AD12 (1u << 26) /**< \brief Afec0 signal: AFE0_AD12 */
156 #define PIO_PC27X1_AFE0_AD13 (1u << 27) /**< \brief Afec0 signal: AFE0_AD13 */
157 #define PIO_PC0X1_AFE0_AD14  (1u << 0)  /**< \brief Afec0 signal: AFE0_AD14 */
158 #define PIO_PA19X1_AFE0_AD2  (1u << 19) /**< \brief Afec0 signal: AFE0_AD2/WKUP9 */
159 #define PIO_PA19X1_WKUP9     (1u << 19) /**< \brief Afec0 signal: AFE0_AD2/WKUP9 */
160 #define PIO_PA20X1_AFE0_AD3  (1u << 20) /**< \brief Afec0 signal: AFE0_AD3/WKUP10 */
161 #define PIO_PA20X1_WKUP10    (1u << 20) /**< \brief Afec0 signal: AFE0_AD3/WKUP10 */
162 #define PIO_PB0X1_AFE0_AD4   (1u << 0)  /**< \brief Afec0 signal: AFE0_AD4/RTCOUT0 */
163 #define PIO_PB0X1_RTCOUT0    (1u << 0)  /**< \brief Afec0 signal: AFE0_AD4/RTCOUT0 */
164 #define PIO_PB1X1_AFE0_AD5   (1u << 1)  /**< \brief Afec0 signal: AFE0_AD5/RTCOUT1 */
165 #define PIO_PB1X1_RTCOUT1    (1u << 1)  /**< \brief Afec0 signal: AFE0_AD5/RTCOUT1 */
166 #define PIO_PC13X1_AFE0_AD6  (1u << 13) /**< \brief Afec0 signal: AFE0_AD6 */
167 #define PIO_PC15X1_AFE0_AD7  (1u << 15) /**< \brief Afec0 signal: AFE0_AD7 */
168 #define PIO_PC12X1_AFE0_AD8  (1u << 12) /**< \brief Afec0 signal: AFE0_AD8 */
169 #define PIO_PC29X1_AFE0_AD9  (1u << 29) /**< \brief Afec0 signal: AFE0_AD9 */
170 #define PIO_PA8B_AFE0_ADTRG  (1u << 8)  /**< \brief Afec0 signal: AFE0_ADTRG */
171 /* ========== Pio definition for AFEC1 peripheral ========== */
172 #define PIO_PB2X1_AFE1_AD0   (1u << 2)  /**< \brief Afec1 signal: AFE1_AD0/WKUP12 */
173 #define PIO_PB2X1_WKUP12     (1u << 2)  /**< \brief Afec1 signal: AFE1_AD0/WKUP12 */
174 #define PIO_PB3X1_AFE1_AD1   (1u << 3)  /**< \brief Afec1 signal: AFE1_AD1 */
175 #define PIO_PA21X1_AFE1_AD2  (1u << 21) /**< \brief Afec1 signal: AFE1_AD2 */
176 #define PIO_PA22X1_AFE1_AD3  (1u << 22) /**< \brief Afec1 signal: AFE1_AD3 */
177 #define PIO_PC1X1_AFE1_AD4   (1u << 1)  /**< \brief Afec1 signal: AFE1_AD4 */
178 #define PIO_PC2X1_AFE1_AD5   (1u << 2)  /**< \brief Afec1 signal: AFE1_AD5 */
179 #define PIO_PC3X1_AFE1_AD6   (1u << 3)  /**< \brief Afec1 signal: AFE1_AD6 */
180 #define PIO_PC4X1_AFE1_AD7   (1u << 4)  /**< \brief Afec1 signal: AFE1_AD7 */
181 /* ========== Pio definition for CAN0 peripheral ========== */
182 #define PIO_PB3A_CANRX0      (1u << 3)  /**< \brief Can0 signal: CANRX0 */
183 #define PIO_PB2A_CANTX0      (1u << 2)  /**< \brief Can0 signal: CANTX0 */
184 /* ========== Pio definition for CAN1 peripheral ========== */
185 #define PIO_PC12C_CANRX1     (1u << 12) /**< \brief Can1 signal: CANRX1 */
186 #define PIO_PC15C_CANTX1     (1u << 15) /**< \brief Can1 signal: CANTX1 */
187 /* ========== Pio definition for DACC peripheral ========== */
188 #define PIO_PB13X1_DAC0      (1u << 13) /**< \brief Dacc signal: DAC0 */
189 #define PIO_PB14X1_DAC1      (1u << 14) /**< \brief Dacc signal: DAC1 */
190 #define PIO_PA2C_DATRG       (1u << 2)  /**< \brief Dacc signal: DATRG */
191 /* ========== Pio definition for EBI peripheral ========== */
192 #define PIO_PC18A_A0         (1u << 18) /**< \brief Ebi signal: A0 */
193 #define PIO_PC19A_A1         (1u << 19) /**< \brief Ebi signal: A1 */
194 #define PIO_PC28A_A10        (1u << 28) /**< \brief Ebi signal: A10 */
195 #define PIO_PC29A_A11        (1u << 29) /**< \brief Ebi signal: A11 */
196 #define PIO_PC30A_A12        (1u << 30) /**< \brief Ebi signal: A12 */
197 #define PIO_PC31A_A13        (1u << 31) /**< \brief Ebi signal: A13 */
198 #define PIO_PA18C_A14        (1u << 18) /**< \brief Ebi signal: A14 */
199 #define PIO_PA19C_A15        (1u << 19) /**< \brief Ebi signal: A15 */
200 #define PIO_PA20C_A16        (1u << 20) /**< \brief Ebi signal: A16 */
201 #define PIO_PA0C_A17         (1u << 0)  /**< \brief Ebi signal: A17 */
202 #define PIO_PA1C_A18         (1u << 1)  /**< \brief Ebi signal: A18 */
203 #define PIO_PA23C_A19        (1u << 23) /**< \brief Ebi signal: A19 */
204 #define PIO_PC20A_A2         (1u << 20) /**< \brief Ebi signal: A2 */
205 #define PIO_PA24C_A20        (1u << 24) /**< \brief Ebi signal: A20 */
206 #define PIO_PC16A_A21        (1u << 16) /**< \brief Ebi signal: A21/NANDALE */
207 #define PIO_PC16A_NANDALE    (1u << 16) /**< \brief Ebi signal: A21/NANDALE */
208 #define PIO_PC17A_A22        (1u << 17) /**< \brief Ebi signal: A22/NANDCLE */
209 #define PIO_PC17A_NANDCLE    (1u << 17) /**< \brief Ebi signal: A22/NANDCLE */
210 #define PIO_PA25C_A23        (1u << 25) /**< \brief Ebi signal: A23 */
211 #define PIO_PC21A_A3         (1u << 21) /**< \brief Ebi signal: A3 */
212 #define PIO_PC22A_A4         (1u << 22) /**< \brief Ebi signal: A4 */
213 #define PIO_PC23A_A5         (1u << 23) /**< \brief Ebi signal: A5 */
214 #define PIO_PC24A_A6         (1u << 24) /**< \brief Ebi signal: A6 */
215 #define PIO_PC25A_A7         (1u << 25) /**< \brief Ebi signal: A7 */
216 #define PIO_PC26A_A8         (1u << 26) /**< \brief Ebi signal: A8 */
217 #define PIO_PC27A_A9         (1u << 27) /**< \brief Ebi signal: A9 */
218 #define PIO_PC0A_D0          (1u << 0)  /**< \brief Ebi signal: D0 */
219 #define PIO_PC1A_D1          (1u << 1)  /**< \brief Ebi signal: D1 */
220 #define PIO_PC2A_D2          (1u << 2)  /**< \brief Ebi signal: D2 */
221 #define PIO_PC3A_D3          (1u << 3)  /**< \brief Ebi signal: D3 */
222 #define PIO_PC4A_D4          (1u << 4)  /**< \brief Ebi signal: D4 */
223 #define PIO_PC5A_D5          (1u << 5)  /**< \brief Ebi signal: D5 */
224 #define PIO_PC6A_D6          (1u << 6)  /**< \brief Ebi signal: D6 */
225 #define PIO_PC7A_D7          (1u << 7)  /**< \brief Ebi signal: D7 */
226 #define PIO_PC9A_NANDOE      (1u << 9)  /**< \brief Ebi signal: NANDOE */
227 #define PIO_PC10A_NANDWE     (1u << 10) /**< \brief Ebi signal: NANDWE */
228 #define PIO_PC14A_NCS0       (1u << 14) /**< \brief Ebi signal: NCS0 */
229 #define PIO_PC15A_NCS1       (1u << 15) /**< \brief Ebi signal: NCS1 */
230 #define PIO_PD18A_NCS1       (1u << 18) /**< \brief Ebi signal: NCS1 */
231 #define PIO_PA22C_NCS2       (1u << 22) /**< \brief Ebi signal: NCS2 */
232 #define PIO_PC12A_NCS3       (1u << 12) /**< \brief Ebi signal: NCS3 */
233 #define PIO_PD19A_NCS3       (1u << 19) /**< \brief Ebi signal: NCS3 */
234 #define PIO_PC11A_NRD        (1u << 11) /**< \brief Ebi signal: NRD */
235 #define PIO_PC13A_NWAIT      (1u << 13) /**< \brief Ebi signal: NWAIT */
236 #define PIO_PC8A_NWE         (1u << 8)  /**< \brief Ebi signal: NWE */
237 /* ========== Pio definition for GMAC peripheral ========== */
238 #define PIO_PD13A_GCOL       (1u << 13) /**< \brief Gmac signal: GCOL */
239 #define PIO_PD10A_GCRS       (1u << 10) /**< \brief Gmac signal: GCRS */
240 #define PIO_PD4A_GCRSDV      (1u << 4)  /**< \brief Gmac signal: GCRSDV/GRXDV */
241 #define PIO_PD4A_GRXDV       (1u << 4)  /**< \brief Gmac signal: GCRSDV/GRXDV */
242 #define PIO_PD8A_GMDC        (1u << 8)  /**< \brief Gmac signal: GMDC */
243 #define PIO_PD9A_GMDIO       (1u << 9)  /**< \brief Gmac signal: GMDIO */
244 #define PIO_PD5A_GRX0        (1u << 5)  /**< \brief Gmac signal: GRX0 */
245 #define PIO_PD6A_GRX1        (1u << 6)  /**< \brief Gmac signal: GRX1 */
246 #define PIO_PD11A_GRX2       (1u << 11) /**< \brief Gmac signal: GRX2 */
247 #define PIO_PD12A_GRX3       (1u << 12) /**< \brief Gmac signal: GRX3 */
248 #define PIO_PD14A_GRXCK      (1u << 14) /**< \brief Gmac signal: GRXCK */
249 #define PIO_PD7A_GRXER       (1u << 7)  /**< \brief Gmac signal: GRXER */
250 #define PIO_PD2A_GTX0        (1u << 2)  /**< \brief Gmac signal: GTX0 */
251 #define PIO_PD3A_GTX1        (1u << 3)  /**< \brief Gmac signal: GTX1 */
252 #define PIO_PD15A_GTX2       (1u << 15) /**< \brief Gmac signal: GTX2 */
253 #define PIO_PD16A_GTX3       (1u << 16) /**< \brief Gmac signal: GTX3 */
254 #define PIO_PD0A_GTXCK       (1u << 0)  /**< \brief Gmac signal: GTXCK/GREFCK */
255 #define PIO_PD0A_GREFCK      (1u << 0)  /**< \brief Gmac signal: GTXCK/GREFCK */
256 #define PIO_PD1A_GTXEN       (1u << 1)  /**< \brief Gmac signal: GTXEN */
257 #define PIO_PD17A_GTXER      (1u << 17) /**< \brief Gmac signal: GTXER */
258 /* ========== Pio definition for HSMCI peripheral ========== */
259 #define PIO_PA28C_MCCDA      (1u << 28) /**< \brief Hsmci signal: MCCDA */
260 #define PIO_PA29C_MCCK       (1u << 29) /**< \brief Hsmci signal: MCCK */
261 #define PIO_PA30C_MCDA0      (1u << 30) /**< \brief Hsmci signal: MCDA0 */
262 #define PIO_PA31C_MCDA1      (1u << 31) /**< \brief Hsmci signal: MCDA1 */
263 #define PIO_PA26C_MCDA2      (1u << 26) /**< \brief Hsmci signal: MCDA2 */
264 #define PIO_PA27C_MCDA3      (1u << 27) /**< \brief Hsmci signal: MCDA3 */
265 /* ========== Pio definition for PIOA peripheral ========== */
266 #define PIO_PA24X1_PIODC0    (1u << 24) /**< \brief Pioa signal: PIODC0 */
267 #define PIO_PA25X1_PIODC1    (1u << 25) /**< \brief Pioa signal: PIODC1 */
268 #define PIO_PA26X1_PIODC2    (1u << 26) /**< \brief Pioa signal: PIODC2 */
269 #define PIO_PA27X1_PIODC3    (1u << 27) /**< \brief Pioa signal: PIODC3 */
270 #define PIO_PA28X1_PIODC4    (1u << 28) /**< \brief Pioa signal: PIODC4 */
271 #define PIO_PA29X1_PIODC5    (1u << 29) /**< \brief Pioa signal: PIODC5 */
272 #define PIO_PA31X1_PIODC7    (1u << 31) /**< \brief Pioa signal: PIODC7 */
273 #define PIO_PA23X1_PIODCCLK  (1u << 23) /**< \brief Pioa signal: PIODCCLK */
274 #define PIO_PA30X1_WKUP11    (1u << 30) /**< \brief Pioa signal: WKUP11/PIODC6 */
275 #define PIO_PA30X1_PIODC6    (1u << 30) /**< \brief Pioa signal: WKUP11/PIODC6 */
276 #define PIO_PA15X1_WKUP14    (1u << 15) /**< \brief Pioa signal: WKUP14/PIODCEN1 */
277 #define PIO_PA15X1_PIODCEN1  (1u << 15) /**< \brief Pioa signal: WKUP14/PIODCEN1 */
278 #define PIO_PA16X1_WKUP15    (1u << 16) /**< \brief Pioa signal: WKUP15/PIODCEN2 */
279 #define PIO_PA16X1_PIODCEN2  (1u << 16) /**< \brief Pioa signal: WKUP15/PIODCEN2 */
280 /* ========== Pio definition for PMC peripheral ========== */
281 #define PIO_PA6B_PCK0        (1u << 6)  /**< \brief Pmc signal: PCK0 */
282 #define PIO_PB13B_PCK0       (1u << 13) /**< \brief Pmc signal: PCK0 */
283 #define PIO_PA17B_PCK1       (1u << 17) /**< \brief Pmc signal: PCK1 */
284 #define PIO_PA21B_PCK1       (1u << 21) /**< \brief Pmc signal: PCK1 */
285 #define PIO_PA18B_PCK2       (1u << 18) /**< \brief Pmc signal: PCK2 */
286 #define PIO_PA31B_PCK2       (1u << 31) /**< \brief Pmc signal: PCK2 */
287 #define PIO_PB3B_PCK2        (1u << 3)  /**< \brief Pmc signal: PCK2 */
288 /* ========== Pio definition for PWM peripheral ========== */
289 #define PIO_PA9C_PWMFI0      (1u << 9)  /**< \brief Pwm signal: PWMFI0 */
290 #define PIO_PA0A_PWMH0       (1u << 0)  /**< \brief Pwm signal: PWMH0 */
291 #define PIO_PA11B_PWMH0      (1u << 11) /**< \brief Pwm signal: PWMH0 */
292 #define PIO_PA23B_PWMH0      (1u << 23) /**< \brief Pwm signal: PWMH0 */
293 #define PIO_PB0A_PWMH0       (1u << 0)  /**< \brief Pwm signal: PWMH0 */
294 #define PIO_PC18B_PWMH0      (1u << 18) /**< \brief Pwm signal: PWMH0 */
295 #define PIO_PD20A_PWMH0      (1u << 20) /**< \brief Pwm signal: PWMH0 */
296 #define PIO_PA1A_PWMH1       (1u << 1)  /**< \brief Pwm signal: PWMH1 */
297 #define PIO_PA12B_PWMH1      (1u << 12) /**< \brief Pwm signal: PWMH1 */
298 #define PIO_PA24B_PWMH1      (1u << 24) /**< \brief Pwm signal: PWMH1 */
299 #define PIO_PB1A_PWMH1       (1u << 1)  /**< \brief Pwm signal: PWMH1 */
300 #define PIO_PC19B_PWMH1      (1u << 19) /**< \brief Pwm signal: PWMH1 */
301 #define PIO_PD21A_PWMH1      (1u << 21) /**< \brief Pwm signal: PWMH1 */
302 #define PIO_PA2A_PWMH2       (1u << 2)  /**< \brief Pwm signal: PWMH2 */
303 #define PIO_PA13B_PWMH2      (1u << 13) /**< \brief Pwm signal: PWMH2 */
304 #define PIO_PA25B_PWMH2      (1u << 25) /**< \brief Pwm signal: PWMH2 */
305 #define PIO_PB4B_PWMH2       (1u << 4)  /**< \brief Pwm signal: PWMH2 */
306 #define PIO_PC20B_PWMH2      (1u << 20) /**< \brief Pwm signal: PWMH2 */
307 #define PIO_PD22A_PWMH2      (1u << 22) /**< \brief Pwm signal: PWMH2 */
308 #define PIO_PA7B_PWMH3       (1u << 7)  /**< \brief Pwm signal: PWMH3 */
309 #define PIO_PA14B_PWMH3      (1u << 14) /**< \brief Pwm signal: PWMH3 */
310 #define PIO_PA17C_PWMH3      (1u << 17) /**< \brief Pwm signal: PWMH3 */
311 #define PIO_PB14B_PWMH3      (1u << 14) /**< \brief Pwm signal: PWMH3 */
312 #define PIO_PC21B_PWMH3      (1u << 21) /**< \brief Pwm signal: PWMH3 */
313 #define PIO_PD23A_PWMH3      (1u << 23) /**< \brief Pwm signal: PWMH3 */
314 #define PIO_PA19B_PWML0      (1u << 19) /**< \brief Pwm signal: PWML0 */
315 #define PIO_PB5B_PWML0       (1u << 5)  /**< \brief Pwm signal: PWML0 */
316 #define PIO_PC0B_PWML0       (1u << 0)  /**< \brief Pwm signal: PWML0 */
317 #define PIO_PC13B_PWML0      (1u << 13) /**< \brief Pwm signal: PWML0 */
318 #define PIO_PD24A_PWML0      (1u << 24) /**< \brief Pwm signal: PWML0 */
319 #define PIO_PA20B_PWML1      (1u << 20) /**< \brief Pwm signal: PWML1 */
320 #define PIO_PB12A_PWML1      (1u << 12) /**< \brief Pwm signal: PWML1 */
321 #define PIO_PC1B_PWML1       (1u << 1)  /**< \brief Pwm signal: PWML1 */
322 #define PIO_PC15B_PWML1      (1u << 15) /**< \brief Pwm signal: PWML1 */
323 #define PIO_PD25A_PWML1      (1u << 25) /**< \brief Pwm signal: PWML1 */
324 #define PIO_PA16C_PWML2      (1u << 16) /**< \brief Pwm signal: PWML2 */
325 #define PIO_PA30A_PWML2      (1u << 30) /**< \brief Pwm signal: PWML2 */
326 #define PIO_PB13A_PWML2      (1u << 13) /**< \brief Pwm signal: PWML2 */
327 #define PIO_PC2B_PWML2       (1u << 2)  /**< \brief Pwm signal: PWML2 */
328 #define PIO_PD26A_PWML2      (1u << 26) /**< \brief Pwm signal: PWML2 */
329 #define PIO_PA15C_PWML3      (1u << 15) /**< \brief Pwm signal: PWML3 */
330 #define PIO_PC3B_PWML3       (1u << 3)  /**< \brief Pwm signal: PWML3 */
331 #define PIO_PC22B_PWML3      (1u << 22) /**< \brief Pwm signal: PWML3 */
332 #define PIO_PD27A_PWML3      (1u << 27) /**< \brief Pwm signal: PWML3 */
333 /* ========== Pio definition for SPI peripheral ========== */
334 #define PIO_PA12A_MISO       (1u << 12) /**< \brief Spi signal: MISO */
335 #define PIO_PA13A_MOSI       (1u << 13) /**< \brief Spi signal: MOSI */
336 #define PIO_PA11A_NPCS0      (1u << 11) /**< \brief Spi signal: NPCS0 */
337 #define PIO_PA9B_NPCS1       (1u << 9)  /**< \brief Spi signal: NPCS1 */
338 #define PIO_PA31A_NPCS1      (1u << 31) /**< \brief Spi signal: NPCS1 */
339 #define PIO_PB14A_NPCS1      (1u << 14) /**< \brief Spi signal: NPCS1 */
340 #define PIO_PC4B_NPCS1       (1u << 4)  /**< \brief Spi signal: NPCS1 */
341 #define PIO_PA10B_NPCS2      (1u << 10) /**< \brief Spi signal: NPCS2 */
342 #define PIO_PA30B_NPCS2      (1u << 30) /**< \brief Spi signal: NPCS2 */
343 #define PIO_PB2B_NPCS2       (1u << 2)  /**< \brief Spi signal: NPCS2 */
344 #define PIO_PA3B_NPCS3       (1u << 3)  /**< \brief Spi signal: NPCS3 */
345 #define PIO_PA5B_NPCS3       (1u << 5)  /**< \brief Spi signal: NPCS3 */
346 #define PIO_PA22B_NPCS3      (1u << 22) /**< \brief Spi signal: NPCS3 */
347 #define PIO_PA14A_SPCK       (1u << 14) /**< \brief Spi signal: SPCK */
348 /* ========== Pio definition for TC0 peripheral ========== */
349 #define PIO_PA4B_TCLK0       (1u << 4)  /**< \brief Tc0 signal: TCLK0 */
350 #define PIO_PA28B_TCLK1      (1u << 28) /**< \brief Tc0 signal: TCLK1 */
351 #define PIO_PA29B_TCLK2      (1u << 29) /**< \brief Tc0 signal: TCLK2 */
352 #define PIO_PA0B_TIOA0       (1u << 0)  /**< \brief Tc0 signal: TIOA0 */
353 #define PIO_PA15B_TIOA1      (1u << 15) /**< \brief Tc0 signal: TIOA1 */
354 #define PIO_PA26B_TIOA2      (1u << 26) /**< \brief Tc0 signal: TIOA2 */
355 #define PIO_PA1B_TIOB0       (1u << 1)  /**< \brief Tc0 signal: TIOB0 */
356 #define PIO_PA16B_TIOB1      (1u << 16) /**< \brief Tc0 signal: TIOB1 */
357 #define PIO_PA27B_TIOB2      (1u << 27) /**< \brief Tc0 signal: TIOB2 */
358 /* ========== Pio definition for TC1 peripheral ========== */
359 #define PIO_PC25B_TCLK3      (1u << 25) /**< \brief Tc1 signal: TCLK3 */
360 #define PIO_PC28B_TCLK4      (1u << 28) /**< \brief Tc1 signal: TCLK4 */
361 #define PIO_PC31B_TCLK5      (1u << 31) /**< \brief Tc1 signal: TCLK5 */
362 #define PIO_PC23B_TIOA3      (1u << 23) /**< \brief Tc1 signal: TIOA3 */
363 #define PIO_PC26B_TIOA4      (1u << 26) /**< \brief Tc1 signal: TIOA4 */
364 #define PIO_PC29B_TIOA5      (1u << 29) /**< \brief Tc1 signal: TIOA5 */
365 #define PIO_PC24B_TIOB3      (1u << 24) /**< \brief Tc1 signal: TIOB3 */
366 #define PIO_PC27B_TIOB4      (1u << 27) /**< \brief Tc1 signal: TIOB4 */
367 #define PIO_PC30B_TIOB5      (1u << 30) /**< \brief Tc1 signal: TIOB5 */
368 /* ========== Pio definition for TC2 peripheral ========== */
369 #define PIO_PC7B_TCLK6       (1u << 7)  /**< \brief Tc2 signal: TCLK6 */
370 #define PIO_PC10B_TCLK7      (1u << 10) /**< \brief Tc2 signal: TCLK7 */
371 #define PIO_PC14B_TCLK8      (1u << 14) /**< \brief Tc2 signal: TCLK8 */
372 #define PIO_PC5B_TIOA6       (1u << 5)  /**< \brief Tc2 signal: TIOA6 */
373 #define PIO_PC8B_TIOA7       (1u << 8)  /**< \brief Tc2 signal: TIOA7 */
374 #define PIO_PC11B_TIOA8      (1u << 11) /**< \brief Tc2 signal: TIOA8 */
375 #define PIO_PC6B_TIOB6       (1u << 6)  /**< \brief Tc2 signal: TIOB6 */
376 #define PIO_PC9B_TIOB7       (1u << 9)  /**< \brief Tc2 signal: TIOB7 */
377 #define PIO_PC12B_TIOB8      (1u << 12) /**< \brief Tc2 signal: TIOB8 */
378 /* ========== Pio definition for TWI0 peripheral ========== */
379 #define PIO_PA4A_TWCK0       (1u << 4)  /**< \brief Twi0 signal: TWCK0 */
380 #define PIO_PA3A_TWD0        (1u << 3)  /**< \brief Twi0 signal: TWD0 */
381 /* ========== Pio definition for TWI1 peripheral ========== */
382 #define PIO_PB5A_TWCK1       (1u << 5)  /**< \brief Twi1 signal: TWCK1 */
383 #define PIO_PB4A_TWD1        (1u << 4)  /**< \brief Twi1 signal: TWD1 */
384 /* ========== Pio definition for UART0 peripheral ========== */
385 #define PIO_PA9A_URXD0       (1u << 9)  /**< \brief Uart0 signal: URXD0 */
386 #define PIO_PA10A_UTXD0      (1u << 10) /**< \brief Uart0 signal: UTXD0 */
387 /* ========== Pio definition for UART1 peripheral ========== */
388 #define PIO_PA5C_URXD1       (1u << 5)  /**< \brief Uart1 signal: URXD1 */
389 #define PIO_PA6C_UTXD1       (1u << 6)  /**< \brief Uart1 signal: UTXD1 */
390 /* ========== Pio definition for USART0 peripheral ========== */
391 #define PIO_PB2C_CTS0        (1u << 2)  /**< \brief Usart0 signal: CTS0 */
392 #define PIO_PB3C_RTS0        (1u << 3)  /**< \brief Usart0 signal: RTS0 */
393 #define PIO_PB0C_RXD0        (1u << 0)  /**< \brief Usart0 signal: RXD0 */
394 #define PIO_PB13C_SCK0       (1u << 13) /**< \brief Usart0 signal: SCK0 */
395 #define PIO_PB1C_TXD0        (1u << 1)  /**< \brief Usart0 signal: TXD0 */
396 /* ========== Pio definition for USART1 peripheral ========== */
397 #define PIO_PA25A_CTS1       (1u << 25) /**< \brief Usart1 signal: CTS1 */
398 #define PIO_PA26A_DCD1       (1u << 26) /**< \brief Usart1 signal: DCD1 */
399 #define PIO_PA28A_DSR1       (1u << 28) /**< \brief Usart1 signal: DSR1 */
400 #define PIO_PA27A_DTR1       (1u << 27) /**< \brief Usart1 signal: DTR1 */
401 #define PIO_PA29A_RI1        (1u << 29) /**< \brief Usart1 signal: RI1 */
402 #define PIO_PA24A_RTS1       (1u << 24) /**< \brief Usart1 signal: RTS1 */
403 #define PIO_PA21A_RXD1       (1u << 21) /**< \brief Usart1 signal: RXD1 */
404 #define PIO_PA23A_SCK1       (1u << 23) /**< \brief Usart1 signal: SCK1 */
405 #define PIO_PA22A_TXD1       (1u << 22) /**< \brief Usart1 signal: TXD1 */
406 /* ========== Pio indexes ========== */
407 #define PIO_PA0_IDX          0
408 #define PIO_PA1_IDX          1
409 #define PIO_PA2_IDX          2
410 #define PIO_PA3_IDX          3
411 #define PIO_PA4_IDX          4
412 #define PIO_PA5_IDX          5
413 #define PIO_PA6_IDX          6
414 #define PIO_PA7_IDX          7
415 #define PIO_PA8_IDX          8
416 #define PIO_PA9_IDX          9
417 #define PIO_PA10_IDX         10
418 #define PIO_PA11_IDX         11
419 #define PIO_PA12_IDX         12
420 #define PIO_PA13_IDX         13
421 #define PIO_PA14_IDX         14
422 #define PIO_PA15_IDX         15
423 #define PIO_PA16_IDX         16
424 #define PIO_PA17_IDX         17
425 #define PIO_PA18_IDX         18
426 #define PIO_PA19_IDX         19
427 #define PIO_PA20_IDX         20
428 #define PIO_PA21_IDX         21
429 #define PIO_PA22_IDX         22
430 #define PIO_PA23_IDX         23
431 #define PIO_PA24_IDX         24
432 #define PIO_PA25_IDX         25
433 #define PIO_PA26_IDX         26
434 #define PIO_PA27_IDX         27
435 #define PIO_PA28_IDX         28
436 #define PIO_PA29_IDX         29
437 #define PIO_PA30_IDX         30
438 #define PIO_PA31_IDX         31
439 #define PIO_PB0_IDX          32
440 #define PIO_PB1_IDX          33
441 #define PIO_PB2_IDX          34
442 #define PIO_PB3_IDX          35
443 #define PIO_PB4_IDX          36
444 #define PIO_PB5_IDX          37
445 #define PIO_PB6_IDX          38
446 #define PIO_PB7_IDX          39
447 #define PIO_PB8_IDX          40
448 #define PIO_PB9_IDX          41
449 #define PIO_PB10_IDX         42
450 #define PIO_PB11_IDX         43
451 #define PIO_PB12_IDX         44
452 #define PIO_PB13_IDX         45
453 #define PIO_PB14_IDX         46
454 #define PIO_PC0_IDX          64
455 #define PIO_PC1_IDX          65
456 #define PIO_PC2_IDX          66
457 #define PIO_PC3_IDX          67
458 #define PIO_PC4_IDX          68
459 #define PIO_PC5_IDX          69
460 #define PIO_PC6_IDX          70
461 #define PIO_PC7_IDX          71
462 #define PIO_PC8_IDX          72
463 #define PIO_PC9_IDX          73
464 #define PIO_PC10_IDX         74
465 #define PIO_PC11_IDX         75
466 #define PIO_PC12_IDX         76
467 #define PIO_PC13_IDX         77
468 #define PIO_PC14_IDX         78
469 #define PIO_PC15_IDX         79
470 #define PIO_PC16_IDX         80
471 #define PIO_PC17_IDX         81
472 #define PIO_PC18_IDX         82
473 #define PIO_PC19_IDX         83
474 #define PIO_PC20_IDX         84
475 #define PIO_PC21_IDX         85
476 #define PIO_PC22_IDX         86
477 #define PIO_PC23_IDX         87
478 #define PIO_PC24_IDX         88
479 #define PIO_PC25_IDX         89
480 #define PIO_PC26_IDX         90
481 #define PIO_PC27_IDX         91
482 #define PIO_PC28_IDX         92
483 #define PIO_PC29_IDX         93
484 #define PIO_PC30_IDX         94
485 #define PIO_PC31_IDX         95
486 #define PIO_PD0_IDX          96
487 #define PIO_PD1_IDX          97
488 #define PIO_PD2_IDX          98
489 #define PIO_PD3_IDX          99
490 #define PIO_PD4_IDX          100
491 #define PIO_PD5_IDX          101
492 #define PIO_PD6_IDX          102
493 #define PIO_PD7_IDX          103
494 #define PIO_PD8_IDX          104
495 #define PIO_PD9_IDX          105
496 #define PIO_PD10_IDX         106
497 #define PIO_PD11_IDX         107
498 #define PIO_PD12_IDX         108
499 #define PIO_PD13_IDX         109
500 #define PIO_PD14_IDX         110
501 #define PIO_PD15_IDX         111
502 #define PIO_PD16_IDX         112
503 #define PIO_PD17_IDX         113
504 #define PIO_PD18_IDX         114
505 #define PIO_PD19_IDX         115
506 #define PIO_PD20_IDX         116
507 #define PIO_PD21_IDX         117
508 #define PIO_PD22_IDX         118
509 #define PIO_PD23_IDX         119
510 #define PIO_PD24_IDX         120
511 #define PIO_PD25_IDX         121
512 #define PIO_PD26_IDX         122
513 #define PIO_PD27_IDX         123
514 #define PIO_PD28_IDX         124
515 #define PIO_PD29_IDX         125
516 #define PIO_PD30_IDX         126
517 #define PIO_PD31_IDX         127
518 #define PIO_PE0_IDX          128
519 #define PIO_PE1_IDX          129
520 #define PIO_PE2_IDX          130
521 #define PIO_PE3_IDX          131
522 #define PIO_PE4_IDX          132
523 #define PIO_PE5_IDX          133
524 
525 #endif /* _SAM4E16E_PIO_ */
526