RTEMS
7.0-rc1
Loading...
Searching...
No Matches
bsps
arm
csb337
include
at91rm9200_gpio.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: BSD-2-Clause */
2
11
/*
12
* Copyright (C) 2002 Cogent Computer Systems
13
* Written by Mike Kelly <mike@cogcomp.com>
14
*
15
* Redistribution and use in source and binary forms, with or without
16
* modification, are permitted provided that the following conditions
17
* are met:
18
* 1. Redistributions of source code must retain the above copyright
19
* notice, this list of conditions and the following disclaimer.
20
* 2. Redistributions in binary form must reproduce the above copyright
21
* notice, this list of conditions and the following disclaimer in the
22
* documentation and/or other materials provided with the distribution.
23
*
24
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
25
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
28
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
29
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
30
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
32
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
33
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34
* POSSIBILITY OF SUCH DAMAGE.
35
*/
36
37
#ifndef AT91RM9200_GPIO_H
38
#define AT91RM9200_GPIO_H
39
40
#include <
bits.h
>
41
42
/* Register Offsets */
43
#define PIO_PER 0x00
/* PIO Enable Register */
44
#define PIO_PDR 0x04
/* PIO Disable Register */
45
#define PIO_PSR 0x08
/* PIO Status Register */
46
#define PIO_OER 0x10
/* Output Enable Register */
47
#define PIO_ODR 0x14
/* Output Disable Registerr */
48
#define PIO_OSR 0x18
/* Output Status Register */
49
#define PIO_IFER 0x20
/* Input Filter Enable Register */
50
#define PIO_IFDR 0x24
/* Input Filter Disable Register */
51
#define PIO_IFSR 0x28
/* Input Filter Status Register */
52
#define PIO_SODR 0x30
/* Set Output Data Register */
53
#define PIO_CODR 0x34
/* Clear Output Data Register */
54
#define PIO_ODSR 0x38
/* Output Data Status Register */
55
#define PIO_PDSR 0x3c
/* Pin Data Status Register */
56
#define PIO_IER 0x40
/* Interrupt Enable Register */
57
#define PIO_IDR 0x44
/* Interrupt Disable Register */
58
#define PIO_IMR 0x48
/* Interrupt Mask Register */
59
#define PIO_ISR 0x4c
/* Interrupt Status Register */
60
#define PIO_MDER 0x50
/* Multi-driver Enable Register */
61
#define PIO_MDDR 0x54
/* Multi-driver Disable Register */
62
#define PIO_MDSR 0x58
/* Multi-driver Status Register */
63
#define PIO_PUDR 0x60
/* Pull-up Disable Register */
64
#define PIO_PUER 0x64
/* Pull-up Enable Register */
65
#define PIO_PUSR 0x68
/* Pad Pull-up Status Register */
66
#define PIO_ASR 0x70
/* Select A Register */
67
#define PIO_BSR 0x74
/* Select B Register */
68
#define PIO_ABSR 0x78
/* AB Select Status Register */
69
#define PIO_OWER 0xA0
/* Output Write Enable Register */
70
#define PIO_OWDR 0xA4
/* Output Write Disable Register */
71
#define PIO_OWSR 0xA8
/* Output Write Status Register */
72
73
74
/*
75
* The AT91RM9200 GPIO's are spread across four 32-bit ports A-D.
76
* To make it easier to interface with them and to eliminate the need
77
* to track which GPIO is in which port, we convert the Port x, Bit y
78
* into a single GPIO number 0 - 127.
79
*
80
* Board specific defines will assign the board level signal to a
81
* virutal GPIO.
82
*
83
* PORT A
84
*/
85
#define GPIO_0 BIT0
86
#define GPIO_1 BIT1
87
#define GPIO_2 BIT2
88
#define GPIO_3 BIT3
89
#define GPIO_4 BIT4
90
#define GPIO_5 BIT5
91
#define GPIO_6 BIT6
92
#define GPIO_7 BIT7
93
#define GPIO_8 BIT8
94
#define GPIO_9 BIT9
95
#define GPIO_10 BIT10
96
#define GPIO_11 BIT11
97
#define GPIO_12 BIT12
98
#define GPIO_13 BIT13
99
#define GPIO_14 BIT14
100
#define GPIO_15 BIT15
101
#define GPIO_16 BIT16
102
#define GPIO_17 BIT17
103
#define GPIO_18 BIT18
104
#define GPIO_19 BIT19
105
#define GPIO_20 BIT20
106
#define GPIO_21 BIT21
107
#define GPIO_22 BIT22
108
#define GPIO_23 BIT23
109
#define GPIO_24 BIT24
110
#define GPIO_25 BIT25
111
#define GPIO_26 BIT26
112
#define GPIO_27 BIT27
113
#define GPIO_28 BIT28
114
#define GPIO_29 BIT29
115
#define GPIO_30 BIT30
116
#define GPIO_31 BIT31
117
/* PORT B */
118
#define GPIO_32 BIT0
119
#define GPIO_33 BIT1
120
#define GPIO_34 BIT2
121
#define GPIO_35 BIT3
122
#define GPIO_36 BIT4
123
#define GPIO_37 BIT5
124
#define GPIO_38 BIT6
125
#define GPIO_39 BIT7
126
#define GPIO_40 BIT8
127
#define GPIO_41 BIT9
128
#define GPIO_42 BIT10
129
#define GPIO_43 BIT11
130
#define GPIO_44 BIT12
131
#define GPIO_45 BIT13
132
#define GPIO_46 BIT14
133
#define GPIO_47 BIT15
134
#define GPIO_48 BIT16
135
#define GPIO_49 BIT17
136
#define GPIO_50 BIT18
137
#define GPIO_51 BIT19
138
#define GPIO_52 BIT20
139
#define GPIO_53 BIT21
140
#define GPIO_54 BIT22
141
#define GPIO_55 BIT23
142
#define GPIO_56 BIT24
143
#define GPIO_57 BIT25
144
#define GPIO_58 BIT26
145
#define GPIO_59 BIT27
146
#define GPIO_60 BIT28
147
#define GPIO_61 BIT29
148
#define GPIO_62 BIT30
149
#define GPIO_63 BIT31
150
/* PORT C */
151
#define GPIO_64 BIT0
152
#define GPIO_65 BIT1
153
#define GPIO_66 BIT2
154
#define GPIO_67 BIT3
155
#define GPIO_68 BIT4
156
#define GPIO_69 BIT5
157
#define GPIO_70 BIT6
158
#define GPIO_71 BIT7
159
#define GPIO_72 BIT8
160
#define GPIO_73 BIT9
161
#define GPIO_74 BIT10
162
#define GPIO_75 BIT11
163
#define GPIO_76 BIT12
164
#define GPIO_77 BIT13
165
#define GPIO_78 BIT14
166
#define GPIO_79 BIT15
167
#define GPIO_80 BIT16
168
#define GPIO_81 BIT17
169
#define GPIO_82 BIT18
170
#define GPIO_83 BIT19
171
#define GPIO_84 BIT20
172
#define GPIO_85 BIT21
173
#define GPIO_86 BIT22
174
#define GPIO_87 BIT23
175
#define GPIO_88 BIT24
176
#define GPIO_89 BIT25
177
#define GPIO_90 BIT26
178
#define GPIO_91 BIT27
179
#define GPIO_92 BIT28
180
#define GPIO_93 BIT29
181
#define GPIO_94 BIT30
182
#define GPIO_95 BIT31
183
/* PORT D */
184
#define GPIO_96 BIT0
185
#define GPIO_97 BIT1
186
#define GPIO_98 BIT2
187
#define GPIO_99 BIT3
188
#define GPIO_100 BIT4
189
#define GPIO_101 BIT5
190
#define GPIO_102 BIT6
191
#define GPIO_103 BIT7
192
#define GPIO_104 BIT8
193
#define GPIO_105 BIT9
194
#define GPIO_106 BIT10
195
#define GPIO_107 BIT11
196
#define GPIO_108 BIT12
197
#define GPIO_109 BIT13
198
#define GPIO_110 BIT14
199
#define GPIO_111 BIT15
200
#define GPIO_112 BIT16
201
#define GPIO_113 BIT17
202
#define GPIO_114 BIT18
203
#define GPIO_115 BIT19
204
#define GPIO_116 BIT20
205
#define GPIO_117 BIT21
206
#define GPIO_118 BIT22
207
#define GPIO_119 BIT23
208
#define GPIO_120 BIT24
209
#define GPIO_121 BIT25
210
#define GPIO_122 BIT26
211
#define GPIO_123 BIT27
212
#define GPIO_124 BIT28
213
#define GPIO_125 BIT29
214
#define GPIO_126 BIT30
215
#define GPIO_127 BIT31
216
217
/*
218
* Most of the GPIO pins can have one of two alternate functions
219
* in addition to being GPIO
220
*
221
* Port A, Alternate Function A
222
*/
223
#define PIOA_ASR_MISO BIT0
/* SPI Master In (RX), Slave out */
224
#define PIOA_ASR_MOSI BIT1
/* SPI Master Out (TX), Slave In */
225
#define PIOA_ASR_SPCK BIT2
/* SPI Clock */
226
#define PIOA_ASR_NPCS0 BIT3
/* SPI Chip Select 0 */
227
#define PIOA_ASR_NPCS1 BIT4
/* SPI Chip Select 1 */
228
#define PIOA_ASR_NPCS2 BIT5
/* SPI Chip Select 2 */
229
#define PIOA_ASR_NPCS3 BIT6
/* SPI Chip Select 3 */
230
#define PIOA_ASR_ETXCK BIT7
/* EMAC TX Clock */
231
#define PIOA_ASR_ETXEN BIT8
/* EMAC TXEN */
232
#define PIOA_ASR_ETX0 BIT9
/* EMAC TXD0 */
233
#define PIOA_ASR_ETX1 BIT10
/* EMAC TXD1 */
234
#define PIOA_ASR_ECRS BIT11
/* EMAC CRS */
235
#define PIOA_ASR_ERX0 BIT12
/* EMAC RXD0 */
236
#define PIOA_ASR_ERX1 BIT13
/* EMAC RXD1 */
237
#define PIOA_ASR_ERXER BIT14
/* EMAC RXER */
238
#define PIOA_ASR_EMDC BIT15
/* EMAC MDC */
239
#define PIOA_ASR_EMDIO BIT16
/* EMAC MDIO */
240
#define PIOA_ASR_TXD0 BIT17
/* USART 0 Receive */
241
#define PIOA_ASR_RXD0 BIT18
/* USART 0 Transmit */
242
#define PIOA_ASR_SCK0 BIT19
/* USART 0 Clock */
243
#define PIOA_ASR_CTS0 BIT20
/* USART 0 CTS */
244
#define PIOA_ASR_RTS0 BIT21
/* USART 0 RTS */
245
#define PIOA_ASR_RXD2 BIT22
/* USART 2 Receive */
246
#define PIOA_ASR_TXD2 BIT23
/* USART 2 Transmit */
247
#define PIOA_ASR_SCK2 BIT24
/* USART 2 Clock */
248
#define PIOA_ASR_TWD BIT25
/* Two-Wire (I2C) Data */
249
#define PIOA_ASR_TWCK BIT26
/* Two-Wire (I2C) Clock */
250
#define PIOA_ASR_MCCK BIT27
/* MMC/SD Card Clock */
251
#define PIOA_ASR_MCCDA BIT28
/* MMC/SD Card A Command */
252
#define PIOA_ASR_MCDA0 BIT29
/* MMC/SD Card A Data 0 */
253
#define PIOA_ASR_DRXD BIT30
/* Debug Uart Receive */
254
#define PIOA_ASR_DTXD BIT31
/* Debug Uart Transmit */
255
256
/* Port A, Alternate Function B */
257
#define PIOA_BSR_PCK3 BIT0
/* Peripheral Clock 3 */
258
#define PIOA_BSR_PCK0 BIT1
/* Peripheral Clock 0 */
259
#define PIOA_BSR_IRQ4 BIT2
/* IRQ4 */
260
#define PIOA_BSR_IRQ5 BIT3
/* IRQ5 */
261
/*#define PIOA_BSR_PCK1 BIT4 Peripheral Clock 1 ***DUPLICATED at BIT24 ??? */
262
#define PIOA_BSR_TXD3 BIT5
/* USART 3 Transmit */
263
#define PIOA_BSR_RXD3 BIT6
/* USART 3 Receive */
264
#define PIOA_BSR_PCK2 BIT7
/* Peripheral Clock 2 */
265
#define PIOA_BSR_MCCDB BIT8
/* MMC/SD Card B Command */
266
#define PIOA_BSR_MCDB0 BIT9
/* MMC/SD Card B Data 0 */
267
#define PIOA_BSR_MCDB1 BIT10
/* MMC/SD Card B Data 1 */
268
#define PIOA_BSR_MCDB2 BIT11
/* MMC/SD Card B Data 2 */
269
#define PIOA_BSR_MCDB3 BIT12
/* MMC/SD C ard B Data 3 */
270
#define PIOA_BSR_TCLK0 BIT13
/* Timer 0 Clock */
271
#define PIOA_BSR_TCLK1 BIT14
/* Timer 1 Clck */
272
#define PIOA_BSR_TCLK2 BIT15
/* Timer 2 Clock */
273
#define PIOA_BSR_IRQ6 BIT16
/* IRQ6 */
274
#define PIOA_BSR_TIOA0 BIT17
/* Timer 0 I/O A */
275
#define PIOA_BSR_TIOB0 BIT18
/* Timer 0 I/O B */
276
#define PIOA_BSR_TIOA1 BIT19
/* Timer 1 I/O A */
277
#define PIOA_BSR_TIOB1 BIT20
/* Timer 1 I/O B */
278
#define PIOA_BSR_TIOA2 BIT21
/* Timer 2 I/O A */
279
#define PIOA_BSR_TIOB2 BIT22
/* Timer 2 I/O B */
280
#define PIOA_BSR_IRQ3 BIT23
/* IRQ3 */
281
#define PIOA_BSR_PCK1 BIT24
/* Peripheral Clock 1 */
282
#define PIOA_BSR_IRQ2 BIT25
/* IRQ2 */
283
#define PIOA_BSR_IRQ1 BIT26
/* IRQ1 */
284
#define PIOA_BSR_TCLK3 BIT27
/* Timer Block Clock 3 (docs only show 0-2?) */
285
#define PIOA_BSR_TCLK4 BIT28
/* Timer Block Clock 4 */
286
#define PIOA_BSR_TCLK5 BIT29
/* Timer Block Clock 5 */
287
#define PIOA_BSR_CTS2 BIT30
/* USART 2 CTS */
288
#define PIOA_BSR_RTS2 BIT31
/* USART 2 RTS */
289
290
/* Port B, Function A */
291
#define PIOB_ASR_TF0 BIT0
/* AC'97/I2S 0 Transmit Frame */
292
#define PIOB_ASR_TK0 BIT1
/* AC'97/I2S 0 Transmit Clock */
293
#define PIOB_ASR_TD0 BIT2
/* AC'97/I2S 0 Transmit Data */
294
#define PIOB_ASR_RD0 BIT3
/* AC'97/I2S 0 Receive Data */
295
#define PIOB_ASR_RK0 BIT4
/* AC'97/I2S 0 Receive Clock */
296
#define PIOB_ASR_RF0 BIT5
/* AC'97/I2S 0 Receive Frame */
297
#define PIOB_ASR_TF1 BIT6
/* AC'97/I2S 1 Transmit Frame */
298
#define PIOB_ASR_TK1 BIT7
/* AC'97/I2S 1 Transmit Clock */
299
#define PIOB_ASR_TD1 BIT8
/* AC'97/I2S 1 Transmit Data */
300
#define PIOB_ASR_RD1 BIT9
/* AC'97/I2S 1 Receive Data */
301
#define PIOB_ASR_RK1 BIT10
/* AC'97/I2S 1 Receive Clock */
302
#define PIOB_ASR_RF1 BIT11
/* AC'97/I2S 1 Receive Frame */
303
#define PIOB_ASR_TF2 BIT12
/* AC'97/I2S 1 Transmit Frame */
304
#define PIOB_ASR_TK2 BIT13
/* AC'97/I2S 1 Transmit Clock */
305
#define PIOB_ASR_TD2 BIT14
/* AC'97/I2S 1 Transmit Data */
306
#define PIOB_ASR_RD2 BIT15
/* AC'97/I2S 1 Receive Data */
307
#define PIOB_ASR_RK2 BIT16
/* AC'97/I2S 1 Receive Clock */
308
#define PIOB_ASR_RF2 BIT17
/* AC'97/I2S 1 Receive Frame */
309
#define PIOB_ASR_RI1 BIT18
/* USART 1 RI */
310
#define PIOB_ASR_DTR1 BIT19
/* USART 1 DTR */
311
#define PIOB_ASR_TXD1 BIT20
/* USART 1 TXD */
312
#define PIOB_ASR_RXD1 BIT21
/* USART 1 RXD */
313
#define PIOB_ASR_SCK1 BIT22
/* USART 1 SCK */
314
#define PIOB_ASR_DCD1 BIT23
/* USART 1 DCD */
315
#define PIOB_ASR_CTS1 BIT24
/* USART 1 CTS */
316
#define PIOB_ASR_DSR1 BIT25
/* USART 1 DSR */
317
#define PIOB_ASR_RTS1 BIT26
/* USART 1 RTS */
318
#define PIOB_ASR_PCK0 BIT27
/* Peripheral Clock 0 */
319
#define PIOB_ASR_FIQ BIT28
/* FIQ */
320
#define PIOB_ASR_IRQ0 BIT29
/* IRQ0 */
321
322
/* Port B, Function B */
323
#define PIOB_BSR_RTS3 BIT0
/* USART 3 */
324
#define PIOB_BSR_CTS3 BIT1
/* USART 3 */
325
#define PIOB_BSR_SCK3 BIT2
/* USART 3 */
326
#define PIOB_BSR_MCDA1 BIT3
/* MMC/SD Card A, Data 1 */
327
#define PIOB_BSR_MCDA2 BIT4
/* MMC/SD Card A, Data 2 */
328
#define PIOB_BSR_MCDA3 BIT5
/* MMC/SD Card A, Data 3 */
329
#define PIOB_BSR_TIOA3 BIT6
/* Timer 3 IO A */
330
#define PIOB_BSR_TIOB3 BIT7
/* Timer 3 IO B */
331
#define PIOB_BSR_TIOA4 BIT8
/* Timer 4 IO A */
332
#define PIOB_BSR_TIOB4 BIT9
/* Timer 4 IO B */
333
#define PIOB_BSR_TIOA5 BIT10
/* Timer 5 IO A */
334
#define PIOB_BSR_TIOB5 BIT11
/* Timer 5 IO B */
335
#define PIOB_BSR_ETX2 BIT12
/* EMAC TXD2 */
336
#define PIOB_BSR_ETX3 BIT13
/* EMAC TXD3 */
337
#define PIOB_BSR_ETXER BIT14
/* EMAC TXER */
338
#define PIOB_BSR_ERX2 BIT15
/* EMAC RXD2 */
339
#define PIOB_BSR_ERX3 BIT16
/* EMAC RXD3 */
340
#define PIOB_BSR_ERXDV BIT17
/* EMAC RXDV */
341
#define PIOB_BSR_ECOL BIT18
/* EMAC COL */
342
#define PIOB_BSR_ERXCK BIT19
/* EMAC RX Clock */
343
#define PIOB_BSR_EF100 BIT25
/* EMAC Speed 100 (RMII Only) */
344
345
/* Port C, Alternate Function A */
346
#define PIOC_ASR_BFCK BIT0
/* Burst Flash Clock */
347
#define PIOC_ASR_BFRDY BIT1
/* Burst Flash Ready or SMC Card OE */
348
#define PIOC_ASR_BFAVD BIT2
/* Burst Flash Address Valid */
349
#define PIOC_ASR_BFBAA BIT3
/* Burst Flash Address Advance or SMC Card WE */
350
#define PIOC_ASR_BFOE BIT4
/* Burst Flash OE */
351
#define PIOC_ASR_BFWE BIT5
/* Burst Flash WE */
352
#define PIOC_ASR_NWAIT BIT6
/* WAIT Input */
353
#define PIOC_ASR_A23 BIT7
/* A23 */
354
#define PIOC_ASR_A24 BIT8
/* A24 */
355
#define PIOC_ASR_A25 BIT9
/* A25 or Compact Flash R/W */
356
#define PIOC_ASR_NCS4 BIT10
/* CS4 or Compact Flash CS */
357
#define PIOC_ASR_NCS5 BIT11
/* CS5 or Compact Flash CE1 */
358
#define PIOC_ASR_NCS6 BIT12
/* CS6 or Compact Flash CE2 */
359
#define PIOC_ASR_NCS7 BIT13
/* CS7 */
360
#define PIOC_ASR_D16 BIT16
/* Databus Bit 16 */
361
#define PIOC_ASR_D17 BIT17
/* Databus Bit 17 */
362
#define PIOC_ASR_D18 BIT18
/* Databus Bit 18 */
363
#define PIOC_ASR_D19 BIT19
/* Databus Bit 19 */
364
#define PIOC_ASR_D20 BIT20
/* Databus Bit 20 */
365
#define PIOC_ASR_D21 BIT21
/* Databus Bit 21 */
366
#define PIOC_ASR_D22 BIT22
/* Databus Bit 22 */
367
#define PIOC_ASR_D23 BIT23
/* Databus Bit 23 */
368
#define PIOC_ASR_D24 BIT24
/* Databus Bit 24 */
369
#define PIOC_ASR_D25 BIT25
/* Databus Bit 25 */
370
#define PIOC_ASR_D26 BIT26
/* Databus Bit 26 */
371
#define PIOC_ASR_D27 BIT27
/* Databus Bit 27 */
372
#define PIOC_ASR_D28 BIT28
/* Databus Bit 28 */
373
#define PIOC_ASR_D29 BIT29
/* Databus Bit 29 */
374
#define PIOC_ASR_D30 BIT30
/* Databus Bit 30 */
375
#define PIOC_ASR_D31 BIT31
/* Databus Bit 31 */
376
377
/* Port C, Alternate Function B - None */
378
379
/* Port D, Alternate Function A */
380
#define PIOD_ASR_ETX0 BIT0
/* EMAC TXD0 */
381
#define PIOD_ASR_ETX1 BIT1
/* EMAC TXD1 */
382
#define PIOD_ASR_ETX2 BIT2
/* EMAC TXD2 */
383
#define PIOD_ASR_ETX3 BIT3
/* EMAC TXD3 */
384
#define PIOD_ASR_ETXEN BIT4
/* EMAC TXEN */
385
#define PIOD_ASR_ETXER BIT5
/* EMAC TXER */
386
#define PIOD_ASR_DTXD BIT6
/* Debug UART Transmit */
387
#define PIOD_ASR_PCK0 BIT7
/* Peripheral Clock 0 */
388
#define PIOD_ASR_PCK1 BIT8
/* Peripheral Clock 1 */
389
#define PIOD_ASR_PCK2 BIT9
/* Peripheral Clock 2 */
390
#define PIOD_ASR_PCK3 BIT10
/* Peripheral Clock 3 */
391
#define PIOD_ASR_TD0 BIT15
/* AC'97/I2S 0 Transmit Data */
392
#define PIOD_ASR_TD1 BIT16
/* AC'97/I2S 1 Transmit Data */
393
#define PIOD_ASR_TD2 BIT17
/* AC'97/I2S 2 Transmit Data */
394
#define PIOD_ASR_NPCS1 BIT18
/* SPI Chip Select 1 */
395
#define PIOD_ASR_NPCS2 BIT19
/* SPI Chip Select 2 */
396
#define PIOD_ASR_NPCS3 BIT20
/* SPI Chip Select 3 */
397
#define PIOD_ASR_RTS0 BIT21
/* USART 0 RTS */
398
#define PIOD_ASR_RTS1 BIT22
/* USART 1 RTS */
399
#define PIOD_ASR_RTS2 BIT23
/* USART 2 RTS */
400
#define PIOD_ASR_RTS3 BIT24
/* USART 3 RTS */
401
#define PIOD_ASR_DTR1 BIT25
/* USART 1 DTR */
402
403
/* Port D, Alternate Function B */
404
405
#define PIOC_ASR_TSYNC BIT7
/* ETM Sync */
406
#define PIOC_ASR_TCLK BIT8
/* ETM Clock */
407
#define PIOC_ASR_TPS0 BIT9
/* ETM Processor Status 0 */
408
#define PIOC_ASR_TPS1 BIT10
/* ETM Processor Status 1 */
409
#define PIOC_ASR_TPS2 BIT11
/* ETM Processor Status 2 */
410
#define PIOC_ASR_TPK0 BIT12
/* ETM Packet Data 0 */
411
#define PIOC_ASR_TPK1 BIT13
/* ETM Packet Data 1 */
412
#define PIOC_ASR_TPK2 BIT14
/* ETM Packet Data 2 */
413
#define PIOC_ASR_TPK3 BIT15
/* ETM Packet Data 3 */
414
#define PIOC_ASR_TPK4 BIT16
/* ETM Packet Data 4 */
415
#define PIOC_ASR_TPK5 BIT17
/* ETM Packet Data 5 */
416
#define PIOC_ASR_TPK6 BIT18
/* ETM Packet Data 6 */
417
#define PIOC_ASR_TPK7 BIT19
/* ETM Packet Data 7 */
418
#define PIOC_ASR_TPK8 BIT20
/* ETM Packet Data 8 */
419
#define PIOC_ASR_TPK9 BIT21
/* ETM Packet Data 9 */
420
#define PIOC_ASR_TPK10 BIT22
/* ETM Packet Data 10 */
421
#define PIOC_ASR_TPK11 BIT23
/* ETM Packet Data 11 */
422
#define PIOC_ASR_TPK12 BIT24
/* ETM Packet Data 12 */
423
#define PIOC_ASR_TPK13 BIT25
/* ETM Packet Data 13 */
424
#define PIOC_ASR_TPK14 BIT26
/* ETM Packet Data 14 */
425
#define PIOC_ASR_TPK15 BIT27
/* ETM Packet Data 15 */
426
427
#endif
bits.h
Contains bit position definitions.
Generated by
1.9.6