OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [libgloss/] [bfin/] [include/] [cdefBF538.h] - Blame information for rev 300

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 148 jeremybenn
/*
2
 * The authors hereby grant permission to use, copy, modify, distribute,
3
 * and license this software and its documentation for any purpose, provided
4
 * that existing copyright notices are retained in all copies and that this
5
 * notice is included verbatim in any distributions. No written agreement,
6
 * license, or royalty fee is required for any of the authorized uses.
7
 * Modifications to this software may be copyrighted by their authors
8
 * and need not follow the licensing terms described here, provided that
9
 * the new terms are clearly indicated on the first page of each file where
10
 * they apply.
11
 */
12
 
13
/************************************************************************
14
 *
15
 * cdefBF538.h
16
 *
17
 * Copyright (C) 2008 Analog Devices, Inc.
18
 *
19
 ************************************************************************/
20
 
21
/* C POINTERS TO SYSTEM MMR REGISTER AND MEMORY MAP FOR ADSP-BF538 */
22
 
23
#ifndef _CDEF_BF538_H
24
#define _CDEF_BF538_H
25
 
26
/* include all Core registers and bit definitions */
27
#include <defBF538.h>
28
 
29
/* include core specific register pointer definitions */
30
#include <cdef_LPBlackfin.h>
31
 
32
/* include common system register pointer definitions from ADSP-BF532 */
33
#include <cdefBF532.h>
34
 
35
 
36
/* System Interrupt Controller (0xFFC00100 - 0xFFC001FF)                                */
37
/* ADSP-BF538 SIC0 is same as SIC on ADSP-BF532 */
38
#define pSIC_IMASK0                             pSIC_IMASK
39
#define pSIC_ISR0                               pSIC_ISR
40
#define pSIC_IWR0                               pSIC_IWR
41
/* ADSP-BF538 SIC1 Registers */
42
#define pSIC_IMASK1                             ((volatile unsigned long  *)SIC_IMASK1)
43
#define pSIC_ISR1                               ((volatile unsigned long  *)SIC_ISR1)
44
#define pSIC_IWR1                               ((volatile unsigned long  *)SIC_IWR1)
45
#define pSIC_IAR3                               ((volatile unsigned long  *)SIC_IAR3)
46
#define pSIC_IAR4                               ((volatile unsigned long  *)SIC_IAR4)
47
#define pSIC_IAR5                               ((volatile unsigned long  *)SIC_IAR5)
48
#define pSIC_IAR6                               ((volatile unsigned long  *)SIC_IAR6)
49
 
50
 
51
/* UART0 Controller                                                             */
52
/* ADSP-BF538 UART0 is same as UART on ADSP-BF532 */
53
#define pUART0_THR                              pUART_THR
54
#define pUART0_RBR                              pUART_RBR
55
#define pUART0_DLL                              pUART_DLL
56
#define pUART0_IER                              pUART_IER
57
#define pUART0_DLH                              pUART_DLH
58
#define pUART0_IIR                              pUART_IIR
59
#define pUART0_LCR                              pUART_LCR
60
#define pUART0_MCR                              pUART_MCR
61
#define pUART0_LSR                              pUART_LSR
62
#define pUART0_SCR                              pUART_SCR
63
#define pUART0_GCTL                     pUART_GCTL
64
 
65
 
66
/* SPI0 Controller                                              */
67
/* ADSP-BF538 SPI0 is same as SPI on ADSP-BF532 */
68
#define pSPI0_CTL                               pSPI_CTL
69
#define pSPI0_FLG                               pSPI_FLG
70
#define pSPI0_STAT                              pSPI_STAT
71
#define pSPI0_TDBR                              pSPI_TDBR
72
#define pSPI0_RDBR                              pSPI_RDBR
73
#define pSPI0_BAUD                              pSPI_BAUD
74
#define pSPI0_SHADOW                    pSPI_SHADOW
75
 
76
 
77
/* General-Purpose Input/Output Ports (GPIO)                                    */
78
/* ADSP-BF538 Refers to FIO as GPIO Port F */
79
#define pPORTFIO                                pFIO_FLAG_D
80
#define pPORTFIO_CLEAR                  pFIO_FLAG_C
81
#define pPORTFIO_SET                    pFIO_FLAG_S
82
#define pPORTFIO_TOGGLE                 pFIO_FLAG_T
83
#define pPORTFIO_MASKA                  pFIO_MASKA_D
84
#define pPORTFIO_MASKA_CLEAR    pFIO_MASKA_C
85
#define pPORTFIO_MASKA_SET              pFIO_MASKA_S
86
#define pPORTFIO_MASKA_TOGGLE   pFIO_MASKA_T
87
#define pPORTFIO_MASKB                  pFIO_MASKB_D
88
#define pPORTFIO_MASKB_CLEAR    pFIO_MASKB_C
89
#define pPORTFIO_MASKB_SET              pFIO_MASKB_S
90
#define pPORTFIO_MASKB_TOGGLE   pFIO_MASKB_T
91
#define pPORTFIO_DIR                    pFIO_DIR
92
#define pPORTFIO_POLAR                  pFIO_POLAR
93
#define pPORTFIO_EDGE                   pFIO_EDGE
94
#define pPORTFIO_BOTH                   pFIO_BOTH
95
#define pPORTFIO_INEN                   pFIO_INEN
96
 
97
 
98
/* DMA0 Traffic Control Registers                                                                                       */
99
/* ADSP-BF538 DMA0 Controller is same as DMA Controller on ADSP-BF532 */
100
#define pDMAC0_TC_PER                           pDMA_TC_PER
101
#define pDMAC0_TC_CNT                           pDMA_TC_CNT
102
 
103
/* Alternate deprecated register names (below) provided for backwards code compatibility */
104
#define pDMA0_TC_PER                            pDMAC0_TC_PER
105
#define pDMA0_TC_CNT                            pDMAC0_TC_CNT
106
 
107
/* Alternate deprecated register names (below) provided for backwards code compatibility */
108
#define pDMA0_TCPER                                     pDMA0_TC_PER    /* Traffic Control Periods Register                     */
109
#define pDMA0_TCCNT                                     pDMA0_TC_CNT    /* Traffic Control Current Counts Register      */
110
 
111
/* Must Enumerate MemDMA Controllers As Well */
112
#define pMDMA0_D0_NEXT_DESC_PTR         pMDMA_D0_NEXT_DESC_PTR
113
#define pMDMA0_D0_START_ADDR            pMDMA_D0_START_ADDR
114
#define pMDMA0_D0_CONFIG                        pMDMA_D0_CONFIG
115
#define pMDMA0_D0_X_COUNT                       pMDMA_D0_X_COUNT
116
#define pMDMA0_D0_X_MODIFY                      pMDMA_D0_X_MODIFY
117
#define pMDMA0_D0_Y_COUNT                       pMDMA_D0_Y_COUNT
118
#define pMDMA0_D0_Y_MODIFY                      pMDMA_D0_Y_MODIFY
119
#define pMDMA0_D0_CURR_DESC_PTR         pMDMA_D0_CURR_DESC_PTR
120
#define pMDMA0_D0_CURR_ADDR             pMDMA_D0_CURR_ADDR
121
#define pMDMA0_D0_IRQ_STATUS            pMDMA_D0_IRQ_STATUS
122
#define pMDMA0_D0_PERIPHERAL_MAP        pMDMA_D0_PERIPHERAL_MAP
123
#define pMDMA0_D0_CURR_X_COUNT          pMDMA_D0_CURR_X_COUNT
124
#define pMDMA0_D0_CURR_Y_COUNT          pMDMA_D0_CURR_Y_COUNT
125
 
126
#define pMDMA0_S0_NEXT_DESC_PTR         pMDMA_S0_NEXT_DESC_PTR
127
#define pMDMA0_S0_START_ADDR            pMDMA_S0_START_ADDR
128
#define pMDMA0_S0_CONFIG                        pMDMA_S0_CONFIG
129
#define pMDMA0_S0_X_COUNT                       pMDMA_S0_X_COUNT
130
#define pMDMA0_S0_X_MODIFY                      pMDMA_S0_X_MODIFY
131
#define pMDMA0_S0_Y_COUNT                       pMDMA_S0_Y_COUNT
132
#define pMDMA0_S0_Y_MODIFY                      pMDMA_S0_Y_MODIFY
133
#define pMDMA0_S0_CURR_DESC_PTR         pMDMA_S0_CURR_DESC_PTR
134
#define pMDMA0_S0_CURR_ADDR             pMDMA_S0_CURR_ADDR
135
#define pMDMA0_S0_IRQ_STATUS            pMDMA_S0_IRQ_STATUS
136
#define pMDMA0_S0_PERIPHERAL_MAP        pMDMA_S0_PERIPHERAL_MAP
137
#define pMDMA0_S0_CURR_X_COUNT          pMDMA_S0_CURR_X_COUNT
138
#define pMDMA0_S0_CURR_Y_COUNT          pMDMA_S0_CURR_Y_COUNT
139
 
140
#define pMDMA0_D1_NEXT_DESC_PTR         pMDMA_D1_NEXT_DESC_PTR
141
#define pMDMA0_D1_START_ADDR            pMDMA_D1_START_ADDR
142
#define pMDMA0_D1_CONFIG                        pMDMA_D1_CONFIG
143
#define pMDMA0_D1_X_COUNT                       pMDMA_D1_X_COUNT
144
#define pMDMA0_D1_X_MODIFY                      pMDMA_D1_X_MODIFY
145
#define pMDMA0_D1_Y_COUNT                       pMDMA_D1_Y_COUNT
146
#define pMDMA0_D1_Y_MODIFY                      pMDMA_D1_Y_MODIFY
147
#define pMDMA0_D1_CURR_DESC_PTR         pMDMA_D1_CURR_DESC_PTR
148
#define pMDMA0_D1_CURR_ADDR             pMDMA_D1_CURR_ADDR
149
#define pMDMA0_D1_IRQ_STATUS            pMDMA_D1_IRQ_STATUS
150
#define pMDMA0_D1_PERIPHERAL_MAP        pMDMA_D1_PERIPHERAL_MAP
151
#define pMDMA0_D1_CURR_X_COUNT          pMDMA_D1_CURR_X_COUNT
152
#define pMDMA0_D1_CURR_Y_COUNT          pMDMA_D1_CURR_Y_COUNT
153
 
154
#define pMDMA0_S1_NEXT_DESC_PTR         pMDMA_S1_NEXT_DESC_PTR
155
#define pMDMA0_S1_START_ADDR            pMDMA_S1_START_ADDR
156
#define pMDMA0_S1_CONFIG                        pMDMA_S1_CONFIG
157
#define pMDMA0_S1_X_COUNT                       pMDMA_S1_X_COUNT
158
#define pMDMA0_S1_X_MODIFY                      pMDMA_S1_X_MODIFY
159
#define pMDMA0_S1_Y_COUNT                       pMDMA_S1_Y_COUNT
160
#define pMDMA0_S1_Y_MODIFY                      pMDMA_S1_Y_MODIFY
161
#define pMDMA0_S1_CURR_DESC_PTR         pMDMA_S1_CURR_DESC_PTR
162
#define pMDMA0_S1_CURR_ADDR             pMDMA_S1_CURR_ADDR
163
#define pMDMA0_S1_IRQ_STATUS            pMDMA_S1_IRQ_STATUS
164
#define pMDMA0_S1_PERIPHERAL_MAP        pMDMA_S1_PERIPHERAL_MAP
165
#define pMDMA0_S1_CURR_X_COUNT          pMDMA_S1_CURR_X_COUNT
166
#define pMDMA0_S1_CURR_Y_COUNT          pMDMA_S1_CURR_Y_COUNT
167
 
168
 
169
/* Two-Wire Interface 0                                         */
170
#define pTWI0_CLKDIV            ((volatile unsigned short *)TWI0_CLKDIV)
171
#define pTWI0_CONTROL           ((volatile unsigned short *)TWI0_CONTROL)
172
#define pTWI0_SLAVE_CTRL        ((volatile unsigned short *)TWI0_SLAVE_CTRL)
173
#define pTWI0_SLAVE_STAT        ((volatile unsigned short *)TWI0_SLAVE_STAT)
174
#define pTWI0_SLAVE_ADDR        ((volatile unsigned short *)TWI0_SLAVE_ADDR)
175
#define pTWI0_MASTER_CTRL       ((volatile unsigned short *)TWI0_MASTER_CTRL)
176
#define pTWI0_MASTER_STAT       ((volatile unsigned short *)TWI0_MASTER_STAT)
177
#define pTWI0_MASTER_ADDR       ((volatile unsigned short *)TWI0_MASTER_ADDR)
178
#define pTWI0_INT_STAT          ((volatile unsigned short *)TWI0_INT_STAT)
179
#define pTWI0_INT_MASK          ((volatile unsigned short *)TWI0_INT_MASK)
180
#define pTWI0_FIFO_CTRL         ((volatile unsigned short *)TWI0_FIFO_CTRL)
181
#define pTWI0_FIFO_STAT         ((volatile unsigned short *)TWI0_FIFO_STAT)
182
#define pTWI0_XMT_DATA8         ((volatile unsigned short *)TWI0_XMT_DATA8)
183
#define pTWI0_XMT_DATA16        ((volatile unsigned short *)TWI0_XMT_DATA16)
184
#define pTWI0_RCV_DATA8         ((volatile unsigned short *)TWI0_RCV_DATA8)
185
#define pTWI0_RCV_DATA16        ((volatile unsigned short *)TWI0_RCV_DATA16)
186
 
187
 
188
/* General Purpose IO Ports C, D, and E                                         */
189
#define pPORTCIO_FER            ((volatile unsigned short *)PORTCIO_FER)
190
#define pPORTCIO                        ((volatile unsigned short *)PORTCIO)
191
#define pPORTCIO_CLEAR          ((volatile unsigned short *)PORTCIO_CLEAR)
192
#define pPORTCIO_SET            ((volatile unsigned short *)PORTCIO_SET)
193
#define pPORTCIO_TOGGLE         ((volatile unsigned short *)PORTCIO_TOGGLE)
194
#define pPORTCIO_DIR            ((volatile unsigned short *)PORTCIO_DIR)
195
#define pPORTCIO_INEN           ((volatile unsigned short *)PORTCIO_INEN)
196
 
197
#define pPORTDIO_FER            ((volatile unsigned short *)PORTDIO_FER)
198
#define pPORTDIO                        ((volatile unsigned short *)PORTDIO)
199
#define pPORTDIO_CLEAR          ((volatile unsigned short *)PORTDIO_CLEAR)
200
#define pPORTDIO_SET            ((volatile unsigned short *)PORTDIO_SET)
201
#define pPORTDIO_TOGGLE         ((volatile unsigned short *)PORTDIO_TOGGLE)
202
#define pPORTDIO_DIR            ((volatile unsigned short *)PORTDIO_DIR)
203
#define pPORTDIO_INEN           ((volatile unsigned short *)PORTDIO_INEN)
204
 
205
#define pPORTEIO_FER            ((volatile unsigned short *)PORTEIO_FER)
206
#define pPORTEIO                        ((volatile unsigned short *)PORTEIO)
207
#define pPORTEIO_CLEAR          ((volatile unsigned short *)PORTEIO_CLEAR)
208
#define pPORTEIO_SET            ((volatile unsigned short *)PORTEIO_SET)
209
#define pPORTEIO_TOGGLE         ((volatile unsigned short *)PORTEIO_TOGGLE)
210
#define pPORTEIO_DIR            ((volatile unsigned short *)PORTEIO_DIR)
211
#define pPORTEIO_INEN           ((volatile unsigned short *)PORTEIO_INEN)
212
 
213
 
214
/* DMA1 Traffic Control Registers                                                                                       */
215
#define pDMAC1_TC_PER                           ((volatile unsigned short *)DMAC1_TC_PER)
216
#define pDMAC1_TC_CNT                           ((volatile unsigned short *)DMAC1_TC_CNT)
217
/* Alternate deprecated register names (below) provided for backwards code compatibility */
218
#define pDMA1_TC_PER                                    pDMAC1_TC_PER   /* Traffic Control Periods Register                     */
219
#define pDMA1_TC_CNT                                    pDMAC1_TC_CNT   /* Traffic Control Current Counts Register      */
220
/* Alternate deprecated register names (below) provided for backwards code compatibility */
221
#define pDMA1_TCPER                                     pDMA1_TC_PER    /* Traffic Control Periods Register                     */
222
#define pDMA1_TCCNT                                     pDMA1_TC_CNT    /* Traffic Control Current Counts Register      */
223
 
224
/* DMA Controller 1                                             */
225
#define pDMA8_NEXT_DESC_PTR             ((void * volatile *)DMA8_NEXT_DESC_PTR)
226
#define pDMA8_START_ADDR                        ((void * volatile *)DMA8_START_ADDR)
227
#define pDMA8_CONFIG                            ((volatile unsigned short *)DMA8_CONFIG)
228
#define pDMA8_X_COUNT                           ((volatile unsigned short *)DMA8_X_COUNT)
229
#define pDMA8_X_MODIFY                          ((volatile signed   short *)DMA8_X_MODIFY)
230
#define pDMA8_Y_COUNT                           ((volatile unsigned short *)DMA8_Y_COUNT)
231
#define pDMA8_Y_MODIFY                          ((volatile signed   short *)DMA8_Y_MODIFY)
232
#define pDMA8_CURR_DESC_PTR             ((void * volatile *)DMA8_CURR_DESC_PTR)
233
#define pDMA8_CURR_ADDR                         ((void * volatile *)DMA8_CURR_ADDR)
234
#define pDMA8_IRQ_STATUS                        ((volatile unsigned short *)DMA8_IRQ_STATUS)
235
#define pDMA8_PERIPHERAL_MAP            ((volatile unsigned short *)DMA8_PERIPHERAL_MAP)
236
#define pDMA8_CURR_X_COUNT                      ((volatile unsigned short *)DMA8_CURR_X_COUNT)
237
#define pDMA8_CURR_Y_COUNT                      ((volatile unsigned short *)DMA8_CURR_Y_COUNT)
238
 
239
#define pDMA9_NEXT_DESC_PTR             ((void * volatile *)DMA9_NEXT_DESC_PTR)
240
#define pDMA9_START_ADDR                        ((void * volatile *)DMA9_START_ADDR)
241
#define pDMA9_CONFIG                            ((volatile unsigned short *)DMA9_CONFIG)
242
#define pDMA9_X_COUNT                           ((volatile unsigned short *)DMA9_X_COUNT)
243
#define pDMA9_X_MODIFY                          ((volatile signed   short *)DMA9_X_MODIFY)
244
#define pDMA9_Y_COUNT                           ((volatile unsigned short *)DMA9_Y_COUNT)
245
#define pDMA9_Y_MODIFY                          ((volatile signed   short *)DMA9_Y_MODIFY)
246
#define pDMA9_CURR_DESC_PTR             ((void * volatile *)DMA9_CURR_DESC_PTR)
247
#define pDMA9_CURR_ADDR                         ((void * volatile *)DMA9_CURR_ADDR)
248
#define pDMA9_IRQ_STATUS                        ((volatile unsigned short *)DMA9_IRQ_STATUS)
249
#define pDMA9_PERIPHERAL_MAP            ((volatile unsigned short *)DMA9_PERIPHERAL_MAP)
250
#define pDMA9_CURR_X_COUNT                      ((volatile unsigned short *)DMA9_CURR_X_COUNT)
251
#define pDMA9_CURR_Y_COUNT                      ((volatile unsigned short *)DMA9_CURR_Y_COUNT)
252
 
253
#define pDMA10_NEXT_DESC_PTR            ((void * volatile *)DMA10_NEXT_DESC_PTR)
254
#define pDMA10_START_ADDR                       ((void * volatile *)DMA10_START_ADDR)
255
#define pDMA10_CONFIG                           ((volatile unsigned short *)DMA10_CONFIG)
256
#define pDMA10_X_COUNT                          ((volatile unsigned short *)DMA10_X_COUNT)
257
#define pDMA10_X_MODIFY                         ((volatile signed   short *)DMA10_X_MODIFY)
258
#define pDMA10_Y_COUNT                          ((volatile unsigned short *)DMA10_Y_COUNT)
259
#define pDMA10_Y_MODIFY                         ((volatile signed   short *)DMA10_Y_MODIFY)
260
#define pDMA10_CURR_DESC_PTR            ((void * volatile *)DMA10_CURR_DESC_PTR)
261
#define pDMA10_CURR_ADDR                        ((void * volatile *)DMA10_CURR_ADDR)
262
#define pDMA10_IRQ_STATUS                       ((volatile unsigned short *)DMA10_IRQ_STATUS)
263
#define pDMA10_PERIPHERAL_MAP           ((volatile unsigned short *)DMA10_PERIPHERAL_MAP)
264
#define pDMA10_CURR_X_COUNT             ((volatile unsigned short *)DMA10_CURR_X_COUNT)
265
#define pDMA10_CURR_Y_COUNT             ((volatile unsigned short *)DMA10_CURR_Y_COUNT)
266
 
267
#define pDMA11_NEXT_DESC_PTR            ((void * volatile *)DMA11_NEXT_DESC_PTR)
268
#define pDMA11_START_ADDR                       ((void * volatile *)DMA11_START_ADDR)
269
#define pDMA11_CONFIG                           ((volatile unsigned short *)DMA11_CONFIG)
270
#define pDMA11_X_COUNT                          ((volatile unsigned short *)DMA11_X_COUNT)
271
#define pDMA11_X_MODIFY                         ((volatile signed   short *)DMA11_X_MODIFY)
272
#define pDMA11_Y_COUNT                          ((volatile unsigned short *)DMA11_Y_COUNT)
273
#define pDMA11_Y_MODIFY                         ((volatile signed   short *)DMA11_Y_MODIFY)
274
#define pDMA11_CURR_DESC_PTR            ((void * volatile *)DMA11_CURR_DESC_PTR)
275
#define pDMA11_CURR_ADDR                        ((void * volatile *)DMA11_CURR_ADDR)
276
#define pDMA11_IRQ_STATUS                       ((volatile unsigned short *)DMA11_IRQ_STATUS)
277
#define pDMA11_PERIPHERAL_MAP           ((volatile unsigned short *)DMA11_PERIPHERAL_MAP)
278
#define pDMA11_CURR_X_COUNT             ((volatile unsigned short *)DMA11_CURR_X_COUNT)
279
#define pDMA11_CURR_Y_COUNT             ((volatile unsigned short *)DMA11_CURR_Y_COUNT)
280
 
281
#define pDMA12_NEXT_DESC_PTR            ((void * volatile *)DMA12_NEXT_DESC_PTR)
282
#define pDMA12_START_ADDR                       ((void * volatile *)DMA12_START_ADDR)
283
#define pDMA12_CONFIG                           ((volatile unsigned short *)DMA12_CONFIG)
284
#define pDMA12_X_COUNT                          ((volatile unsigned short *)DMA12_X_COUNT)
285
#define pDMA12_X_MODIFY                         ((volatile signed   short *)DMA12_X_MODIFY)
286
#define pDMA12_Y_COUNT                          ((volatile unsigned short *)DMA12_Y_COUNT)
287
#define pDMA12_Y_MODIFY                         ((volatile signed   short *)DMA12_Y_MODIFY)
288
#define pDMA12_CURR_DESC_PTR            ((void * volatile *)DMA12_CURR_DESC_PTR)
289
#define pDMA12_CURR_ADDR                        ((void * volatile *)DMA12_CURR_ADDR)
290
#define pDMA12_IRQ_STATUS                       ((volatile unsigned short *)DMA12_IRQ_STATUS)
291
#define pDMA12_PERIPHERAL_MAP           ((volatile unsigned short *)DMA12_PERIPHERAL_MAP)
292
#define pDMA12_CURR_X_COUNT             ((volatile unsigned short *)DMA12_CURR_X_COUNT)
293
#define pDMA12_CURR_Y_COUNT             ((volatile unsigned short *)DMA12_CURR_Y_COUNT)
294
 
295
#define pDMA13_NEXT_DESC_PTR            ((void * volatile *)DMA13_NEXT_DESC_PTR)
296
#define pDMA13_START_ADDR                       ((void * volatile *)DMA13_START_ADDR)
297
#define pDMA13_CONFIG                           ((volatile unsigned short *)DMA13_CONFIG)
298
#define pDMA13_X_COUNT                          ((volatile unsigned short *)DMA13_X_COUNT)
299
#define pDMA13_X_MODIFY                         ((volatile signed   short *)DMA13_X_MODIFY)
300
#define pDMA13_Y_COUNT                          ((volatile unsigned short *)DMA13_Y_COUNT)
301
#define pDMA13_Y_MODIFY                         ((volatile signed   short *)DMA13_Y_MODIFY)
302
#define pDMA13_CURR_DESC_PTR            ((void * volatile *)DMA13_CURR_DESC_PTR)
303
#define pDMA13_CURR_ADDR                        ((void * volatile *)DMA13_CURR_ADDR)
304
#define pDMA13_IRQ_STATUS                       ((volatile unsigned short *)DMA13_IRQ_STATUS)
305
#define pDMA13_PERIPHERAL_MAP           ((volatile unsigned short *)DMA13_PERIPHERAL_MAP)
306
#define pDMA13_CURR_X_COUNT             ((volatile unsigned short *)DMA13_CURR_X_COUNT)
307
#define pDMA13_CURR_Y_COUNT             ((volatile unsigned short *)DMA13_CURR_Y_COUNT)
308
 
309
#define pDMA14_NEXT_DESC_PTR            ((void * volatile *)DMA14_NEXT_DESC_PTR)
310
#define pDMA14_START_ADDR                       ((void * volatile *)DMA14_START_ADDR)
311
#define pDMA14_CONFIG                           ((volatile unsigned short *)DMA14_CONFIG)
312
#define pDMA14_X_COUNT                          ((volatile unsigned short *)DMA14_X_COUNT)
313
#define pDMA14_X_MODIFY                         ((volatile signed   short *)DMA14_X_MODIFY)
314
#define pDMA14_Y_COUNT                          ((volatile unsigned short *)DMA14_Y_COUNT)
315
#define pDMA14_Y_MODIFY                         ((volatile signed   short *)DMA14_Y_MODIFY)
316
#define pDMA14_CURR_DESC_PTR            ((void * volatile *)DMA14_CURR_DESC_PTR)
317
#define pDMA14_CURR_ADDR                        ((void * volatile *)DMA14_CURR_ADDR)
318
#define pDMA14_IRQ_STATUS                       ((volatile unsigned short *)DMA14_IRQ_STATUS)
319
#define pDMA14_PERIPHERAL_MAP           ((volatile unsigned short *)DMA14_PERIPHERAL_MAP)
320
#define pDMA14_CURR_X_COUNT             ((volatile unsigned short *)DMA14_CURR_X_COUNT)
321
#define pDMA14_CURR_Y_COUNT             ((volatile unsigned short *)DMA14_CURR_Y_COUNT)
322
 
323
#define pDMA15_NEXT_DESC_PTR            ((void * volatile *)DMA15_NEXT_DESC_PTR)
324
#define pDMA15_START_ADDR                       ((void * volatile *)DMA15_START_ADDR)
325
#define pDMA15_CONFIG                           ((volatile unsigned short *)DMA15_CONFIG)
326
#define pDMA15_X_COUNT                          ((volatile unsigned short *)DMA15_X_COUNT)
327
#define pDMA15_X_MODIFY                         ((volatile signed   short *)DMA15_X_MODIFY)
328
#define pDMA15_Y_COUNT                          ((volatile unsigned short *)DMA15_Y_COUNT)
329
#define pDMA15_Y_MODIFY                         ((volatile signed   short *)DMA15_Y_MODIFY)
330
#define pDMA15_CURR_DESC_PTR            ((void * volatile *)DMA15_CURR_DESC_PTR)
331
#define pDMA15_CURR_ADDR                        ((void * volatile *)DMA15_CURR_ADDR)
332
#define pDMA15_IRQ_STATUS                       ((volatile unsigned short *)DMA15_IRQ_STATUS)
333
#define pDMA15_PERIPHERAL_MAP           ((volatile unsigned short *)DMA15_PERIPHERAL_MAP)
334
#define pDMA15_CURR_X_COUNT             ((volatile unsigned short *)DMA15_CURR_X_COUNT)
335
#define pDMA15_CURR_Y_COUNT             ((volatile unsigned short *)DMA15_CURR_Y_COUNT)
336
 
337
#define pDMA16_NEXT_DESC_PTR            ((void * volatile *)DMA16_NEXT_DESC_PTR)
338
#define pDMA16_START_ADDR                       ((void * volatile *)DMA16_START_ADDR)
339
#define pDMA16_CONFIG                           ((volatile unsigned short *)DMA16_CONFIG)
340
#define pDMA16_X_COUNT                          ((volatile unsigned short *)DMA16_X_COUNT)
341
#define pDMA16_X_MODIFY                         ((volatile signed   short *)DMA16_X_MODIFY)
342
#define pDMA16_Y_COUNT                          ((volatile unsigned short *)DMA16_Y_COUNT)
343
#define pDMA16_Y_MODIFY                         ((volatile signed   short *)DMA16_Y_MODIFY)
344
#define pDMA16_CURR_DESC_PTR            ((void * volatile *)DMA16_CURR_DESC_PTR)
345
#define pDMA16_CURR_ADDR                        ((void * volatile *)DMA16_CURR_ADDR)
346
#define pDMA16_IRQ_STATUS                       ((volatile unsigned short *)DMA16_IRQ_STATUS)
347
#define pDMA16_PERIPHERAL_MAP           ((volatile unsigned short *)DMA16_PERIPHERAL_MAP)
348
#define pDMA16_CURR_X_COUNT             ((volatile unsigned short *)DMA16_CURR_X_COUNT)
349
#define pDMA16_CURR_Y_COUNT             ((volatile unsigned short *)DMA16_CURR_Y_COUNT)
350
 
351
#define pDMA17_NEXT_DESC_PTR            ((void * volatile *)DMA17_NEXT_DESC_PTR)
352
#define pDMA17_START_ADDR                       ((void * volatile *)DMA17_START_ADDR)
353
#define pDMA17_CONFIG                           ((volatile unsigned short *)DMA17_CONFIG)
354
#define pDMA17_X_COUNT                          ((volatile unsigned short *)DMA17_X_COUNT)
355
#define pDMA17_X_MODIFY                         ((volatile signed   short *)DMA17_X_MODIFY)
356
#define pDMA17_Y_COUNT                          ((volatile unsigned short *)DMA17_Y_COUNT)
357
#define pDMA17_Y_MODIFY                         ((volatile signed   short *)DMA17_Y_MODIFY)
358
#define pDMA17_CURR_DESC_PTR            ((void * volatile *)DMA17_CURR_DESC_PTR)
359
#define pDMA17_CURR_ADDR                        ((void * volatile *)DMA17_CURR_ADDR)
360
#define pDMA17_IRQ_STATUS                       ((volatile unsigned short *)DMA17_IRQ_STATUS)
361
#define pDMA17_PERIPHERAL_MAP           ((volatile unsigned short *)DMA17_PERIPHERAL_MAP)
362
#define pDMA17_CURR_X_COUNT             ((volatile unsigned short *)DMA17_CURR_X_COUNT)
363
#define pDMA17_CURR_Y_COUNT             ((volatile unsigned short *)DMA17_CURR_Y_COUNT)
364
 
365
#define pDMA18_NEXT_DESC_PTR            ((void * volatile *)DMA18_NEXT_DESC_PTR)
366
#define pDMA18_START_ADDR                       ((void * volatile *)DMA18_START_ADDR)
367
#define pDMA18_CONFIG                           ((volatile unsigned short *)DMA18_CONFIG)
368
#define pDMA18_X_COUNT                          ((volatile unsigned short *)DMA18_X_COUNT)
369
#define pDMA18_X_MODIFY                         ((volatile signed   short *)DMA18_X_MODIFY)
370
#define pDMA18_Y_COUNT                          ((volatile unsigned short *)DMA18_Y_COUNT)
371
#define pDMA18_Y_MODIFY                         ((volatile signed   short *)DMA18_Y_MODIFY)
372
#define pDMA18_CURR_DESC_PTR            ((void * volatile *)DMA18_CURR_DESC_PTR)
373
#define pDMA18_CURR_ADDR                        ((void * volatile *)DMA18_CURR_ADDR)
374
#define pDMA18_IRQ_STATUS                       ((volatile unsigned short *)DMA18_IRQ_STATUS)
375
#define pDMA18_PERIPHERAL_MAP           ((volatile unsigned short *)DMA18_PERIPHERAL_MAP)
376
#define pDMA18_CURR_X_COUNT             ((volatile unsigned short *)DMA18_CURR_X_COUNT)
377
#define pDMA18_CURR_Y_COUNT             ((volatile unsigned short *)DMA18_CURR_Y_COUNT)
378
 
379
#define pDMA19_NEXT_DESC_PTR            ((void * volatile *)DMA19_NEXT_DESC_PTR)
380
#define pDMA19_START_ADDR                       ((void * volatile *)DMA19_START_ADDR)
381
#define pDMA19_CONFIG                           ((volatile unsigned short *)DMA19_CONFIG)
382
#define pDMA19_X_COUNT                          ((volatile unsigned short *)DMA19_X_COUNT)
383
#define pDMA19_X_MODIFY                         ((volatile signed   short *)DMA19_X_MODIFY)
384
#define pDMA19_Y_COUNT                          ((volatile unsigned short *)DMA19_Y_COUNT)
385
#define pDMA19_Y_MODIFY                         ((volatile signed   short *)DMA19_Y_MODIFY)
386
#define pDMA19_CURR_DESC_PTR            ((void * volatile *)DMA19_CURR_DESC_PTR)
387
#define pDMA19_CURR_ADDR                        ((void * volatile *)DMA19_CURR_ADDR)
388
#define pDMA19_IRQ_STATUS                       ((volatile unsigned short *)DMA19_IRQ_STATUS)
389
#define pDMA19_PERIPHERAL_MAP           ((volatile unsigned short *)DMA19_PERIPHERAL_MAP)
390
#define pDMA19_CURR_X_COUNT             ((volatile unsigned short *)DMA19_CURR_X_COUNT)
391
#define pDMA19_CURR_Y_COUNT             ((volatile unsigned short *)DMA19_CURR_Y_COUNT)
392
 
393
#define pMDMA1_D0_NEXT_DESC_PTR         ((void * volatile *)MDMA1_D0_NEXT_DESC_PTR)
394
#define pMDMA1_D0_START_ADDR            ((void * volatile *)MDMA1_D0_START_ADDR)
395
#define pMDMA1_D0_CONFIG                        ((volatile unsigned short *)MDMA1_D0_CONFIG)
396
#define pMDMA1_D0_X_COUNT                       ((volatile unsigned short *)MDMA1_D0_X_COUNT)
397
#define pMDMA1_D0_X_MODIFY                      ((volatile signed   short *)MDMA1_D0_X_MODIFY)
398
#define pMDMA1_D0_Y_COUNT                       ((volatile unsigned short *)MDMA1_D0_Y_COUNT)
399
#define pMDMA1_D0_Y_MODIFY                      ((volatile signed   short *)MDMA1_D0_Y_MODIFY)
400
#define pMDMA1_D0_CURR_DESC_PTR         ((void * volatile *)MDMA1_D0_CURR_DESC_PTR)
401
#define pMDMA1_D0_CURR_ADDR             ((void * volatile *)MDMA1_D0_CURR_ADDR)
402
#define pMDMA1_D0_IRQ_STATUS            ((volatile unsigned short *)MDMA1_D0_IRQ_STATUS)
403
#define pMDMA1_D0_PERIPHERAL_MAP        ((volatile unsigned short *)MDMA1_D0_PERIPHERAL_MAP)
404
#define pMDMA1_D0_CURR_X_COUNT          ((volatile unsigned short *)MDMA1_D0_CURR_X_COUNT)
405
#define pMDMA1_D0_CURR_Y_COUNT          ((volatile unsigned short *)MDMA1_D0_CURR_Y_COUNT)
406
 
407
#define pMDMA1_S0_NEXT_DESC_PTR         ((void * volatile *)MDMA1_S0_NEXT_DESC_PTR)
408
#define pMDMA1_S0_START_ADDR            ((void * volatile *)MDMA1_S0_START_ADDR)
409
#define pMDMA1_S0_CONFIG                        ((volatile unsigned short *)MDMA1_S0_CONFIG)
410
#define pMDMA1_S0_X_COUNT                       ((volatile unsigned short *)MDMA1_S0_X_COUNT)
411
#define pMDMA1_S0_X_MODIFY                      ((volatile signed   short *)MDMA1_S0_X_MODIFY)
412
#define pMDMA1_S0_Y_COUNT                       ((volatile unsigned short *)MDMA1_S0_Y_COUNT)
413
#define pMDMA1_S0_Y_MODIFY                      ((volatile signed   short *)MDMA1_S0_Y_MODIFY)
414
#define pMDMA1_S0_CURR_DESC_PTR         ((void * volatile *)MDMA1_S0_CURR_DESC_PTR)
415
#define pMDMA1_S0_CURR_ADDR             ((void * volatile *)MDMA1_S0_CURR_ADDR)
416
#define pMDMA1_S0_IRQ_STATUS            ((volatile unsigned short *)MDMA1_S0_IRQ_STATUS)
417
#define pMDMA1_S0_PERIPHERAL_MAP        ((volatile unsigned short *)MDMA1_S0_PERIPHERAL_MAP)
418
#define pMDMA1_S0_CURR_X_COUNT          ((volatile unsigned short *)MDMA1_S0_CURR_X_COUNT)
419
#define pMDMA1_S0_CURR_Y_COUNT          ((volatile unsigned short *)MDMA1_S0_CURR_Y_COUNT)
420
 
421
#define pMDMA1_D1_NEXT_DESC_PTR         ((void * volatile *)MDMA1_D1_NEXT_DESC_PTR)
422
#define pMDMA1_D1_START_ADDR            ((void * volatile *)MDMA1_D1_START_ADDR)
423
#define pMDMA1_D1_CONFIG                        ((volatile unsigned short *)MDMA1_D1_CONFIG)
424
#define pMDMA1_D1_X_COUNT                       ((volatile unsigned short *)MDMA1_D1_X_COUNT)
425
#define pMDMA1_D1_X_MODIFY                      ((volatile signed   short *)MDMA1_D1_X_MODIFY)
426
#define pMDMA1_D1_Y_COUNT                       ((volatile unsigned short *)MDMA1_D1_Y_COUNT)
427
#define pMDMA1_D1_Y_MODIFY                      ((volatile signed   short *)MDMA1_D1_Y_MODIFY)
428
#define pMDMA1_D1_CURR_DESC_PTR         ((void * volatile *)MDMA1_D1_CURR_DESC_PTR)
429
#define pMDMA1_D1_CURR_ADDR             ((void * volatile *)MDMA1_D1_CURR_ADDR)
430
#define pMDMA1_D1_IRQ_STATUS            ((volatile unsigned short *)MDMA1_D1_IRQ_STATUS)
431
#define pMDMA1_D1_PERIPHERAL_MAP        ((volatile unsigned short *)MDMA1_D1_PERIPHERAL_MAP)
432
#define pMDMA1_D1_CURR_X_COUNT          ((volatile unsigned short *)MDMA1_D1_CURR_X_COUNT)
433
#define pMDMA1_D1_CURR_Y_COUNT          ((volatile unsigned short *)MDMA1_D1_CURR_Y_COUNT)
434
 
435
#define pMDMA1_S1_NEXT_DESC_PTR         ((void * volatile *)MDMA1_S1_NEXT_DESC_PTR)
436
#define pMDMA1_S1_START_ADDR            ((void * volatile *)MDMA1_S1_START_ADDR)
437
#define pMDMA1_S1_CONFIG                        ((volatile unsigned short *)MDMA1_S1_CONFIG)
438
#define pMDMA1_S1_X_COUNT                       ((volatile unsigned short *)MDMA1_S1_X_COUNT)
439
#define pMDMA1_S1_X_MODIFY                      ((volatile signed   short *)MDMA1_S1_X_MODIFY)
440
#define pMDMA1_S1_Y_COUNT                       ((volatile unsigned short *)MDMA1_S1_Y_COUNT)
441
#define pMDMA1_S1_Y_MODIFY                      ((volatile signed   short *)MDMA1_S1_Y_MODIFY)
442
#define pMDMA1_S1_CURR_DESC_PTR         ((void * volatile *)MDMA1_S1_CURR_DESC_PTR)
443
#define pMDMA1_S1_CURR_ADDR             ((void * volatile *)MDMA1_S1_CURR_ADDR)
444
#define pMDMA1_S1_IRQ_STATUS            ((volatile unsigned short *)MDMA1_S1_IRQ_STATUS)
445
#define pMDMA1_S1_PERIPHERAL_MAP        ((volatile unsigned short *)MDMA1_S1_PERIPHERAL_MAP)
446
#define pMDMA1_S1_CURR_X_COUNT          ((volatile unsigned short *)MDMA1_S1_CURR_X_COUNT)
447
#define pMDMA1_S1_CURR_Y_COUNT          ((volatile unsigned short *)MDMA1_S1_CURR_Y_COUNT)
448
 
449
 
450
/* UART1 Controller                                                     */
451
#define pUART1_THR                      ((volatile unsigned short *)UART1_THR)
452
#define pUART1_RBR                      ((volatile unsigned short *)UART1_RBR)
453
#define pUART1_DLL                      ((volatile unsigned short *)UART1_DLL)
454
#define pUART1_IER                      ((volatile unsigned short *)UART1_IER)
455
#define pUART1_DLH                      ((volatile unsigned short *)UART1_DLH)
456
#define pUART1_IIR                      ((volatile unsigned short *)UART1_IIR)
457
#define pUART1_LCR                      ((volatile unsigned short *)UART1_LCR)
458
#define pUART1_MCR                      ((volatile unsigned short *)UART1_MCR)
459
#define pUART1_LSR                      ((volatile unsigned short *)UART1_LSR)
460
#define pUART1_SCR                      ((volatile unsigned short *)UART1_SCR)
461
#define pUART1_GCTL             ((volatile unsigned short *)UART1_GCTL)
462
 
463
 
464
/* UART2 Controller                                             */
465
#define pUART2_THR                      ((volatile unsigned short *)UART2_THR)
466
#define pUART2_RBR                      ((volatile unsigned short *)UART2_RBR)
467
#define pUART2_DLL                      ((volatile unsigned short *)UART2_DLL)
468
#define pUART2_IER                      ((volatile unsigned short *)UART2_IER)
469
#define pUART2_DLH                      ((volatile unsigned short *)UART2_DLH)
470
#define pUART2_IIR                      ((volatile unsigned short *)UART2_IIR)
471
#define pUART2_LCR                      ((volatile unsigned short *)UART2_LCR)
472
#define pUART2_MCR                      ((volatile unsigned short *)UART2_MCR)
473
#define pUART2_LSR                      ((volatile unsigned short *)UART2_LSR)
474
#define pUART2_SCR                      ((volatile unsigned short *)UART2_SCR)
475
#define pUART2_GCTL             ((volatile unsigned short *)UART2_GCTL)
476
 
477
 
478
/* Two-Wire Interface 1                                         */
479
#define pTWI1_CLKDIV            ((volatile unsigned short *)TWI1_CLKDIV)
480
#define pTWI1_CONTROL           ((volatile unsigned short *)TWI1_CONTROL)
481
#define pTWI1_SLAVE_CTRL        ((volatile unsigned short *)TWI1_SLAVE_CTRL)
482
#define pTWI1_SLAVE_STAT        ((volatile unsigned short *)TWI1_SLAVE_STAT)
483
#define pTWI1_SLAVE_ADDR        ((volatile unsigned short *)TWI1_SLAVE_ADDR)
484
#define pTWI1_MASTER_CTRL       ((volatile unsigned short *)TWI1_MASTER_CTRL)
485
#define pTWI1_MASTER_STAT       ((volatile unsigned short *)TWI1_MASTER_STAT)
486
#define pTWI1_MASTER_ADDR       ((volatile unsigned short *)TWI1_MASTER_ADDR)
487
#define pTWI1_INT_STAT          ((volatile unsigned short *)TWI1_INT_STAT)
488
#define pTWI1_INT_MASK          ((volatile unsigned short *)TWI1_INT_MASK)
489
#define pTWI1_FIFO_CTRL         ((volatile unsigned short *)TWI1_FIFO_CTRL)
490
#define pTWI1_FIFO_STAT         ((volatile unsigned short *)TWI1_FIFO_STAT)
491
#define pTWI1_XMT_DATA8         ((volatile unsigned short *)TWI1_XMT_DATA8)
492
#define pTWI1_XMT_DATA16        ((volatile unsigned short *)TWI1_XMT_DATA16)
493
#define pTWI1_RCV_DATA8         ((volatile unsigned short *)TWI1_RCV_DATA8)
494
#define pTWI1_RCV_DATA16        ((volatile unsigned short *)TWI1_RCV_DATA16)
495
 
496
 
497
/* SPI1 Controller                                      */
498
#define pSPI1_CTL                       ((volatile unsigned short *)SPI1_CTL)
499
#define pSPI1_FLG                       ((volatile unsigned short *)SPI1_FLG)
500
#define pSPI1_STAT                      ((volatile unsigned short *)SPI1_STAT)
501
#define pSPI1_TDBR                      ((volatile unsigned short *)SPI1_TDBR)
502
#define pSPI1_RDBR                      ((volatile unsigned short *)SPI1_RDBR)
503
#define pSPI1_BAUD                      ((volatile unsigned short *)SPI1_BAUD)
504
#define pSPI1_SHADOW            ((volatile unsigned short *)SPI1_SHADOW)
505
 
506
 
507
/* SPI2 Controller                                                              */
508
#define pSPI2_CTL                       ((volatile unsigned short *)SPI2_CTL)
509
#define pSPI2_FLG                       ((volatile unsigned short *)SPI2_FLG)
510
#define pSPI2_STAT                      ((volatile unsigned short *)SPI2_STAT)
511
#define pSPI2_TDBR                      ((volatile unsigned short *)SPI2_TDBR)
512
#define pSPI2_RDBR                      ((volatile unsigned short *)SPI2_RDBR)
513
#define pSPI2_BAUD                      ((volatile unsigned short *)SPI2_BAUD)
514
#define pSPI2_SHADOW            ((volatile unsigned short *)SPI2_SHADOW)
515
 
516
 
517
/* SPORT2 Controller                                    */
518
#define pSPORT2_TCR1            ((volatile unsigned short *)SPORT2_TCR1)
519
#define pSPORT2_TCR2            ((volatile unsigned short *)SPORT2_TCR2)
520
#define pSPORT2_TCLKDIV         ((volatile unsigned short *)SPORT2_TCLKDIV)
521
#define pSPORT2_TFSDIV          ((volatile unsigned short *)SPORT2_TFSDIV)
522
#define pSPORT2_TX                      ((volatile unsigned long  *)SPORT2_TX)
523
#define pSPORT2_RX                      ((volatile unsigned long  *)SPORT2_RX)
524
#define pSPORT2_TX32            ((volatile unsigned long  *)SPORT2_TX)
525
#define pSPORT2_RX32            ((volatile unsigned long  *)SPORT2_RX)
526
#define pSPORT2_TX16            ((volatile unsigned short *)SPORT2_TX)
527
#define pSPORT2_RX16            ((volatile unsigned short *)SPORT2_RX)
528
#define pSPORT2_RCR1            ((volatile unsigned short *)SPORT2_RCR1)
529
#define pSPORT2_RCR2            ((volatile unsigned short *)SPORT2_RCR2)
530
#define pSPORT2_RCLKDIV         ((volatile unsigned short *)SPORT2_RCLKDIV)
531
#define pSPORT2_RFSDIV          ((volatile unsigned short *)SPORT2_RFSDIV)
532
#define pSPORT2_STAT            ((volatile unsigned short *)SPORT2_STAT)
533
#define pSPORT2_CHNL            ((volatile unsigned short *)SPORT2_CHNL)
534
#define pSPORT2_MCMC1           ((volatile unsigned short *)SPORT2_MCMC1)
535
#define pSPORT2_MCMC2           ((volatile unsigned short *)SPORT2_MCMC2)
536
#define pSPORT2_MTCS0           ((volatile unsigned long  *)SPORT2_MTCS0)
537
#define pSPORT2_MTCS1           ((volatile unsigned long  *)SPORT2_MTCS1)
538
#define pSPORT2_MTCS2           ((volatile unsigned long  *)SPORT2_MTCS2)
539
#define pSPORT2_MTCS3           ((volatile unsigned long  *)SPORT2_MTCS3)
540
#define pSPORT2_MRCS0           ((volatile unsigned long  *)SPORT2_MRCS0)
541
#define pSPORT2_MRCS1           ((volatile unsigned long  *)SPORT2_MRCS1)
542
#define pSPORT2_MRCS2           ((volatile unsigned long  *)SPORT2_MRCS2)
543
#define pSPORT2_MRCS3           ((volatile unsigned long  *)SPORT2_MRCS3)
544
 
545
 
546
/* SPORT3 Controller                                            */
547
#define pSPORT3_TCR1            ((volatile unsigned short *)SPORT3_TCR1)
548
#define pSPORT3_TCR2            ((volatile unsigned short *)SPORT3_TCR2)
549
#define pSPORT3_TCLKDIV         ((volatile unsigned short *)SPORT3_TCLKDIV)
550
#define pSPORT3_TFSDIV          ((volatile unsigned short *)SPORT3_TFSDIV)
551
#define pSPORT3_TX                      ((volatile unsigned long  *)SPORT3_TX)
552
#define pSPORT3_RX                      ((volatile unsigned long  *)SPORT3_RX)
553
#define pSPORT3_TX32            ((volatile unsigned long  *)SPORT3_TX)
554
#define pSPORT3_RX32            ((volatile unsigned long  *)SPORT3_RX)
555
#define pSPORT3_TX16            ((volatile unsigned short *)SPORT3_TX)
556
#define pSPORT3_RX16            ((volatile unsigned short *)SPORT3_RX)
557
#define pSPORT3_RCR1            ((volatile unsigned short *)SPORT3_RCR1)
558
#define pSPORT3_RCR2            ((volatile unsigned short *)SPORT3_RCR2)
559
#define pSPORT3_RCLKDIV         ((volatile unsigned short *)SPORT3_RCLKDIV)
560
#define pSPORT3_RFSDIV          ((volatile unsigned short *)SPORT3_RFSDIV)
561
#define pSPORT3_STAT            ((volatile unsigned short *)SPORT3_STAT)
562
#define pSPORT3_CHNL            ((volatile unsigned short *)SPORT3_CHNL)
563
#define pSPORT3_MCMC1           ((volatile unsigned short *)SPORT3_MCMC1)
564
#define pSPORT3_MCMC2           ((volatile unsigned short *)SPORT3_MCMC2)
565
#define pSPORT3_MTCS0           ((volatile unsigned long  *)SPORT3_MTCS0)
566
#define pSPORT3_MTCS1           ((volatile unsigned long  *)SPORT3_MTCS1)
567
#define pSPORT3_MTCS2           ((volatile unsigned long  *)SPORT3_MTCS2)
568
#define pSPORT3_MTCS3           ((volatile unsigned long  *)SPORT3_MTCS3)
569
#define pSPORT3_MRCS0           ((volatile unsigned long  *)SPORT3_MRCS0)
570
#define pSPORT3_MRCS1           ((volatile unsigned long  *)SPORT3_MRCS1)
571
#define pSPORT3_MRCS2           ((volatile unsigned long  *)SPORT3_MRCS2)
572
#define pSPORT3_MRCS3           ((volatile unsigned long  *)SPORT3_MRCS3)
573
 
574
 
575
/* CAN Controller                                               */
576
/* For Mailboxes 0-15                                                                                                   */
577
#define pCAN_MC1                        ((volatile unsigned short *)CAN_MC1)
578
#define pCAN_MD1                        ((volatile unsigned short *)CAN_MD1)
579
#define pCAN_TRS1                       ((volatile unsigned short *)CAN_TRS1)
580
#define pCAN_TRR1                       ((volatile unsigned short *)CAN_TRR1)
581
#define pCAN_TA1                        ((volatile unsigned short *)CAN_TA1)
582
#define pCAN_AA1                        ((volatile unsigned short *)CAN_AA1)
583
#define pCAN_RMP1                       ((volatile unsigned short *)CAN_RMP1)
584
#define pCAN_RML1                       ((volatile unsigned short *)CAN_RML1)
585
#define pCAN_MBTIF1                     ((volatile unsigned short *)CAN_MBTIF1)
586
#define pCAN_MBRIF1                     ((volatile unsigned short *)CAN_MBRIF1)
587
#define pCAN_MBIM1                      ((volatile unsigned short *)CAN_MBIM1)
588
#define pCAN_RFH1                       ((volatile unsigned short *)CAN_RFH1)
589
#define pCAN_OPSS1                      ((volatile unsigned short *)CAN_OPSS1)
590
 
591
/* For Mailboxes 16-31                                                                                                  */
592
#define pCAN_MC2                        ((volatile unsigned short *)CAN_MC2)
593
#define pCAN_MD2                        ((volatile unsigned short *)CAN_MD2)
594
#define pCAN_TRS2                       ((volatile unsigned short *)CAN_TRS2)
595
#define pCAN_TRR2                       ((volatile unsigned short *)CAN_TRR2)
596
#define pCAN_TA2                        ((volatile unsigned short *)CAN_TA2)
597
#define pCAN_AA2                        ((volatile unsigned short *)CAN_AA2)
598
#define pCAN_RMP2                       ((volatile unsigned short *)CAN_RMP2)
599
#define pCAN_RML2                       ((volatile unsigned short *)CAN_RML2)
600
#define pCAN_MBTIF2                     ((volatile unsigned short *)CAN_MBTIF2)
601
#define pCAN_MBRIF2                     ((volatile unsigned short *)CAN_MBRIF2)
602
#define pCAN_MBIM2                      ((volatile unsigned short *)CAN_MBIM2)
603
#define pCAN_RFH2                       ((volatile unsigned short *)CAN_RFH2)
604
#define pCAN_OPSS2                      ((volatile unsigned short *)CAN_OPSS2)
605
 
606
#define pCAN_CLOCK                      ((volatile unsigned short *)CAN_CLOCK)
607
#define pCAN_TIMING                     ((volatile unsigned short *)CAN_TIMING)
608
#define pCAN_DEBUG                      ((volatile unsigned short *)CAN_DEBUG)
609
#define pCAN_STATUS                     ((volatile unsigned short *)CAN_STATUS)
610
#define pCAN_CEC                        ((volatile unsigned short *)CAN_CEC)
611
#define pCAN_GIS                        ((volatile unsigned short *)CAN_GIS)
612
#define pCAN_GIM                        ((volatile unsigned short *)CAN_GIM)
613
#define pCAN_GIF                        ((volatile unsigned short *)CAN_GIF)
614
#define pCAN_CONTROL            ((volatile unsigned short *)CAN_CONTROL)
615
#define pCAN_INTR                       ((volatile unsigned short *)CAN_INTR)
616
#define pCAN_MBTD                       ((volatile unsigned short *)CAN_MBTD)
617
#define pCAN_EWR                        ((volatile unsigned short *)CAN_EWR)
618
#define pCAN_ESR                        ((volatile unsigned short *)CAN_ESR)
619
#define pCAN_UCREG                      ((volatile unsigned short *)CAN_UCREG)
620
#define pCAN_UCCNT                      ((volatile unsigned short *)CAN_UCCNT)
621
#define pCAN_UCRC                       ((volatile unsigned short *)CAN_UCRC)
622
#define pCAN_UCCNF                      ((volatile unsigned short *)CAN_UCCNF)
623
 
624
/* Mailbox Acceptance Masks                                                                                     */
625
#define pCAN_AM00L                      ((volatile unsigned short *)CAN_AM00L)
626
#define pCAN_AM00H                      ((volatile unsigned short *)CAN_AM00H)
627
#define pCAN_AM01L                      ((volatile unsigned short *)CAN_AM01L)
628
#define pCAN_AM01H                      ((volatile unsigned short *)CAN_AM01H)
629
#define pCAN_AM02L                      ((volatile unsigned short *)CAN_AM02L)
630
#define pCAN_AM02H                      ((volatile unsigned short *)CAN_AM02H)
631
#define pCAN_AM03L                      ((volatile unsigned short *)CAN_AM03L)
632
#define pCAN_AM03H                      ((volatile unsigned short *)CAN_AM03H)
633
#define pCAN_AM04L                      ((volatile unsigned short *)CAN_AM04L)
634
#define pCAN_AM04H                      ((volatile unsigned short *)CAN_AM04H)
635
#define pCAN_AM05L                      ((volatile unsigned short *)CAN_AM05L)
636
#define pCAN_AM05H                      ((volatile unsigned short *)CAN_AM05H)
637
#define pCAN_AM06L                      ((volatile unsigned short *)CAN_AM06L)
638
#define pCAN_AM06H                      ((volatile unsigned short *)CAN_AM06H)
639
#define pCAN_AM07L                      ((volatile unsigned short *)CAN_AM07L)
640
#define pCAN_AM07H                      ((volatile unsigned short *)CAN_AM07H)
641
#define pCAN_AM08L                      ((volatile unsigned short *)CAN_AM08L)
642
#define pCAN_AM08H                      ((volatile unsigned short *)CAN_AM08H)
643
#define pCAN_AM09L                      ((volatile unsigned short *)CAN_AM09L)
644
#define pCAN_AM09H                      ((volatile unsigned short *)CAN_AM09H)
645
#define pCAN_AM10L                      ((volatile unsigned short *)CAN_AM10L)
646
#define pCAN_AM10H                      ((volatile unsigned short *)CAN_AM10H)
647
#define pCAN_AM11L                      ((volatile unsigned short *)CAN_AM11L)
648
#define pCAN_AM11H                      ((volatile unsigned short *)CAN_AM11H)
649
#define pCAN_AM12L                      ((volatile unsigned short *)CAN_AM12L)
650
#define pCAN_AM12H                      ((volatile unsigned short *)CAN_AM12H)
651
#define pCAN_AM13L                      ((volatile unsigned short *)CAN_AM13L)
652
#define pCAN_AM13H                      ((volatile unsigned short *)CAN_AM13H)
653
#define pCAN_AM14L                      ((volatile unsigned short *)CAN_AM14L)
654
#define pCAN_AM14H                      ((volatile unsigned short *)CAN_AM14H)
655
#define pCAN_AM15L                      ((volatile unsigned short *)CAN_AM15L)
656
#define pCAN_AM15H                      ((volatile unsigned short *)CAN_AM15H)
657
 
658
#define pCAN_AM16L                      ((volatile unsigned short *)CAN_AM16L)
659
#define pCAN_AM16H                      ((volatile unsigned short *)CAN_AM16H)
660
#define pCAN_AM17L                      ((volatile unsigned short *)CAN_AM17L)
661
#define pCAN_AM17H                      ((volatile unsigned short *)CAN_AM17H)
662
#define pCAN_AM18L                      ((volatile unsigned short *)CAN_AM18L)
663
#define pCAN_AM18H                      ((volatile unsigned short *)CAN_AM18H)
664
#define pCAN_AM19L                      ((volatile unsigned short *)CAN_AM19L)
665
#define pCAN_AM19H                      ((volatile unsigned short *)CAN_AM19H)
666
#define pCAN_AM20L                      ((volatile unsigned short *)CAN_AM20L)
667
#define pCAN_AM20H                      ((volatile unsigned short *)CAN_AM20H)
668
#define pCAN_AM21L                      ((volatile unsigned short *)CAN_AM21L)
669
#define pCAN_AM21H                      ((volatile unsigned short *)CAN_AM21H)
670
#define pCAN_AM22L                      ((volatile unsigned short *)CAN_AM22L)
671
#define pCAN_AM22H                      ((volatile unsigned short *)CAN_AM22H)
672
#define pCAN_AM23L                      ((volatile unsigned short *)CAN_AM23L)
673
#define pCAN_AM23H                      ((volatile unsigned short *)CAN_AM23H)
674
#define pCAN_AM24L                      ((volatile unsigned short *)CAN_AM24L)
675
#define pCAN_AM24H                      ((volatile unsigned short *)CAN_AM24H)
676
#define pCAN_AM25L                      ((volatile unsigned short *)CAN_AM25L)
677
#define pCAN_AM25H                      ((volatile unsigned short *)CAN_AM25H)
678
#define pCAN_AM26L                      ((volatile unsigned short *)CAN_AM26L)
679
#define pCAN_AM26H                      ((volatile unsigned short *)CAN_AM26H)
680
#define pCAN_AM27L                      ((volatile unsigned short *)CAN_AM27L)
681
#define pCAN_AM27H                      ((volatile unsigned short *)CAN_AM27H)
682
#define pCAN_AM28L                      ((volatile unsigned short *)CAN_AM28L)
683
#define pCAN_AM28H                      ((volatile unsigned short *)CAN_AM28H)
684
#define pCAN_AM29L                      ((volatile unsigned short *)CAN_AM29L)
685
#define pCAN_AM29H                      ((volatile unsigned short *)CAN_AM29H)
686
#define pCAN_AM30L                      ((volatile unsigned short *)CAN_AM30L)
687
#define pCAN_AM30H                      ((volatile unsigned short *)CAN_AM30H)
688
#define pCAN_AM31L                      ((volatile unsigned short *)CAN_AM31L)
689
#define pCAN_AM31H                      ((volatile unsigned short *)CAN_AM31H)
690
 
691
/* CAN Acceptance Mask Area Macros      */
692
#define pCAN_AM_L(x)            ((volatile unsigned short *)CAN_AM_L(x))
693
#define pCAN_AM_H(x)            ((volatile unsigned short *)CAN_AM_H(x))
694
 
695
/* Mailbox Registers                                                                                                            */
696
#define pCAN_MB00_DATA0         ((volatile unsigned short *)CAN_MB00_DATA0)
697
#define pCAN_MB00_DATA1         ((volatile unsigned short *)CAN_MB00_DATA1)
698
#define pCAN_MB00_DATA2         ((volatile unsigned short *)CAN_MB00_DATA2)
699
#define pCAN_MB00_DATA3         ((volatile unsigned short *)CAN_MB00_DATA3)
700
#define pCAN_MB00_LENGTH        ((volatile unsigned short *)CAN_MB00_LENGTH)
701
#define pCAN_MB00_TIMESTAMP     ((volatile unsigned short *)CAN_MB00_TIMESTAMP)
702
#define pCAN_MB00_ID0           ((volatile unsigned short *)CAN_MB00_ID0)
703
#define pCAN_MB00_ID1           ((volatile unsigned short *)CAN_MB00_ID1)
704
 
705
#define pCAN_MB01_DATA0         ((volatile unsigned short *)CAN_MB01_DATA0)
706
#define pCAN_MB01_DATA1         ((volatile unsigned short *)CAN_MB01_DATA1)
707
#define pCAN_MB01_DATA2         ((volatile unsigned short *)CAN_MB01_DATA2)
708
#define pCAN_MB01_DATA3         ((volatile unsigned short *)CAN_MB01_DATA3)
709
#define pCAN_MB01_LENGTH        ((volatile unsigned short *)CAN_MB01_LENGTH)
710
#define pCAN_MB01_TIMESTAMP     ((volatile unsigned short *)CAN_MB01_TIMESTAMP)
711
#define pCAN_MB01_ID0           ((volatile unsigned short *)CAN_MB01_ID0)
712
#define pCAN_MB01_ID1           ((volatile unsigned short *)CAN_MB01_ID1)
713
 
714
#define pCAN_MB02_DATA0         ((volatile unsigned short *)CAN_MB02_DATA0)
715
#define pCAN_MB02_DATA1         ((volatile unsigned short *)CAN_MB02_DATA1)
716
#define pCAN_MB02_DATA2         ((volatile unsigned short *)CAN_MB02_DATA2)
717
#define pCAN_MB02_DATA3         ((volatile unsigned short *)CAN_MB02_DATA3)
718
#define pCAN_MB02_LENGTH        ((volatile unsigned short *)CAN_MB02_LENGTH)
719
#define pCAN_MB02_TIMESTAMP     ((volatile unsigned short *)CAN_MB02_TIMESTAMP)
720
#define pCAN_MB02_ID0           ((volatile unsigned short *)CAN_MB02_ID0)
721
#define pCAN_MB02_ID1           ((volatile unsigned short *)CAN_MB02_ID1)
722
 
723
#define pCAN_MB03_DATA0         ((volatile unsigned short *)CAN_MB03_DATA0)
724
#define pCAN_MB03_DATA1         ((volatile unsigned short *)CAN_MB03_DATA1)
725
#define pCAN_MB03_DATA2         ((volatile unsigned short *)CAN_MB03_DATA2)
726
#define pCAN_MB03_DATA3         ((volatile unsigned short *)CAN_MB03_DATA3)
727
#define pCAN_MB03_LENGTH        ((volatile unsigned short *)CAN_MB03_LENGTH)
728
#define pCAN_MB03_TIMESTAMP     ((volatile unsigned short *)CAN_MB03_TIMESTAMP)
729
#define pCAN_MB03_ID0           ((volatile unsigned short *)CAN_MB03_ID0)
730
#define pCAN_MB03_ID1           ((volatile unsigned short *)CAN_MB03_ID1)
731
 
732
#define pCAN_MB04_DATA0         ((volatile unsigned short *)CAN_MB04_DATA0)
733
#define pCAN_MB04_DATA1         ((volatile unsigned short *)CAN_MB04_DATA1)
734
#define pCAN_MB04_DATA2         ((volatile unsigned short *)CAN_MB04_DATA2)
735
#define pCAN_MB04_DATA3         ((volatile unsigned short *)CAN_MB04_DATA3)
736
#define pCAN_MB04_LENGTH        ((volatile unsigned short *)CAN_MB04_LENGTH)
737
#define pCAN_MB04_TIMESTAMP     ((volatile unsigned short *)CAN_MB04_TIMESTAMP)
738
#define pCAN_MB04_ID0           ((volatile unsigned short *)CAN_MB04_ID0)
739
#define pCAN_MB04_ID1           ((volatile unsigned short *)CAN_MB04_ID1)
740
 
741
#define pCAN_MB05_DATA0         ((volatile unsigned short *)CAN_MB05_DATA0)
742
#define pCAN_MB05_DATA1         ((volatile unsigned short *)CAN_MB05_DATA1)
743
#define pCAN_MB05_DATA2         ((volatile unsigned short *)CAN_MB05_DATA2)
744
#define pCAN_MB05_DATA3         ((volatile unsigned short *)CAN_MB05_DATA3)
745
#define pCAN_MB05_LENGTH        ((volatile unsigned short *)CAN_MB05_LENGTH)
746
#define pCAN_MB05_TIMESTAMP     ((volatile unsigned short *)CAN_MB05_TIMESTAMP)
747
#define pCAN_MB05_ID0           ((volatile unsigned short *)CAN_MB05_ID0)
748
#define pCAN_MB05_ID1           ((volatile unsigned short *)CAN_MB05_ID1)
749
 
750
#define pCAN_MB06_DATA0         ((volatile unsigned short *)CAN_MB06_DATA0)
751
#define pCAN_MB06_DATA1         ((volatile unsigned short *)CAN_MB06_DATA1)
752
#define pCAN_MB06_DATA2         ((volatile unsigned short *)CAN_MB06_DATA2)
753
#define pCAN_MB06_DATA3         ((volatile unsigned short *)CAN_MB06_DATA3)
754
#define pCAN_MB06_LENGTH        ((volatile unsigned short *)CAN_MB06_LENGTH)
755
#define pCAN_MB06_TIMESTAMP     ((volatile unsigned short *)CAN_MB06_TIMESTAMP)
756
#define pCAN_MB06_ID0           ((volatile unsigned short *)CAN_MB06_ID0)
757
#define pCAN_MB06_ID1           ((volatile unsigned short *)CAN_MB06_ID1)
758
 
759
#define pCAN_MB07_DATA0         ((volatile unsigned short *)CAN_MB07_DATA0)
760
#define pCAN_MB07_DATA1         ((volatile unsigned short *)CAN_MB07_DATA1)
761
#define pCAN_MB07_DATA2         ((volatile unsigned short *)CAN_MB07_DATA2)
762
#define pCAN_MB07_DATA3         ((volatile unsigned short *)CAN_MB07_DATA3)
763
#define pCAN_MB07_LENGTH        ((volatile unsigned short *)CAN_MB07_LENGTH)
764
#define pCAN_MB07_TIMESTAMP     ((volatile unsigned short *)CAN_MB07_TIMESTAMP)
765
#define pCAN_MB07_ID0           ((volatile unsigned short *)CAN_MB07_ID0)
766
#define pCAN_MB07_ID1           ((volatile unsigned short *)CAN_MB07_ID1)
767
 
768
#define pCAN_MB08_DATA0         ((volatile unsigned short *)CAN_MB08_DATA0)
769
#define pCAN_MB08_DATA1         ((volatile unsigned short *)CAN_MB08_DATA1)
770
#define pCAN_MB08_DATA2         ((volatile unsigned short *)CAN_MB08_DATA2)
771
#define pCAN_MB08_DATA3         ((volatile unsigned short *)CAN_MB08_DATA3)
772
#define pCAN_MB08_LENGTH        ((volatile unsigned short *)CAN_MB08_LENGTH)
773
#define pCAN_MB08_TIMESTAMP     ((volatile unsigned short *)CAN_MB08_TIMESTAMP)
774
#define pCAN_MB08_ID0           ((volatile unsigned short *)CAN_MB08_ID0)
775
#define pCAN_MB08_ID1           ((volatile unsigned short *)CAN_MB08_ID1)
776
 
777
#define pCAN_MB09_DATA0         ((volatile unsigned short *)CAN_MB09_DATA0)
778
#define pCAN_MB09_DATA1         ((volatile unsigned short *)CAN_MB09_DATA1)
779
#define pCAN_MB09_DATA2         ((volatile unsigned short *)CAN_MB09_DATA2)
780
#define pCAN_MB09_DATA3         ((volatile unsigned short *)CAN_MB09_DATA3)
781
#define pCAN_MB09_LENGTH        ((volatile unsigned short *)CAN_MB09_LENGTH)
782
#define pCAN_MB09_TIMESTAMP     ((volatile unsigned short *)CAN_MB09_TIMESTAMP)
783
#define pCAN_MB09_ID0           ((volatile unsigned short *)CAN_MB09_ID0)
784
#define pCAN_MB09_ID1           ((volatile unsigned short *)CAN_MB09_ID1)
785
 
786
#define pCAN_MB10_DATA0         ((volatile unsigned short *)CAN_MB10_DATA0)
787
#define pCAN_MB10_DATA1         ((volatile unsigned short *)CAN_MB10_DATA1)
788
#define pCAN_MB10_DATA2         ((volatile unsigned short *)CAN_MB10_DATA2)
789
#define pCAN_MB10_DATA3         ((volatile unsigned short *)CAN_MB10_DATA3)
790
#define pCAN_MB10_LENGTH        ((volatile unsigned short *)CAN_MB10_LENGTH)
791
#define pCAN_MB10_TIMESTAMP     ((volatile unsigned short *)CAN_MB10_TIMESTAMP)
792
#define pCAN_MB10_ID0           ((volatile unsigned short *)CAN_MB10_ID0)
793
#define pCAN_MB10_ID1           ((volatile unsigned short *)CAN_MB10_ID1)
794
 
795
#define pCAN_MB11_DATA0         ((volatile unsigned short *)CAN_MB11_DATA0)
796
#define pCAN_MB11_DATA1         ((volatile unsigned short *)CAN_MB11_DATA1)
797
#define pCAN_MB11_DATA2         ((volatile unsigned short *)CAN_MB11_DATA2)
798
#define pCAN_MB11_DATA3         ((volatile unsigned short *)CAN_MB11_DATA3)
799
#define pCAN_MB11_LENGTH        ((volatile unsigned short *)CAN_MB11_LENGTH)
800
#define pCAN_MB11_TIMESTAMP     ((volatile unsigned short *)CAN_MB11_TIMESTAMP)
801
#define pCAN_MB11_ID0           ((volatile unsigned short *)CAN_MB11_ID0)
802
#define pCAN_MB11_ID1           ((volatile unsigned short *)CAN_MB11_ID1)
803
 
804
#define pCAN_MB12_DATA0         ((volatile unsigned short *)CAN_MB12_DATA0)
805
#define pCAN_MB12_DATA1         ((volatile unsigned short *)CAN_MB12_DATA1)
806
#define pCAN_MB12_DATA2         ((volatile unsigned short *)CAN_MB12_DATA2)
807
#define pCAN_MB12_DATA3         ((volatile unsigned short *)CAN_MB12_DATA3)
808
#define pCAN_MB12_LENGTH        ((volatile unsigned short *)CAN_MB12_LENGTH)
809
#define pCAN_MB12_TIMESTAMP     ((volatile unsigned short *)CAN_MB12_TIMESTAMP)
810
#define pCAN_MB12_ID0           ((volatile unsigned short *)CAN_MB12_ID0)
811
#define pCAN_MB12_ID1           ((volatile unsigned short *)CAN_MB12_ID1)
812
 
813
#define pCAN_MB13_DATA0         ((volatile unsigned short *)CAN_MB13_DATA0)
814
#define pCAN_MB13_DATA1         ((volatile unsigned short *)CAN_MB13_DATA1)
815
#define pCAN_MB13_DATA2         ((volatile unsigned short *)CAN_MB13_DATA2)
816
#define pCAN_MB13_DATA3         ((volatile unsigned short *)CAN_MB13_DATA3)
817
#define pCAN_MB13_LENGTH        ((volatile unsigned short *)CAN_MB13_LENGTH)
818
#define pCAN_MB13_TIMESTAMP     ((volatile unsigned short *)CAN_MB13_TIMESTAMP)
819
#define pCAN_MB13_ID0           ((volatile unsigned short *)CAN_MB13_ID0)
820
#define pCAN_MB13_ID1           ((volatile unsigned short *)CAN_MB13_ID1)
821
 
822
#define pCAN_MB14_DATA0         ((volatile unsigned short *)CAN_MB14_DATA0)
823
#define pCAN_MB14_DATA1         ((volatile unsigned short *)CAN_MB14_DATA1)
824
#define pCAN_MB14_DATA2         ((volatile unsigned short *)CAN_MB14_DATA2)
825
#define pCAN_MB14_DATA3         ((volatile unsigned short *)CAN_MB14_DATA3)
826
#define pCAN_MB14_LENGTH        ((volatile unsigned short *)CAN_MB14_LENGTH)
827
#define pCAN_MB14_TIMESTAMP     ((volatile unsigned short *)CAN_MB14_TIMESTAMP)
828
#define pCAN_MB14_ID0           ((volatile unsigned short *)CAN_MB14_ID0)
829
#define pCAN_MB14_ID1           ((volatile unsigned short *)CAN_MB14_ID1)
830
 
831
#define pCAN_MB15_DATA0         ((volatile unsigned short *)CAN_MB15_DATA0)
832
#define pCAN_MB15_DATA1         ((volatile unsigned short *)CAN_MB15_DATA1)
833
#define pCAN_MB15_DATA2         ((volatile unsigned short *)CAN_MB15_DATA2)
834
#define pCAN_MB15_DATA3         ((volatile unsigned short *)CAN_MB15_DATA3)
835
#define pCAN_MB15_LENGTH        ((volatile unsigned short *)CAN_MB15_LENGTH)
836
#define pCAN_MB15_TIMESTAMP     ((volatile unsigned short *)CAN_MB15_TIMESTAMP)
837
#define pCAN_MB15_ID0           ((volatile unsigned short *)CAN_MB15_ID0)
838
#define pCAN_MB15_ID1           ((volatile unsigned short *)CAN_MB15_ID1)
839
 
840
#define pCAN_MB16_DATA0         ((volatile unsigned short *)CAN_MB16_DATA0)
841
#define pCAN_MB16_DATA1         ((volatile unsigned short *)CAN_MB16_DATA1)
842
#define pCAN_MB16_DATA2         ((volatile unsigned short *)CAN_MB16_DATA2)
843
#define pCAN_MB16_DATA3         ((volatile unsigned short *)CAN_MB16_DATA3)
844
#define pCAN_MB16_LENGTH        ((volatile unsigned short *)CAN_MB16_LENGTH)
845
#define pCAN_MB16_TIMESTAMP     ((volatile unsigned short *)CAN_MB16_TIMESTAMP)
846
#define pCAN_MB16_ID0           ((volatile unsigned short *)CAN_MB16_ID0)
847
#define pCAN_MB16_ID1           ((volatile unsigned short *)CAN_MB16_ID1)
848
 
849
#define pCAN_MB17_DATA0         ((volatile unsigned short *)CAN_MB17_DATA0)
850
#define pCAN_MB17_DATA1         ((volatile unsigned short *)CAN_MB17_DATA1)
851
#define pCAN_MB17_DATA2         ((volatile unsigned short *)CAN_MB17_DATA2)
852
#define pCAN_MB17_DATA3         ((volatile unsigned short *)CAN_MB17_DATA3)
853
#define pCAN_MB17_LENGTH        ((volatile unsigned short *)CAN_MB17_LENGTH)
854
#define pCAN_MB17_TIMESTAMP     ((volatile unsigned short *)CAN_MB17_TIMESTAMP)
855
#define pCAN_MB17_ID0           ((volatile unsigned short *)CAN_MB17_ID0)
856
#define pCAN_MB17_ID1           ((volatile unsigned short *)CAN_MB17_ID1)
857
 
858
#define pCAN_MB18_DATA0         ((volatile unsigned short *)CAN_MB18_DATA0)
859
#define pCAN_MB18_DATA1         ((volatile unsigned short *)CAN_MB18_DATA1)
860
#define pCAN_MB18_DATA2         ((volatile unsigned short *)CAN_MB18_DATA2)
861
#define pCAN_MB18_DATA3         ((volatile unsigned short *)CAN_MB18_DATA3)
862
#define pCAN_MB18_LENGTH        ((volatile unsigned short *)CAN_MB18_LENGTH)
863
#define pCAN_MB18_TIMESTAMP     ((volatile unsigned short *)CAN_MB18_TIMESTAMP)
864
#define pCAN_MB18_ID0           ((volatile unsigned short *)CAN_MB18_ID0)
865
#define pCAN_MB18_ID1           ((volatile unsigned short *)CAN_MB18_ID1)
866
 
867
#define pCAN_MB19_DATA0         ((volatile unsigned short *)CAN_MB19_DATA0)
868
#define pCAN_MB19_DATA1         ((volatile unsigned short *)CAN_MB19_DATA1)
869
#define pCAN_MB19_DATA2         ((volatile unsigned short *)CAN_MB19_DATA2)
870
#define pCAN_MB19_DATA3         ((volatile unsigned short *)CAN_MB19_DATA3)
871
#define pCAN_MB19_LENGTH        ((volatile unsigned short *)CAN_MB19_LENGTH)
872
#define pCAN_MB19_TIMESTAMP     ((volatile unsigned short *)CAN_MB19_TIMESTAMP)
873
#define pCAN_MB19_ID0           ((volatile unsigned short *)CAN_MB19_ID0)
874
#define pCAN_MB19_ID1           ((volatile unsigned short *)CAN_MB19_ID1)
875
 
876
#define pCAN_MB20_DATA0         ((volatile unsigned short *)CAN_MB20_DATA0)
877
#define pCAN_MB20_DATA1         ((volatile unsigned short *)CAN_MB20_DATA1)
878
#define pCAN_MB20_DATA2         ((volatile unsigned short *)CAN_MB20_DATA2)
879
#define pCAN_MB20_DATA3         ((volatile unsigned short *)CAN_MB20_DATA3)
880
#define pCAN_MB20_LENGTH        ((volatile unsigned short *)CAN_MB20_LENGTH)
881
#define pCAN_MB20_TIMESTAMP     ((volatile unsigned short *)CAN_MB20_TIMESTAMP)
882
#define pCAN_MB20_ID0           ((volatile unsigned short *)CAN_MB20_ID0)
883
#define pCAN_MB20_ID1           ((volatile unsigned short *)CAN_MB20_ID1)
884
 
885
#define pCAN_MB21_DATA0         ((volatile unsigned short *)CAN_MB21_DATA0)
886
#define pCAN_MB21_DATA1         ((volatile unsigned short *)CAN_MB21_DATA1)
887
#define pCAN_MB21_DATA2         ((volatile unsigned short *)CAN_MB21_DATA2)
888
#define pCAN_MB21_DATA3         ((volatile unsigned short *)CAN_MB21_DATA3)
889
#define pCAN_MB21_LENGTH        ((volatile unsigned short *)CAN_MB21_LENGTH)
890
#define pCAN_MB21_TIMESTAMP     ((volatile unsigned short *)CAN_MB21_TIMESTAMP)
891
#define pCAN_MB21_ID0           ((volatile unsigned short *)CAN_MB21_ID0)
892
#define pCAN_MB21_ID1           ((volatile unsigned short *)CAN_MB21_ID1)
893
 
894
#define pCAN_MB22_DATA0         ((volatile unsigned short *)CAN_MB22_DATA0)
895
#define pCAN_MB22_DATA1         ((volatile unsigned short *)CAN_MB22_DATA1)
896
#define pCAN_MB22_DATA2         ((volatile unsigned short *)CAN_MB22_DATA2)
897
#define pCAN_MB22_DATA3         ((volatile unsigned short *)CAN_MB22_DATA3)
898
#define pCAN_MB22_LENGTH        ((volatile unsigned short *)CAN_MB22_LENGTH)
899
#define pCAN_MB22_TIMESTAMP     ((volatile unsigned short *)CAN_MB22_TIMESTAMP)
900
#define pCAN_MB22_ID0           ((volatile unsigned short *)CAN_MB22_ID0)
901
#define pCAN_MB22_ID1           ((volatile unsigned short *)CAN_MB22_ID1)
902
 
903
#define pCAN_MB23_DATA0         ((volatile unsigned short *)CAN_MB23_DATA0)
904
#define pCAN_MB23_DATA1         ((volatile unsigned short *)CAN_MB23_DATA1)
905
#define pCAN_MB23_DATA2         ((volatile unsigned short *)CAN_MB23_DATA2)
906
#define pCAN_MB23_DATA3         ((volatile unsigned short *)CAN_MB23_DATA3)
907
#define pCAN_MB23_LENGTH        ((volatile unsigned short *)CAN_MB23_LENGTH)
908
#define pCAN_MB23_TIMESTAMP     ((volatile unsigned short *)CAN_MB23_TIMESTAMP)
909
#define pCAN_MB23_ID0           ((volatile unsigned short *)CAN_MB23_ID0)
910
#define pCAN_MB23_ID1           ((volatile unsigned short *)CAN_MB23_ID1)
911
 
912
#define pCAN_MB24_DATA0         ((volatile unsigned short *)CAN_MB24_DATA0)
913
#define pCAN_MB24_DATA1         ((volatile unsigned short *)CAN_MB24_DATA1)
914
#define pCAN_MB24_DATA2         ((volatile unsigned short *)CAN_MB24_DATA2)
915
#define pCAN_MB24_DATA3         ((volatile unsigned short *)CAN_MB24_DATA3)
916
#define pCAN_MB24_LENGTH        ((volatile unsigned short *)CAN_MB24_LENGTH)
917
#define pCAN_MB24_TIMESTAMP     ((volatile unsigned short *)CAN_MB24_TIMESTAMP)
918
#define pCAN_MB24_ID0           ((volatile unsigned short *)CAN_MB24_ID0)
919
#define pCAN_MB24_ID1           ((volatile unsigned short *)CAN_MB24_ID1)
920
 
921
#define pCAN_MB25_DATA0         ((volatile unsigned short *)CAN_MB25_DATA0)
922
#define pCAN_MB25_DATA1         ((volatile unsigned short *)CAN_MB25_DATA1)
923
#define pCAN_MB25_DATA2         ((volatile unsigned short *)CAN_MB25_DATA2)
924
#define pCAN_MB25_DATA3         ((volatile unsigned short *)CAN_MB25_DATA3)
925
#define pCAN_MB25_LENGTH        ((volatile unsigned short *)CAN_MB25_LENGTH)
926
#define pCAN_MB25_TIMESTAMP     ((volatile unsigned short *)CAN_MB25_TIMESTAMP)
927
#define pCAN_MB25_ID0           ((volatile unsigned short *)CAN_MB25_ID0)
928
#define pCAN_MB25_ID1           ((volatile unsigned short *)CAN_MB25_ID1)
929
 
930
#define pCAN_MB26_DATA0         ((volatile unsigned short *)CAN_MB26_DATA0)
931
#define pCAN_MB26_DATA1         ((volatile unsigned short *)CAN_MB26_DATA1)
932
#define pCAN_MB26_DATA2         ((volatile unsigned short *)CAN_MB26_DATA2)
933
#define pCAN_MB26_DATA3         ((volatile unsigned short *)CAN_MB26_DATA3)
934
#define pCAN_MB26_LENGTH        ((volatile unsigned short *)CAN_MB26_LENGTH)
935
#define pCAN_MB26_TIMESTAMP     ((volatile unsigned short *)CAN_MB26_TIMESTAMP)
936
#define pCAN_MB26_ID0           ((volatile unsigned short *)CAN_MB26_ID0)
937
#define pCAN_MB26_ID1           ((volatile unsigned short *)CAN_MB26_ID1)
938
 
939
#define pCAN_MB27_DATA0         ((volatile unsigned short *)CAN_MB27_DATA0)
940
#define pCAN_MB27_DATA1         ((volatile unsigned short *)CAN_MB27_DATA1)
941
#define pCAN_MB27_DATA2         ((volatile unsigned short *)CAN_MB27_DATA2)
942
#define pCAN_MB27_DATA3         ((volatile unsigned short *)CAN_MB27_DATA3)
943
#define pCAN_MB27_LENGTH        ((volatile unsigned short *)CAN_MB27_LENGTH)
944
#define pCAN_MB27_TIMESTAMP     ((volatile unsigned short *)CAN_MB27_TIMESTAMP)
945
#define pCAN_MB27_ID0           ((volatile unsigned short *)CAN_MB27_ID0)
946
#define pCAN_MB27_ID1           ((volatile unsigned short *)CAN_MB27_ID1)
947
 
948
#define pCAN_MB28_DATA0         ((volatile unsigned short *)CAN_MB28_DATA0)
949
#define pCAN_MB28_DATA1         ((volatile unsigned short *)CAN_MB28_DATA1)
950
#define pCAN_MB28_DATA2         ((volatile unsigned short *)CAN_MB28_DATA2)
951
#define pCAN_MB28_DATA3         ((volatile unsigned short *)CAN_MB28_DATA3)
952
#define pCAN_MB28_LENGTH        ((volatile unsigned short *)CAN_MB28_LENGTH)
953
#define pCAN_MB28_TIMESTAMP     ((volatile unsigned short *)CAN_MB28_TIMESTAMP)
954
#define pCAN_MB28_ID0           ((volatile unsigned short *)CAN_MB28_ID0)
955
#define pCAN_MB28_ID1           ((volatile unsigned short *)CAN_MB28_ID1)
956
 
957
#define pCAN_MB29_DATA0         ((volatile unsigned short *)CAN_MB29_DATA0)
958
#define pCAN_MB29_DATA1         ((volatile unsigned short *)CAN_MB29_DATA1)
959
#define pCAN_MB29_DATA2         ((volatile unsigned short *)CAN_MB29_DATA2)
960
#define pCAN_MB29_DATA3         ((volatile unsigned short *)CAN_MB29_DATA3)
961
#define pCAN_MB29_LENGTH        ((volatile unsigned short *)CAN_MB29_LENGTH)
962
#define pCAN_MB29_TIMESTAMP     ((volatile unsigned short *)CAN_MB29_TIMESTAMP)
963
#define pCAN_MB29_ID0           ((volatile unsigned short *)CAN_MB29_ID0)
964
#define pCAN_MB29_ID1           ((volatile unsigned short *)CAN_MB29_ID1)
965
 
966
#define pCAN_MB30_DATA0         ((volatile unsigned short *)CAN_MB30_DATA0)
967
#define pCAN_MB30_DATA1         ((volatile unsigned short *)CAN_MB30_DATA1)
968
#define pCAN_MB30_DATA2         ((volatile unsigned short *)CAN_MB30_DATA2)
969
#define pCAN_MB30_DATA3         ((volatile unsigned short *)CAN_MB30_DATA3)
970
#define pCAN_MB30_LENGTH        ((volatile unsigned short *)CAN_MB30_LENGTH)
971
#define pCAN_MB30_TIMESTAMP     ((volatile unsigned short *)CAN_MB30_TIMESTAMP)
972
#define pCAN_MB30_ID0           ((volatile unsigned short *)CAN_MB30_ID0)
973
#define pCAN_MB30_ID1           ((volatile unsigned short *)CAN_MB30_ID1)
974
 
975
#define pCAN_MB31_DATA0         ((volatile unsigned short *)CAN_MB31_DATA0)
976
#define pCAN_MB31_DATA1         ((volatile unsigned short *)CAN_MB31_DATA1)
977
#define pCAN_MB31_DATA2         ((volatile unsigned short *)CAN_MB31_DATA2)
978
#define pCAN_MB31_DATA3         ((volatile unsigned short *)CAN_MB31_DATA3)
979
#define pCAN_MB31_LENGTH        ((volatile unsigned short *)CAN_MB31_LENGTH)
980
#define pCAN_MB31_TIMESTAMP     ((volatile unsigned short *)CAN_MB31_TIMESTAMP)
981
#define pCAN_MB31_ID0           ((volatile unsigned short *)CAN_MB31_ID0)
982
#define pCAN_MB31_ID1           ((volatile unsigned short *)CAN_MB31_ID1)
983
 
984
 
985
/* CAN Mailbox Area Macros              */
986
#define pCAN_MB_ID1(x)                  ((volatile unsigned short *)CAN_MB_ID1(x))
987
#define pCAN_MB_ID0(x)                  ((volatile unsigned short *)CAN_MB_ID0(x))
988
#define pCAN_MB_TIMESTAMP(x)    ((volatile unsigned short *)CAN_MB_TIMESTAMP(x))
989
#define pCAN_MB_LENGTH(x)               ((volatile unsigned short *)CAN_MB_LENGTH(x))
990
#define pCAN_MB_DATA3(x)                ((volatile unsigned short *)CAN_MB_DATA3(x))
991
#define pCAN_MB_DATA2(x)                ((volatile unsigned short *)CAN_MB_DATA2(x))
992
#define pCAN_MB_DATA1(x)                ((volatile unsigned short *)CAN_MB_DATA1(x))
993
#define pCAN_MB_DATA0(x)                ((volatile unsigned short *)CAN_MB_DATA0(x))
994
 
995
 
996
/* Alternate Deprecated Macros Provided For Backwards Code Compatibility */
997
#define pCAN_CNF                pCAN_DEBUG
998
#define pTWI0_PRESCALE          pTWI0_CONTROL
999
#define pTWI0_INT_SRC           pTWI0_INT_STAT
1000
#define pTWI0_INT_ENABLE        pTWI0_INT_MASK
1001
#define pTWI1_PRESCALE          pTWI1_CONTROL
1002
#define pTWI1_INT_SRC           pTWI1_INT_STAT
1003
#define pTWI1_INT_ENABLE        pTWI1_INT_MASK
1004
 
1005
#endif /* _CDEF_BF538_H */
1006
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.