RTEMS 6.1-rc2
Loading...
Searching...
No Matches
pio_same70n21.h
1/* ---------------------------------------------------------------------------- */
2/* Atmel Microcontroller Software Support */
3/* SAM Software Package License */
4/* ---------------------------------------------------------------------------- */
5/* Copyright (c) 2015, 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 _SAME70N21_PIO_
31#define _SAME70N21_PIO_
32
33#define PIO_PA0 (1u << 0)
34#define PIO_PA1 (1u << 1)
35#define PIO_PA2 (1u << 2)
36#define PIO_PA3 (1u << 3)
37#define PIO_PA4 (1u << 4)
38#define PIO_PA5 (1u << 5)
39#define PIO_PA7 (1u << 7)
40#define PIO_PA8 (1u << 8)
41#define PIO_PA9 (1u << 9)
42#define PIO_PA10 (1u << 10)
43#define PIO_PA11 (1u << 11)
44#define PIO_PA12 (1u << 12)
45#define PIO_PA13 (1u << 13)
46#define PIO_PA14 (1u << 14)
47#define PIO_PA15 (1u << 15)
48#define PIO_PA16 (1u << 16)
49#define PIO_PA17 (1u << 17)
50#define PIO_PA18 (1u << 18)
51#define PIO_PA19 (1u << 19)
52#define PIO_PA20 (1u << 20)
53#define PIO_PA21 (1u << 21)
54#define PIO_PA22 (1u << 22)
55#define PIO_PA23 (1u << 23)
56#define PIO_PA24 (1u << 24)
57#define PIO_PA25 (1u << 25)
58#define PIO_PA26 (1u << 26)
59#define PIO_PA27 (1u << 27)
60#define PIO_PA28 (1u << 28)
61#define PIO_PA30 (1u << 30)
62#define PIO_PA31 (1u << 31)
63#define PIO_PB0 (1u << 0)
64#define PIO_PB1 (1u << 1)
65#define PIO_PB2 (1u << 2)
66#define PIO_PB3 (1u << 3)
67#define PIO_PB4 (1u << 4)
68#define PIO_PB5 (1u << 5)
69#define PIO_PB6 (1u << 6)
70#define PIO_PB7 (1u << 7)
71#define PIO_PB8 (1u << 8)
72#define PIO_PB9 (1u << 9)
73#define PIO_PB12 (1u << 12)
74#define PIO_PB13 (1u << 13)
75#define PIO_PD0 (1u << 0)
76#define PIO_PD1 (1u << 1)
77#define PIO_PD2 (1u << 2)
78#define PIO_PD3 (1u << 3)
79#define PIO_PD4 (1u << 4)
80#define PIO_PD5 (1u << 5)
81#define PIO_PD6 (1u << 6)
82#define PIO_PD7 (1u << 7)
83#define PIO_PD8 (1u << 8)
84#define PIO_PD9 (1u << 9)
85#define PIO_PD10 (1u << 10)
86#define PIO_PD11 (1u << 11)
87#define PIO_PD12 (1u << 12)
88#define PIO_PD13 (1u << 13)
89#define PIO_PD14 (1u << 14)
90#define PIO_PD15 (1u << 15)
91#define PIO_PD16 (1u << 16)
92#define PIO_PD17 (1u << 17)
93#define PIO_PD18 (1u << 18)
94#define PIO_PD19 (1u << 19)
95#define PIO_PD20 (1u << 20)
96#define PIO_PD21 (1u << 21)
97#define PIO_PD22 (1u << 22)
98#define PIO_PD24 (1u << 24)
99#define PIO_PD25 (1u << 25)
100#define PIO_PD26 (1u << 26)
101#define PIO_PD27 (1u << 27)
102#define PIO_PD28 (1u << 28)
103#define PIO_PD30 (1u << 30)
104#define PIO_PD31 (1u << 31)
105/* ========== Pio definition for AFEC0 peripheral ========== */
106#define PIO_PD30X1_AFE0_AD0 (1u << 30)
107#define PIO_PA21X1_AFE0_AD1 (1u << 21)
108#define PIO_PA21X1_PIODCEN2 (1u << 21)
109#define PIO_PB0X1_AFE0_AD10 (1u << 0)
110#define PIO_PB0X1_RTCOUT0 (1u << 0)
111#define PIO_PB3X1_AFE0_AD2 (1u << 3)
112#define PIO_PB3X1_WKUP12 (1u << 3)
113#define PIO_PE5X1_AFE0_AD3 (1u << 5)
114#define PIO_PE4X1_AFE0_AD4 (1u << 4)
115#define PIO_PB2X1_AFE0_AD5 (1u << 2)
116#define PIO_PA17X1_AFE0_AD6 (1u << 17)
117#define PIO_PA18X1_AFE0_AD7 (1u << 18)
118#define PIO_PA19X1_AFE0_AD8 (1u << 19)
119#define PIO_PA19X1_WKUP9 (1u << 19)
120#define PIO_PA20X1_AFE0_AD9 (1u << 20)
121#define PIO_PA20X1_WKUP10 (1u << 20)
122#define PIO_PA8B_AFE0_ADTRG (1u << 8)
123/* ========== Pio definition for AFEC1 peripheral ========== */
124#define PIO_PB1X1_AFE1_AD0 (1u << 1)
125#define PIO_PB1X1_RTCOUT1 (1u << 1)
126#define PIO_PC13X1_AFE1_AD1 (1u << 13)
127#define PIO_PE3X1_AFE1_AD10 (1u << 3)
128#define PIO_PE0X1_AFE1_AD11 (1u << 0)
129#define PIO_PC15X1_AFE1_AD2 (1u << 15)
130#define PIO_PC12X1_AFE1_AD3 (1u << 12)
131#define PIO_PC29X1_AFE1_AD4 (1u << 29)
132#define PIO_PC30X1_AFE1_AD5 (1u << 30)
133#define PIO_PC31X1_AFE1_AD6 (1u << 31)
134#define PIO_PC26X1_AFE1_AD7 (1u << 26)
135#define PIO_PC27X1_AFE1_AD8 (1u << 27)
136#define PIO_PC0X1_AFE1_AD9 (1u << 0)
137#define PIO_PD9C_AFE1_ADTRG (1u << 9)
138/* ========== Pio definition for ARM peripheral ========== */
139#define PIO_PB7X1_SWCLK (1u << 7)
140#define PIO_PB7X1_TCK (1u << 7)
141#define PIO_PB6X1_SWDIO (1u << 6)
142#define PIO_PB6X1_TMS (1u << 6)
143#define PIO_PB4X1_TDI (1u << 4)
144#define PIO_PB5X1_TDO (1u << 5)
145#define PIO_PB5X1_TRACESWO (1u << 5)
146#define PIO_PB5X1_WKUP13 (1u << 5)
147/* ========== Pio definition for DACC peripheral ========== */
148#define PIO_PB13X1_DAC0 (1u << 13)
149#define PIO_PD0X1_DAC1 (1u << 0)
150#define PIO_PA2C_DATRG (1u << 2)
151/* ========== Pio definition for GMAC peripheral ========== */
152#define PIO_PD13A_GCOL (1u << 13)
153#define PIO_PD10A_GCRS (1u << 10)
154#define PIO_PD8A_GMDC (1u << 8)
155#define PIO_PD9A_GMDIO (1u << 9)
156#define PIO_PD5A_GRX0 (1u << 5)
157#define PIO_PD6A_GRX1 (1u << 6)
158#define PIO_PD11A_GRX2 (1u << 11)
159#define PIO_PD12A_GRX3 (1u << 12)
160#define PIO_PD14A_GRXCK (1u << 14)
161#define PIO_PD4A_GRXDV (1u << 4)
162#define PIO_PD7A_GRXER (1u << 7)
163#define PIO_PB1B_GTSUCOMP (1u << 1)
164#define PIO_PB12B_GTSUCOMP (1u << 12)
165#define PIO_PD11C_GTSUCOMP (1u << 11)
166#define PIO_PD20C_GTSUCOMP (1u << 20)
167#define PIO_PD2A_GTX0 (1u << 2)
168#define PIO_PD3A_GTX1 (1u << 3)
169#define PIO_PD15A_GTX2 (1u << 15)
170#define PIO_PD16A_GTX3 (1u << 16)
171#define PIO_PD0A_GTXCK (1u << 0)
172#define PIO_PD1A_GTXEN (1u << 1)
173#define PIO_PD17A_GTXER (1u << 17)
174/* ========== Pio definition for HSMCI peripheral ========== */
175#define PIO_PA28C_MCCDA (1u << 28)
176#define PIO_PA25D_MCCK (1u << 25)
177#define PIO_PA30C_MCDA0 (1u << 30)
178#define PIO_PA31C_MCDA1 (1u << 31)
179#define PIO_PA26C_MCDA2 (1u << 26)
180#define PIO_PA27C_MCDA3 (1u << 27)
181/* ========== Pio definition for ISI peripheral ========== */
182#define PIO_PD22D_ISI_D0 (1u << 22)
183#define PIO_PD21D_ISI_D1 (1u << 21)
184#define PIO_PD30D_ISI_D10 (1u << 30)
185#define PIO_PD31D_ISI_D11 (1u << 31)
186#define PIO_PB3D_ISI_D2 (1u << 3)
187#define PIO_PA9B_ISI_D3 (1u << 9)
188#define PIO_PA5B_ISI_D4 (1u << 5)
189#define PIO_PD11D_ISI_D5 (1u << 11)
190#define PIO_PD12D_ISI_D6 (1u << 12)
191#define PIO_PA27D_ISI_D7 (1u << 27)
192#define PIO_PD27D_ISI_D8 (1u << 27)
193#define PIO_PD28D_ISI_D9 (1u << 28)
194#define PIO_PD24D_ISI_HSYNC (1u << 24)
195#define PIO_PA24D_ISI_PCK (1u << 24)
196#define PIO_PD25D_ISI_VSYNC (1u << 25)
197/* ========== Pio definition for MCAN0 peripheral ========== */
198#define PIO_PB3A_CANRX0 (1u << 3)
199#define PIO_PB2A_CANTX0 (1u << 2)
200/* ========== Pio definition for MCAN1 peripheral ========== */
201#define PIO_PC12C_CANRX1 (1u << 12)
202#define PIO_PD28B_CANRX1 (1u << 28)
203#define PIO_PC14C_CANTX1 (1u << 14)
204#define PIO_PD12B_CANTX1 (1u << 12)
205/* ========== Pio definition for PIOA peripheral ========== */
206#define PIO_PA21X1_AFE0_AD1 (1u << 21)
207#define PIO_PA21X1_PIODCEN2 (1u << 21)
208#define PIO_PA3X1_PIODC0 (1u << 3)
209#define PIO_PA10X1_PIODC4 (1u << 10)
210#define PIO_PA12X1_PIODC6 (1u << 12)
211#define PIO_PA13X1_PIODC7 (1u << 13)
212#define PIO_PA22X1_PIODCCLK (1u << 22)
213#define PIO_PA4X1_WKUP3 (1u << 4)
214#define PIO_PA4X1_PIODC1 (1u << 4)
215#define PIO_PA5X1_WKUP4 (1u << 5)
216#define PIO_PA5X1_PIODC2 (1u << 5)
217#define PIO_PA9X1_WKUP6 (1u << 9)
218#define PIO_PA9X1_PIODC3 (1u << 9)
219#define PIO_PA11X1_WKUP7 (1u << 11)
220#define PIO_PA11X1_PIODC5 (1u << 11)
221#define PIO_PA14X1_WKUP8 (1u << 14)
222#define PIO_PA14X1_PIODCEN1 (1u << 14)
223/* ========== Pio definition for PMC peripheral ========== */
224#define PIO_PA6B_PCK0 (1u << 6)
225#define PIO_PB12D_PCK0 (1u << 12)
226#define PIO_PB13B_PCK0 (1u << 13)
227#define PIO_PA17B_PCK1 (1u << 17)
228#define PIO_PA21B_PCK1 (1u << 21)
229#define PIO_PA3C_PCK2 (1u << 3)
230#define PIO_PA18B_PCK2 (1u << 18)
231#define PIO_PA31B_PCK2 (1u << 31)
232#define PIO_PB3B_PCK2 (1u << 3)
233#define PIO_PD31C_PCK2 (1u << 31)
234/* ========== Pio definition for PWM0 peripheral ========== */
235#define PIO_PA10B_PWMC0_PWMEXTRG0 (1u << 10)
236#define PIO_PA22B_PWMC0_PWMEXTRG1 (1u << 22)
237#define PIO_PA9C_PWMC0_PWMFI0 (1u << 9)
238#define PIO_PD8B_PWMC0_PWMFI1 (1u << 8)
239#define PIO_PD9B_PWMC0_PWMFI2 (1u << 9)
240#define PIO_PA0A_PWMC0_PWMH0 (1u << 0)
241#define PIO_PA11B_PWMC0_PWMH0 (1u << 11)
242#define PIO_PA23B_PWMC0_PWMH0 (1u << 23)
243#define PIO_PB0A_PWMC0_PWMH0 (1u << 0)
244#define PIO_PD11B_PWMC0_PWMH0 (1u << 11)
245#define PIO_PD20A_PWMC0_PWMH0 (1u << 20)
246#define PIO_PA2A_PWMC0_PWMH1 (1u << 2)
247#define PIO_PA12B_PWMC0_PWMH1 (1u << 12)
248#define PIO_PA24B_PWMC0_PWMH1 (1u << 24)
249#define PIO_PB1A_PWMC0_PWMH1 (1u << 1)
250#define PIO_PD21A_PWMC0_PWMH1 (1u << 21)
251#define PIO_PA13B_PWMC0_PWMH2 (1u << 13)
252#define PIO_PA25B_PWMC0_PWMH2 (1u << 25)
253#define PIO_PB4B_PWMC0_PWMH2 (1u << 4)
254#define PIO_PC19B_PWMC0_PWMH2 (1u << 19)
255#define PIO_PD22A_PWMC0_PWMH2 (1u << 22)
256#define PIO_PA7B_PWMC0_PWMH3 (1u << 7)
257#define PIO_PA14B_PWMC0_PWMH3 (1u << 14)
258#define PIO_PA17C_PWMC0_PWMH3 (1u << 17)
259#define PIO_PC13B_PWMC0_PWMH3 (1u << 13)
260#define PIO_PC21B_PWMC0_PWMH3 (1u << 21)
261#define PIO_PD23A_PWMC0_PWMH3 (1u << 23)
262#define PIO_PA1A_PWMC0_PWML0 (1u << 1)
263#define PIO_PA19B_PWMC0_PWML0 (1u << 19)
264#define PIO_PB5B_PWMC0_PWML0 (1u << 5)
265#define PIO_PC0B_PWMC0_PWML0 (1u << 0)
266#define PIO_PD10B_PWMC0_PWML0 (1u << 10)
267#define PIO_PD24A_PWMC0_PWML0 (1u << 24)
268#define PIO_PA20B_PWMC0_PWML1 (1u << 20)
269#define PIO_PB12A_PWMC0_PWML1 (1u << 12)
270#define PIO_PC1B_PWMC0_PWML1 (1u << 1)
271#define PIO_PC18B_PWMC0_PWML1 (1u << 18)
272#define PIO_PD25A_PWMC0_PWML1 (1u << 25)
273#define PIO_PA16C_PWMC0_PWML2 (1u << 16)
274#define PIO_PA30A_PWMC0_PWML2 (1u << 30)
275#define PIO_PB13A_PWMC0_PWML2 (1u << 13)
276#define PIO_PC2B_PWMC0_PWML2 (1u << 2)
277#define PIO_PC20B_PWMC0_PWML2 (1u << 20)
278#define PIO_PD26A_PWMC0_PWML2 (1u << 26)
279#define PIO_PA15C_PWMC0_PWML3 (1u << 15)
280#define PIO_PC3B_PWMC0_PWML3 (1u << 3)
281#define PIO_PC15B_PWMC0_PWML3 (1u << 15)
282#define PIO_PC22B_PWMC0_PWML3 (1u << 22)
283#define PIO_PD27A_PWMC0_PWML3 (1u << 27)
284/* ========== Pio definition for PWM1 peripheral ========== */
285#define PIO_PA30B_PWMC1_PWMEXTRG0 (1u << 30)
286#define PIO_PA18A_PWMC1_PWMEXTRG1 (1u << 18)
287#define PIO_PA21C_PWMC1_PWMFI0 (1u << 21)
288#define PIO_PA26D_PWMC1_PWMFI1 (1u << 26)
289#define PIO_PA28D_PWMC1_PWMFI2 (1u << 28)
290#define PIO_PA12C_PWMC1_PWMH0 (1u << 12)
291#define PIO_PD1B_PWMC1_PWMH0 (1u << 1)
292#define PIO_PA14C_PWMC1_PWMH1 (1u << 14)
293#define PIO_PD3B_PWMC1_PWMH1 (1u << 3)
294#define PIO_PA31D_PWMC1_PWMH2 (1u << 31)
295#define PIO_PD5B_PWMC1_PWMH2 (1u << 5)
296#define PIO_PA8A_PWMC1_PWMH3 (1u << 8)
297#define PIO_PD7B_PWMC1_PWMH3 (1u << 7)
298#define PIO_PA11C_PWMC1_PWML0 (1u << 11)
299#define PIO_PD0B_PWMC1_PWML0 (1u << 0)
300#define PIO_PA13C_PWMC1_PWML1 (1u << 13)
301#define PIO_PD2B_PWMC1_PWML1 (1u << 2)
302#define PIO_PA23D_PWMC1_PWML2 (1u << 23)
303#define PIO_PD4B_PWMC1_PWML2 (1u << 4)
304#define PIO_PA5A_PWMC1_PWML3 (1u << 5)
305#define PIO_PD6B_PWMC1_PWML3 (1u << 6)
306/* ========== Pio definition for QSPI peripheral ========== */
307#define PIO_PA11A_QCS (1u << 11)
308#define PIO_PA13A_QIO0 (1u << 13)
309#define PIO_PA12A_QIO1 (1u << 12)
310#define PIO_PA17A_QIO2 (1u << 17)
311#define PIO_PD31A_QIO3 (1u << 31)
312#define PIO_PA14A_QSCK (1u << 14)
313/* ========== Pio definition for SPI0 peripheral ========== */
314#define PIO_PD20B_SPI0_MISO (1u << 20)
315#define PIO_PD21B_SPI0_MOSI (1u << 21)
316#define PIO_PB2D_SPI0_NPCS0 (1u << 2)
317#define PIO_PA31A_SPI0_NPCS1 (1u << 31)
318#define PIO_PD25B_SPI0_NPCS1 (1u << 25)
319#define PIO_PD12C_SPI0_NPCS2 (1u << 12)
320#define PIO_PD27B_SPI0_NPCS3 (1u << 27)
321#define PIO_PD22B_SPI0_SPCK (1u << 22)
322/* ========== Pio definition for SPI1 peripheral ========== */
323#define PIO_PC26C_SPI1_MISO (1u << 26)
324#define PIO_PC27C_SPI1_MOSI (1u << 27)
325#define PIO_PC25C_SPI1_NPCS0 (1u << 25)
326#define PIO_PC28C_SPI1_NPCS1 (1u << 28)
327#define PIO_PD0C_SPI1_NPCS1 (1u << 0)
328#define PIO_PC29C_SPI1_NPCS2 (1u << 29)
329#define PIO_PD1C_SPI1_NPCS2 (1u << 1)
330#define PIO_PC30C_SPI1_NPCS3 (1u << 30)
331#define PIO_PD2C_SPI1_NPCS3 (1u << 2)
332#define PIO_PC24C_SPI1_SPCK (1u << 24)
333/* ========== Pio definition for SSC peripheral ========== */
334#define PIO_PA10C_RD (1u << 10)
335#define PIO_PD24B_RF (1u << 24)
336#define PIO_PA22A_RK (1u << 22)
337#define PIO_PB5D_TD (1u << 5)
338#define PIO_PD10C_TD (1u << 10)
339#define PIO_PD26B_TD (1u << 26)
340#define PIO_PB0D_TF (1u << 0)
341#define PIO_PB1D_TK (1u << 1)
342/* ========== Pio definition for TC0 peripheral ========== */
343#define PIO_PA4B_TCLK0 (1u << 4)
344#define PIO_PA28B_TCLK1 (1u << 28)
345#define PIO_PA29B_TCLK2 (1u << 29)
346#define PIO_PA0B_TIOA0 (1u << 0)
347#define PIO_PA15B_TIOA1 (1u << 15)
348#define PIO_PA26B_TIOA2 (1u << 26)
349#define PIO_PA1B_TIOB0 (1u << 1)
350#define PIO_PA16B_TIOB1 (1u << 16)
351#define PIO_PA27B_TIOB2 (1u << 27)
352/* ========== Pio definition for TC3 peripheral ========== */
353#define PIO_PE5B_TCLK10 (1u << 5)
354#define PIO_PD24C_TCLK11 (1u << 24)
355#define PIO_PE2B_TCLK9 (1u << 2)
356#define PIO_PE3B_TIOA10 (1u << 3)
357#define PIO_PD21C_TIOA11 (1u << 21)
358#define PIO_PE0B_TIOA9 (1u << 0)
359#define PIO_PE4B_TIOB10 (1u << 4)
360#define PIO_PD22C_TIOB11 (1u << 22)
361#define PIO_PE1B_TIOB9 (1u << 1)
362/* ========== Pio definition for TWIHS0 peripheral ========== */
363#define PIO_PA4A_TWCK0 (1u << 4)
364#define PIO_PA3A_TWD0 (1u << 3)
365/* ========== Pio definition for TWIHS1 peripheral ========== */
366#define PIO_PB5A_TWCK1 (1u << 5)
367#define PIO_PB4A_TWD1 (1u << 4)
368/* ========== Pio definition for TWIHS2 peripheral ========== */
369#define PIO_PD28C_TWCK2 (1u << 28)
370#define PIO_PD27C_TWD2 (1u << 27)
371/* ========== Pio definition for UART0 peripheral ========== */
372#define PIO_PA9A_URXD0 (1u << 9)
373#define PIO_PA10A_UTXD0 (1u << 10)
374/* ========== Pio definition for UART1 peripheral ========== */
375#define PIO_PA5C_URXD1 (1u << 5)
376#define PIO_PA4C_UTXD1 (1u << 4)
377#define PIO_PA6C_UTXD1 (1u << 6)
378#define PIO_PD26D_UTXD1 (1u << 26)
379/* ========== Pio definition for UART2 peripheral ========== */
380#define PIO_PD25C_URXD2 (1u << 25)
381#define PIO_PD26C_UTXD2 (1u << 26)
382/* ========== Pio definition for UART3 peripheral ========== */
383#define PIO_PD28A_URXD3 (1u << 28)
384#define PIO_PD30A_UTXD3 (1u << 30)
385#define PIO_PD31B_UTXD3 (1u << 31)
386/* ========== Pio definition for UART4 peripheral ========== */
387#define PIO_PD18C_URXD4 (1u << 18)
388#define PIO_PD3C_UTXD4 (1u << 3)
389#define PIO_PD19C_UTXD4 (1u << 19)
390/* ========== Pio definition for USART0 peripheral ========== */
391#define PIO_PB2C_CTS0 (1u << 2)
392#define PIO_PD0D_DCD0 (1u << 0)
393#define PIO_PD2D_DSR0 (1u << 2)
394#define PIO_PD1D_DTR0 (1u << 1)
395#define PIO_PD3D_RI0 (1u << 3)
396#define PIO_PB3C_RTS0 (1u << 3)
397#define PIO_PB0C_RXD0 (1u << 0)
398#define PIO_PB13C_SCK0 (1u << 13)
399#define PIO_PB1C_TXD0 (1u << 1)
400/* ========== Pio definition for USART1 peripheral ========== */
401#define PIO_PA25A_CTS1 (1u << 25)
402#define PIO_PA26A_DCD1 (1u << 26)
403#define PIO_PA28A_DSR1 (1u << 28)
404#define PIO_PA27A_DTR1 (1u << 27)
405#define PIO_PA3B_LONCOL1 (1u << 3)
406#define PIO_PA29A_RI1 (1u << 29)
407#define PIO_PA24A_RTS1 (1u << 24)
408#define PIO_PA21A_RXD1 (1u << 21)
409#define PIO_PA23A_SCK1 (1u << 23)
410#define PIO_PB4D_TXD1 (1u << 4)
411/* ========== Pio definition for USART2 peripheral ========== */
412#define PIO_PD19B_CTS2 (1u << 19)
413#define PIO_PD4D_DCD2 (1u << 4)
414#define PIO_PD6D_DSR2 (1u << 6)
415#define PIO_PD5D_DTR2 (1u << 5)
416#define PIO_PD7D_RI2 (1u << 7)
417#define PIO_PD18B_RTS2 (1u << 18)
418#define PIO_PD15B_RXD2 (1u << 15)
419#define PIO_PD17B_SCK2 (1u << 17)
420#define PIO_PD16B_TXD2 (1u << 16)
421/* ========== Pio indexes ========== */
422#define PIO_PA0_IDX 0
423#define PIO_PA1_IDX 1
424#define PIO_PA2_IDX 2
425#define PIO_PA3_IDX 3
426#define PIO_PA4_IDX 4
427#define PIO_PA5_IDX 5
428#define PIO_PA7_IDX 7
429#define PIO_PA8_IDX 8
430#define PIO_PA9_IDX 9
431#define PIO_PA10_IDX 10
432#define PIO_PA11_IDX 11
433#define PIO_PA12_IDX 12
434#define PIO_PA13_IDX 13
435#define PIO_PA14_IDX 14
436#define PIO_PA15_IDX 15
437#define PIO_PA16_IDX 16
438#define PIO_PA17_IDX 17
439#define PIO_PA18_IDX 18
440#define PIO_PA19_IDX 19
441#define PIO_PA20_IDX 20
442#define PIO_PA21_IDX 21
443#define PIO_PA22_IDX 22
444#define PIO_PA23_IDX 23
445#define PIO_PA24_IDX 24
446#define PIO_PA25_IDX 25
447#define PIO_PA26_IDX 26
448#define PIO_PA27_IDX 27
449#define PIO_PA28_IDX 28
450#define PIO_PA30_IDX 30
451#define PIO_PA31_IDX 31
452#define PIO_PB0_IDX 32
453#define PIO_PB1_IDX 33
454#define PIO_PB2_IDX 34
455#define PIO_PB3_IDX 35
456#define PIO_PB4_IDX 36
457#define PIO_PB5_IDX 37
458#define PIO_PB6_IDX 38
459#define PIO_PB7_IDX 39
460#define PIO_PB8_IDX 40
461#define PIO_PB9_IDX 41
462#define PIO_PB12_IDX 44
463#define PIO_PB13_IDX 45
464#define PIO_PD0_IDX 96
465#define PIO_PD1_IDX 97
466#define PIO_PD2_IDX 98
467#define PIO_PD3_IDX 99
468#define PIO_PD4_IDX 100
469#define PIO_PD5_IDX 101
470#define PIO_PD6_IDX 102
471#define PIO_PD7_IDX 103
472#define PIO_PD8_IDX 104
473#define PIO_PD9_IDX 105
474#define PIO_PD10_IDX 106
475#define PIO_PD11_IDX 107
476#define PIO_PD12_IDX 108
477#define PIO_PD13_IDX 109
478#define PIO_PD14_IDX 110
479#define PIO_PD15_IDX 111
480#define PIO_PD16_IDX 112
481#define PIO_PD17_IDX 113
482#define PIO_PD18_IDX 114
483#define PIO_PD19_IDX 115
484#define PIO_PD20_IDX 116
485#define PIO_PD21_IDX 117
486#define PIO_PD22_IDX 118
487#define PIO_PD24_IDX 120
488#define PIO_PD25_IDX 121
489#define PIO_PD26_IDX 122
490#define PIO_PD27_IDX 123
491#define PIO_PD28_IDX 124
492#define PIO_PD30_IDX 126
493#define PIO_PD31_IDX 127
494
495#endif /* _SAME70N21_PIO_ */