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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [newlib-1.17.0/] [libgloss/] [bfin/] [include/] [cdefBF539.h] - Blame information for rev 148

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
** Copyright (C) 2008 Analog Devices, Inc.
15
**
16
************************************************************************************
17
**
18
** This include file contains a list of macro "defines" to enable the programmer
19
** to use symbolic names for BF539 peripherals.
20
**
21
************************************************************************************
22
** System MMR Register Map
23
************************************************************************************/
24
 
25
#ifndef _CDEF_BF539_H
26
#define _CDEF_BF539_H
27
 
28
/* include all Core registers and bit definitions */
29
#include <defBF539.h>
30
 
31
/* include core specific register pointer definitions */
32
#include <cdef_LPBlackfin.h>
33
 
34
/* include built-in mneumonic macros */
35
#include <ccblkfn.h>
36
 
37
#ifndef _PTR_TO_VOL_VOID_PTR
38
#ifndef _USE_LEGACY_CDEF_BEHAVIOUR
39
#define _PTR_TO_VOL_VOID_PTR (void * volatile *)
40
#else
41
#define _PTR_TO_VOL_VOID_PTR (volatile void **)
42
#endif
43
#endif
44
 
45
/* Clock/Regulator Control */
46
#define pPLL_CTL                ((volatile unsigned short *)PLL_CTL)
47
#define pPLL_DIV                ((volatile unsigned short *)PLL_DIV)
48
#define pVR_CTL                 ((volatile unsigned short *)VR_CTL)
49
#define pPLL_STAT               ((volatile unsigned short *)PLL_STAT)
50
#define pPLL_LOCKCNT    ((volatile unsigned short *)PLL_LOCKCNT)
51
#define pCHIPID                 ((volatile unsigned long *)CHIPID)
52
 
53
 
54
/* System Interrupt Controllers */
55
#define pSWRST                  ((volatile unsigned short *)SWRST)
56
#define pSYSCR                  ((volatile unsigned short *)SYSCR)
57
#define pSIC_RVECT              ((void * volatile *)SIC_RVECT)
58
 
59
#define pSIC_IMASK0             ((volatile unsigned long *)SIC_IMASK0)
60
#define pSIC_IMASK1                             ((volatile unsigned long  *)SIC_IMASK1)
61
 
62
#define pSIC_ISR0               ((volatile unsigned long *)SIC_ISR0)
63
#define pSIC_ISR1                               ((volatile unsigned long  *)SIC_ISR1)
64
 
65
#define pSIC_IWR0               ((volatile unsigned long *)SIC_IWR0)
66
#define pSIC_IWR1                               ((volatile unsigned long  *)SIC_IWR1)
67
 
68
#define pSIC_IAR0               ((volatile unsigned long *)SIC_IAR0)
69
#define pSIC_IAR1               ((volatile unsigned long *)SIC_IAR1)
70
#define pSIC_IAR2               ((volatile unsigned long *)SIC_IAR2)
71
#define pSIC_IAR3                               ((volatile unsigned long  *)SIC_IAR3)
72
#define pSIC_IAR4                               ((volatile unsigned long  *)SIC_IAR4)
73
#define pSIC_IAR5                               ((volatile unsigned long  *)SIC_IAR5)
74
#define pSIC_IAR6                               ((volatile unsigned long  *)SIC_IAR6)
75
 
76
 
77
/* Watchdog Timer */
78
#define pWDOG_CTL               ((volatile unsigned short *)WDOG_CTL)
79
#define pWDOG_CNT               ((volatile unsigned long *)WDOG_CNT)
80
#define pWDOG_STAT              ((volatile unsigned long *)WDOG_STAT)
81
 
82
 
83
/* Real Time Clock */
84
#define pRTC_STAT               ((volatile unsigned long *)RTC_STAT)
85
#define pRTC_ICTL               ((volatile unsigned short *)RTC_ICTL)
86
#define pRTC_ISTAT              ((volatile unsigned short *)RTC_ISTAT)
87
#define pRTC_SWCNT              ((volatile unsigned short *)RTC_SWCNT)
88
#define pRTC_ALARM              ((volatile unsigned long *)RTC_ALARM)
89
#define pRTC_FAST               ((volatile unsigned short *)RTC_FAST)
90
#define pRTC_PREN               ((volatile unsigned short *)RTC_PREN)
91
 
92
 
93
/* UART0 Controller */
94
#define pUART0_THR              ((volatile unsigned short *)UART0_THR)
95
#define pUART0_RBR              ((volatile unsigned short *)UART0_RBR)
96
#define pUART0_DLL              ((volatile unsigned short *)UART0_DLL)
97
#define pUART0_IER              ((volatile unsigned short *)UART0_IER)
98
#define pUART0_DLH              ((volatile unsigned short *)UART0_DLH)
99
#define pUART0_IIR              ((volatile unsigned short *)UART0_IIR)
100
#define pUART0_LCR              ((volatile unsigned short *)UART0_LCR)
101
#define pUART0_MCR              ((volatile unsigned short *)UART0_MCR)
102
#define pUART0_LSR              ((volatile unsigned short *)UART0_LSR)
103
/* #define UART0_MSR */
104
#define pUART0_SCR              ((volatile unsigned short *)UART0_SCR)
105
#define pUART0_GCTL             ((volatile unsigned short *)UART0_GCTL)
106
 
107
 
108
/* UART1 Controller                                                     */
109
#define pUART1_THR                      ((volatile unsigned short *)UART1_THR)
110
#define pUART1_RBR                      ((volatile unsigned short *)UART1_RBR)
111
#define pUART1_DLL                      ((volatile unsigned short *)UART1_DLL)
112
#define pUART1_IER                      ((volatile unsigned short *)UART1_IER)
113
#define pUART1_DLH                      ((volatile unsigned short *)UART1_DLH)
114
#define pUART1_IIR                      ((volatile unsigned short *)UART1_IIR)
115
#define pUART1_LCR                      ((volatile unsigned short *)UART1_LCR)
116
#define pUART1_MCR                      ((volatile unsigned short *)UART1_MCR)
117
#define pUART1_LSR                      ((volatile unsigned short *)UART1_LSR)
118
#define pUART1_SCR                      ((volatile unsigned short *)UART1_SCR)
119
#define pUART1_GCTL             ((volatile unsigned short *)UART1_GCTL)
120
 
121
 
122
/* UART2 Controller                                             */
123
#define pUART2_THR                      ((volatile unsigned short *)UART2_THR)
124
#define pUART2_RBR                      ((volatile unsigned short *)UART2_RBR)
125
#define pUART2_DLL                      ((volatile unsigned short *)UART2_DLL)
126
#define pUART2_IER                      ((volatile unsigned short *)UART2_IER)
127
#define pUART2_DLH                      ((volatile unsigned short *)UART2_DLH)
128
#define pUART2_IIR                      ((volatile unsigned short *)UART2_IIR)
129
#define pUART2_LCR                      ((volatile unsigned short *)UART2_LCR)
130
#define pUART2_MCR                      ((volatile unsigned short *)UART2_MCR)
131
#define pUART2_LSR                      ((volatile unsigned short *)UART2_LSR)
132
#define pUART2_SCR                      ((volatile unsigned short *)UART2_SCR)
133
#define pUART2_GCTL             ((volatile unsigned short *)UART2_GCTL)
134
 
135
 
136
/* SPI0 Controller */
137
#define pSPI0_CTL               ((volatile unsigned short *)SPI0_CTL)
138
#define pSPI0_FLG               ((volatile unsigned short *)SPI0_FLG)
139
#define pSPI0_STAT              ((volatile unsigned short *)SPI0_STAT)
140
#define pSPI0_TDBR              ((volatile unsigned short *)SPI0_TDBR)
141
#define pSPI0_RDBR              ((volatile unsigned short *)SPI0_RDBR)
142
#define pSPI0_BAUD              ((volatile unsigned short *)SPI0_BAUD)
143
#define pSPI0_SHADOW    ((volatile unsigned short *)SPI0_SHADOW)
144
 
145
 
146
/* SPI1 Controller                                      */
147
#define pSPI1_CTL                       ((volatile unsigned short *)SPI1_CTL)
148
#define pSPI1_FLG                       ((volatile unsigned short *)SPI1_FLG)
149
#define pSPI1_STAT                      ((volatile unsigned short *)SPI1_STAT)
150
#define pSPI1_TDBR                      ((volatile unsigned short *)SPI1_TDBR)
151
#define pSPI1_RDBR                      ((volatile unsigned short *)SPI1_RDBR)
152
#define pSPI1_BAUD                      ((volatile unsigned short *)SPI1_BAUD)
153
#define pSPI1_SHADOW            ((volatile unsigned short *)SPI1_SHADOW)
154
 
155
 
156
/* SPI2 Controller                                                              */
157
#define pSPI2_CTL                       ((volatile unsigned short *)SPI2_CTL)
158
#define pSPI2_FLG                       ((volatile unsigned short *)SPI2_FLG)
159
#define pSPI2_STAT                      ((volatile unsigned short *)SPI2_STAT)
160
#define pSPI2_TDBR                      ((volatile unsigned short *)SPI2_TDBR)
161
#define pSPI2_RDBR                      ((volatile unsigned short *)SPI2_RDBR)
162
#define pSPI2_BAUD                      ((volatile unsigned short *)SPI2_BAUD)
163
#define pSPI2_SHADOW            ((volatile unsigned short *)SPI2_SHADOW)
164
 
165
 
166
/* TIMER 0, 1, 2 Registers */
167
#define pTIMER0_CONFIG  ((volatile unsigned short *)TIMER0_CONFIG)
168
#define pTIMER0_COUNTER ((volatile unsigned long *)TIMER0_COUNTER)
169
#define pTIMER0_PERIOD  ((volatile unsigned long *)TIMER0_PERIOD)
170
#define pTIMER0_WIDTH   ((volatile unsigned long *)TIMER0_WIDTH)
171
 
172
#define pTIMER1_CONFIG  ((volatile unsigned short *)TIMER1_CONFIG)
173
#define pTIMER1_COUNTER ((volatile unsigned long *)TIMER1_COUNTER)
174
#define pTIMER1_PERIOD  ((volatile unsigned long *)TIMER1_PERIOD)
175
#define pTIMER1_WIDTH   ((volatile unsigned long *)TIMER1_WIDTH)
176
 
177
#define pTIMER2_CONFIG  ((volatile unsigned short *)TIMER2_CONFIG)
178
#define pTIMER2_COUNTER ((volatile unsigned long *)TIMER2_COUNTER)
179
#define pTIMER2_PERIOD  ((volatile unsigned long *)TIMER2_PERIOD)
180
#define pTIMER2_WIDTH   ((volatile unsigned long *)TIMER2_WIDTH)
181
 
182
#define pTIMER_ENABLE   ((volatile unsigned short *)TIMER_ENABLE)
183
#define pTIMER_DISABLE  ((volatile unsigned short *)TIMER_DISABLE)
184
#define pTIMER_STATUS   ((volatile unsigned short *)TIMER_STATUS)
185
 
186
 
187
/* Two-Wire Interface 0                                         */
188
#define pTWI0_CLKDIV            ((volatile unsigned short *)TWI0_CLKDIV)
189
#define pTWI0_CONTROL           ((volatile unsigned short *)TWI0_CONTROL)
190
#define pTWI0_SLAVE_CTRL        ((volatile unsigned short *)TWI0_SLAVE_CTRL)
191
#define pTWI0_SLAVE_STAT        ((volatile unsigned short *)TWI0_SLAVE_STAT)
192
#define pTWI0_SLAVE_ADDR        ((volatile unsigned short *)TWI0_SLAVE_ADDR)
193
#define pTWI0_MASTER_CTRL       ((volatile unsigned short *)TWI0_MASTER_CTRL)
194
#define pTWI0_MASTER_STAT       ((volatile unsigned short *)TWI0_MASTER_STAT)
195
#define pTWI0_MASTER_ADDR       ((volatile unsigned short *)TWI0_MASTER_ADDR)
196
#define pTWI0_INT_STAT          ((volatile unsigned short *)TWI0_INT_STAT)
197
#define pTWI0_INT_MASK          ((volatile unsigned short *)TWI0_INT_MASK)
198
#define pTWI0_FIFO_CTRL         ((volatile unsigned short *)TWI0_FIFO_CTRL)
199
#define pTWI0_FIFO_STAT         ((volatile unsigned short *)TWI0_FIFO_STAT)
200
#define pTWI0_XMT_DATA8         ((volatile unsigned short *)TWI0_XMT_DATA8)
201
#define pTWI0_XMT_DATA16        ((volatile unsigned short *)TWI0_XMT_DATA16)
202
#define pTWI0_RCV_DATA8         ((volatile unsigned short *)TWI0_RCV_DATA8)
203
#define pTWI0_RCV_DATA16        ((volatile unsigned short *)TWI0_RCV_DATA16)
204
 
205
 
206
/* Two-Wire Interface 1                                         */
207
#define pTWI1_CLKDIV            ((volatile unsigned short *)TWI1_CLKDIV)
208
#define pTWI1_CONTROL           ((volatile unsigned short *)TWI1_CONTROL)
209
#define pTWI1_SLAVE_CTRL        ((volatile unsigned short *)TWI1_SLAVE_CTRL)
210
#define pTWI1_SLAVE_STAT        ((volatile unsigned short *)TWI1_SLAVE_STAT)
211
#define pTWI1_SLAVE_ADDR        ((volatile unsigned short *)TWI1_SLAVE_ADDR)
212
#define pTWI1_MASTER_CTRL       ((volatile unsigned short *)TWI1_MASTER_CTRL)
213
#define pTWI1_MASTER_STAT       ((volatile unsigned short *)TWI1_MASTER_STAT)
214
#define pTWI1_MASTER_ADDR       ((volatile unsigned short *)TWI1_MASTER_ADDR)
215
#define pTWI1_INT_STAT          ((volatile unsigned short *)TWI1_INT_STAT)
216
#define pTWI1_INT_MASK          ((volatile unsigned short *)TWI1_INT_MASK)
217
#define pTWI1_FIFO_CTRL         ((volatile unsigned short *)TWI1_FIFO_CTRL)
218
#define pTWI1_FIFO_STAT         ((volatile unsigned short *)TWI1_FIFO_STAT)
219
#define pTWI1_XMT_DATA8         ((volatile unsigned short *)TWI1_XMT_DATA8)
220
#define pTWI1_XMT_DATA16        ((volatile unsigned short *)TWI1_XMT_DATA16)
221
#define pTWI1_RCV_DATA8         ((volatile unsigned short *)TWI1_RCV_DATA8)
222
#define pTWI1_RCV_DATA16        ((volatile unsigned short *)TWI1_RCV_DATA16)
223
 
224
 
225
/* General Purpose I/O */
226
/* Flag I/O (FIO_) */
227
#define pFIO_FLAG_D     ((volatile unsigned short *)FIO_FLAG_D)
228
#define pFIO_FLAG_C     ((volatile unsigned short *)FIO_FLAG_C)
229
#define pFIO_FLAG_S     ((volatile unsigned short *)FIO_FLAG_S)
230
#define pFIO_FLAG_T     ((volatile unsigned short *)FIO_FLAG_T)
231
#define pFIO_MASKA_D    ((volatile unsigned short *)FIO_MASKA_D)
232
#define pFIO_MASKA_C    ((volatile unsigned short *)FIO_MASKA_C)
233
#define pFIO_MASKA_S    ((volatile unsigned short *)FIO_MASKA_S)
234
#define pFIO_MASKA_T    ((volatile unsigned short *)FIO_MASKA_T)
235
#define pFIO_MASKB_D    ((volatile unsigned short *)FIO_MASKB_D)
236
#define pFIO_MASKB_C    ((volatile unsigned short *)FIO_MASKB_C)
237
#define pFIO_MASKB_S    ((volatile unsigned short *)FIO_MASKB_S)
238
#define pFIO_MASKB_T    ((volatile unsigned short *)FIO_MASKB_T)
239
#define pFIO_DIR                ((volatile unsigned short *)FIO_DIR)
240
#define pFIO_POLAR              ((volatile unsigned short *)FIO_POLAR)
241
#define pFIO_EDGE               ((volatile unsigned short *)FIO_EDGE)
242
#define pFIO_BOTH               ((volatile unsigned short *)FIO_BOTH)
243
#define pFIO_INEN               ((volatile unsigned short *)FIO_INEN)
244
 
245
/* GPIO Registers  (Port C/D/E)                                         */
246
#define pGPIO_C_CNFG                    ((volatile unsigned short *)GPIO_C_CNFG)
247
#define pGPIO_D_CNFG                    ((volatile unsigned short *)GPIO_D_CNFG)
248
#define pGPIO_E_CNFG                    ((volatile unsigned short *)GPIO_E_CNFG)
249
 
250
#define pGPIO_C_D                               ((volatile unsigned short *)GPIO_C_D)
251
#define pGPIO_D_D                               ((volatile unsigned short *)GPIO_D_D)
252
#define pGPIO_E_D                               ((volatile unsigned short *)GPIO_E_D)
253
 
254
#define pGPIO_C_C                               ((volatile unsigned short *)GPIO_C_C)
255
#define pGPIO_D_C                               ((volatile unsigned short *)GPIO_D_C)
256
#define pGPIO_E_C                               ((volatile unsigned short *)GPIO_E_C)
257
 
258
#define pGPIO_C_S                               ((volatile unsigned short *)GPIO_C_S)
259
#define pGPIO_D_S                               ((volatile unsigned short *)GPIO_D_S)
260
#define pGPIO_E_S                               ((volatile unsigned short *)GPIO_E_S)
261
 
262
#define pGPIO_C_T                               ((volatile unsigned short *)GPIO_C_T)
263
#define pGPIO_D_T                               ((volatile unsigned short *)GPIO_D_T)
264
#define pGPIO_E_T                               ((volatile unsigned short *)GPIO_E_T)
265
 
266
#define pGPIO_C_DIR                             ((volatile unsigned short *)GPIO_C_DIR)
267
#define pGPIO_D_DIR                             ((volatile unsigned short *)GPIO_D_DIR)
268
#define pGPIO_E_DIR                             ((volatile unsigned short *)GPIO_E_DIR)
269
 
270
#define pGPIO_C_INEN                    ((volatile unsigned short *)GPIO_C_INEN)
271
#define pGPIO_D_INEN                    ((volatile unsigned short *)GPIO_D_INEN)
272
#define pGPIO_E_INEN                    ((volatile unsigned short *)GPIO_E_INEN)
273
 
274
/* Deprecate old macros */
275
#define pGPIO_C_DAT pGPIO_C_D
276
#define pGPIO_D_DAT pGPIO_D_D
277
#define pGPIO_E_DAT pGPIO_E_D
278
 
279
#define pGPIO_C_CLR pGPIO_C_C
280
#define pGPIO_D_CLR pGPIO_D_C
281
#define pGPIO_E_CLR pGPIO_E_C
282
 
283
#define pGPIO_C_SET pGPIO_C_S
284
#define pGPIO_D_SET pGPIO_D_S
285
#define pGPIO_E_SET pGPIO_E_S
286
 
287
#define pGPIO_C_TGL pGPIO_C_T
288
#define pGPIO_D_TGL pGPIO_D_T
289
#define pGPIO_E_TGL pGPIO_E_T
290
 
291
/* SPORT0 Controller */
292
#define pSPORT0_TCR1    ((volatile unsigned short *)SPORT0_TCR1)
293
#define pSPORT0_TCR2    ((volatile unsigned short *)SPORT0_TCR2)
294
#define pSPORT0_TCLKDIV ((volatile unsigned short *)SPORT0_TCLKDIV)
295
#define pSPORT0_TFSDIV  ((volatile unsigned short *)SPORT0_TFSDIV)
296
#define pSPORT0_TX              ((volatile long *)SPORT0_TX)
297
#define pSPORT0_RX              ((volatile long *)SPORT0_RX)
298
#define pSPORT0_TX32    ((volatile long *)SPORT0_TX)
299
#define pSPORT0_RX32    ((volatile long *)SPORT0_RX)
300
#define pSPORT0_TX16    ((volatile unsigned short *)SPORT0_TX)
301
#define pSPORT0_RX16    ((volatile unsigned short *)SPORT0_RX)
302
#define pSPORT0_RCR1    ((volatile unsigned short *)SPORT0_RCR1)
303
#define pSPORT0_RCR2    ((volatile unsigned short *)SPORT0_RCR2)
304
#define pSPORT0_RCLKDIV ((volatile unsigned short *)SPORT0_RCLKDIV)
305
#define pSPORT0_RFSDIV  ((volatile unsigned short *)SPORT0_RFSDIV)
306
#define pSPORT0_STAT    ((volatile unsigned short *)SPORT0_STAT)
307
#define pSPORT0_CHNL    ((volatile unsigned short *)SPORT0_CHNL)
308
#define pSPORT0_MCMC1   ((volatile unsigned short *)SPORT0_MCMC1)
309
#define pSPORT0_MCMC2   ((volatile unsigned short *)SPORT0_MCMC2)
310
#define pSPORT0_MTCS0   ((volatile unsigned long *)SPORT0_MTCS0)
311
#define pSPORT0_MTCS1   ((volatile unsigned long *)SPORT0_MTCS1)
312
#define pSPORT0_MTCS2   ((volatile unsigned long *)SPORT0_MTCS2)
313
#define pSPORT0_MTCS3   ((volatile unsigned long *)SPORT0_MTCS3)
314
#define pSPORT0_MRCS0   ((volatile unsigned long *)SPORT0_MRCS0)
315
#define pSPORT0_MRCS1   ((volatile unsigned long *)SPORT0_MRCS1)
316
#define pSPORT0_MRCS2   ((volatile unsigned long *)SPORT0_MRCS2)
317
#define pSPORT0_MRCS3   ((volatile unsigned long *)SPORT0_MRCS3)
318
 
319
 
320
/* SPORT1 Controller */
321
#define pSPORT1_TCR1    ((volatile unsigned short *)SPORT1_TCR1)
322
#define pSPORT1_TCR2    ((volatile unsigned short *)SPORT1_TCR2)
323
#define pSPORT1_TCLKDIV ((volatile unsigned short *)SPORT1_TCLKDIV)
324
#define pSPORT1_TFSDIV  ((volatile unsigned short *)SPORT1_TFSDIV)
325
#define pSPORT1_TX              ((volatile long *)SPORT1_TX)
326
#define pSPORT1_RX              ((volatile long *)SPORT1_RX)
327
#define pSPORT1_TX32    ((volatile long *)SPORT1_TX)
328
#define pSPORT1_RX32    ((volatile long *)SPORT1_RX)
329
#define pSPORT1_TX16    ((volatile unsigned short *)SPORT1_TX)
330
#define pSPORT1_RX16    ((volatile unsigned short *)SPORT1_RX)
331
#define pSPORT1_RCR1    ((volatile unsigned short *)SPORT1_RCR1)
332
#define pSPORT1_RCR2    ((volatile unsigned short *)SPORT1_RCR2)
333
#define pSPORT1_RCLKDIV ((volatile unsigned short *)SPORT1_RCLKDIV)
334
#define pSPORT1_RFSDIV  ((volatile unsigned short *)SPORT1_RFSDIV)
335
#define pSPORT1_STAT    ((volatile unsigned short *)SPORT1_STAT)
336
#define pSPORT1_CHNL    ((volatile unsigned short *)SPORT1_CHNL)
337
#define pSPORT1_MCMC1   ((volatile unsigned short *)SPORT1_MCMC1)
338
#define pSPORT1_MCMC2   ((volatile unsigned short *)SPORT1_MCMC2)
339
#define pSPORT1_MTCS0   ((volatile unsigned long *)SPORT1_MTCS0)
340
#define pSPORT1_MTCS1   ((volatile unsigned long *)SPORT1_MTCS1)
341
#define pSPORT1_MTCS2   ((volatile unsigned long *)SPORT1_MTCS2)
342
#define pSPORT1_MTCS3   ((volatile unsigned long *)SPORT1_MTCS3)
343
#define pSPORT1_MRCS0   ((volatile unsigned long *)SPORT1_MRCS0)
344
#define pSPORT1_MRCS1   ((volatile unsigned long *)SPORT1_MRCS1)
345
#define pSPORT1_MRCS2   ((volatile unsigned long *)SPORT1_MRCS2)
346
#define pSPORT1_MRCS3   ((volatile unsigned long *)SPORT1_MRCS3)
347
 
348
 
349
/* SPORT2 Controller                                    */
350
#define pSPORT2_TCR1            ((volatile unsigned short *)SPORT2_TCR1)
351
#define pSPORT2_TCR2            ((volatile unsigned short *)SPORT2_TCR2)
352
#define pSPORT2_TCLKDIV         ((volatile unsigned short *)SPORT2_TCLKDIV)
353
#define pSPORT2_TFSDIV          ((volatile unsigned short *)SPORT2_TFSDIV)
354
#define pSPORT2_TX                      ((volatile unsigned long  *)SPORT2_TX)
355
#define pSPORT2_RX                      ((volatile unsigned long  *)SPORT2_RX)
356
#define pSPORT2_TX32            ((volatile unsigned long  *)SPORT2_TX)
357
#define pSPORT2_RX32            ((volatile unsigned long  *)SPORT2_RX)
358
#define pSPORT2_TX16            ((volatile unsigned short *)SPORT2_TX)
359
#define pSPORT2_RX16            ((volatile unsigned short *)SPORT2_RX)
360
#define pSPORT2_RCR1            ((volatile unsigned short *)SPORT2_RCR1)
361
#define pSPORT2_RCR2            ((volatile unsigned short *)SPORT2_RCR2)
362
#define pSPORT2_RCLKDIV         ((volatile unsigned short *)SPORT2_RCLKDIV)
363
#define pSPORT2_RFSDIV          ((volatile unsigned short *)SPORT2_RFSDIV)
364
#define pSPORT2_STAT            ((volatile unsigned short *)SPORT2_STAT)
365
#define pSPORT2_CHNL            ((volatile unsigned short *)SPORT2_CHNL)
366
#define pSPORT2_MCMC1           ((volatile unsigned short *)SPORT2_MCMC1)
367
#define pSPORT2_MCMC2           ((volatile unsigned short *)SPORT2_MCMC2)
368
#define pSPORT2_MTCS0           ((volatile unsigned long  *)SPORT2_MTCS0)
369
#define pSPORT2_MTCS1           ((volatile unsigned long  *)SPORT2_MTCS1)
370
#define pSPORT2_MTCS2           ((volatile unsigned long  *)SPORT2_MTCS2)
371
#define pSPORT2_MTCS3           ((volatile unsigned long  *)SPORT2_MTCS3)
372
#define pSPORT2_MRCS0           ((volatile unsigned long  *)SPORT2_MRCS0)
373
#define pSPORT2_MRCS1           ((volatile unsigned long  *)SPORT2_MRCS1)
374
#define pSPORT2_MRCS2           ((volatile unsigned long  *)SPORT2_MRCS2)
375
#define pSPORT2_MRCS3           ((volatile unsigned long  *)SPORT2_MRCS3)
376
 
377
 
378
/* SPORT3 Controller                                            */
379
#define pSPORT3_TCR1            ((volatile unsigned short *)SPORT3_TCR1)
380
#define pSPORT3_TCR2            ((volatile unsigned short *)SPORT3_TCR2)
381
#define pSPORT3_TCLKDIV         ((volatile unsigned short *)SPORT3_TCLKDIV)
382
#define pSPORT3_TFSDIV          ((volatile unsigned short *)SPORT3_TFSDIV)
383
#define pSPORT3_TX                      ((volatile unsigned long  *)SPORT3_TX)
384
#define pSPORT3_RX                      ((volatile unsigned long  *)SPORT3_RX)
385
#define pSPORT3_TX32            ((volatile unsigned long  *)SPORT3_TX)
386
#define pSPORT3_RX32            ((volatile unsigned long  *)SPORT3_RX)
387
#define pSPORT3_TX16            ((volatile unsigned short *)SPORT3_TX)
388
#define pSPORT3_RX16            ((volatile unsigned short *)SPORT3_RX)
389
#define pSPORT3_RCR1            ((volatile unsigned short *)SPORT3_RCR1)
390
#define pSPORT3_RCR2            ((volatile unsigned short *)SPORT3_RCR2)
391
#define pSPORT3_RCLKDIV         ((volatile unsigned short *)SPORT3_RCLKDIV)
392
#define pSPORT3_RFSDIV          ((volatile unsigned short *)SPORT3_RFSDIV)
393
#define pSPORT3_STAT            ((volatile unsigned short *)SPORT3_STAT)
394
#define pSPORT3_CHNL            ((volatile unsigned short *)SPORT3_CHNL)
395
#define pSPORT3_MCMC1           ((volatile unsigned short *)SPORT3_MCMC1)
396
#define pSPORT3_MCMC2           ((volatile unsigned short *)SPORT3_MCMC2)
397
#define pSPORT3_MTCS0           ((volatile unsigned long  *)SPORT3_MTCS0)
398
#define pSPORT3_MTCS1           ((volatile unsigned long  *)SPORT3_MTCS1)
399
#define pSPORT3_MTCS2           ((volatile unsigned long  *)SPORT3_MTCS2)
400
#define pSPORT3_MTCS3           ((volatile unsigned long  *)SPORT3_MTCS3)
401
#define pSPORT3_MRCS0           ((volatile unsigned long  *)SPORT3_MRCS0)
402
#define pSPORT3_MRCS1           ((volatile unsigned long  *)SPORT3_MRCS1)
403
#define pSPORT3_MRCS2           ((volatile unsigned long  *)SPORT3_MRCS2)
404
#define pSPORT3_MRCS3           ((volatile unsigned long  *)SPORT3_MRCS3)
405
 
406
 
407
/* External Bus Interface Unit */
408
/* Aysnchronous Memory Controller */
409
#define pEBIU_AMGCTL    ((volatile unsigned short *)EBIU_AMGCTL)
410
#define pEBIU_AMBCTL0   ((volatile unsigned long *)EBIU_AMBCTL0)
411
#define pEBIU_AMBCTL1   ((volatile unsigned long *)EBIU_AMBCTL1)
412
 
413
/* SDRAM Controller */
414
#define pEBIU_SDGCTL    ((volatile unsigned long *)EBIU_SDGCTL)
415
#define pEBIU_SDBCTL    ((volatile unsigned short *)EBIU_SDBCTL)
416
#define pEBIU_SDRRC     ((volatile unsigned short *)EBIU_SDRRC)
417
#define pEBIU_SDSTAT    ((volatile unsigned short *)EBIU_SDSTAT)
418
 
419
 
420
/* DMA Controller 0 Traffic controls */
421
#define pDMAC0_TC_PER   ((volatile unsigned short *)DMAC0_TC_PER)
422
#define pDMAC0_TC_CNT   ((volatile unsigned short *)DMAC0_TC_CNT)
423
 
424
/* Alternate deprecated register names (below) provided for backwards code compatibility */
425
#define pDMA0_TCPER             ((volatile unsigned short *)DMA0_TCPER)
426
#define pDMA0_TCCNT             ((volatile unsigned short *)DMA0_TCCNT)
427
 
428
 
429
/* DMA Controller 0 */
430
#define pDMA0_CONFIG                    ((volatile unsigned short *)DMA0_CONFIG)
431
#define pDMA0_NEXT_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA0_NEXT_DESC_PTR)
432
#define pDMA0_START_ADDR                (_PTR_TO_VOL_VOID_PTR DMA0_START_ADDR)
433
#define pDMA0_X_COUNT                   ((volatile unsigned short *)DMA0_X_COUNT)
434
#define pDMA0_Y_COUNT                   ((volatile unsigned short *)DMA0_Y_COUNT)
435
#define pDMA0_X_MODIFY                  ((volatile signed short *)DMA0_X_MODIFY)
436
#define pDMA0_Y_MODIFY                  ((volatile signed short *)DMA0_Y_MODIFY)
437
#define pDMA0_CURR_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA0_CURR_DESC_PTR)
438
#define pDMA0_CURR_ADDR                 (_PTR_TO_VOL_VOID_PTR DMA0_CURR_ADDR)
439
#define pDMA0_CURR_X_COUNT              ((volatile unsigned short *)DMA0_CURR_X_COUNT)
440
#define pDMA0_CURR_Y_COUNT              ((volatile unsigned short *)DMA0_CURR_Y_COUNT)
441
#define pDMA0_IRQ_STATUS                ((volatile unsigned short *)DMA0_IRQ_STATUS)
442
#define pDMA0_PERIPHERAL_MAP    ((volatile unsigned short *)DMA0_PERIPHERAL_MAP)
443
 
444
#define pDMA1_CONFIG                    ((volatile unsigned short *)DMA1_CONFIG)
445
#define pDMA1_NEXT_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA1_NEXT_DESC_PTR)
446
#define pDMA1_START_ADDR                (_PTR_TO_VOL_VOID_PTR DMA1_START_ADDR)
447
#define pDMA1_X_COUNT                   ((volatile unsigned short *)DMA1_X_COUNT)
448
#define pDMA1_Y_COUNT                   ((volatile unsigned short *)DMA1_Y_COUNT)
449
#define pDMA1_X_MODIFY                  ((volatile signed short *)DMA1_X_MODIFY)
450
#define pDMA1_Y_MODIFY                  ((volatile signed short *)DMA1_Y_MODIFY)
451
#define pDMA1_CURR_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA1_CURR_DESC_PTR)
452
#define pDMA1_CURR_ADDR                 (_PTR_TO_VOL_VOID_PTR DMA1_CURR_ADDR)
453
#define pDMA1_CURR_X_COUNT              ((volatile unsigned short *)DMA1_CURR_X_COUNT)
454
#define pDMA1_CURR_Y_COUNT              ((volatile unsigned short *)DMA1_CURR_Y_COUNT)
455
#define pDMA1_IRQ_STATUS                ((volatile unsigned short *)DMA1_IRQ_STATUS)
456
#define pDMA1_PERIPHERAL_MAP    ((volatile unsigned short *)DMA1_PERIPHERAL_MAP)
457
 
458
#define pDMA2_CONFIG                    ((volatile unsigned short *)DMA2_CONFIG)
459
#define pDMA2_NEXT_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA2_NEXT_DESC_PTR)
460
#define pDMA2_START_ADDR                (_PTR_TO_VOL_VOID_PTR DMA2_START_ADDR)
461
#define pDMA2_X_COUNT                   ((volatile unsigned short *)DMA2_X_COUNT)
462
#define pDMA2_Y_COUNT                   ((volatile unsigned short *)DMA2_Y_COUNT)
463
#define pDMA2_X_MODIFY                  ((volatile signed short *)DMA2_X_MODIFY)
464
#define pDMA2_Y_MODIFY                  ((volatile signed short *)DMA2_Y_MODIFY)
465
#define pDMA2_CURR_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA2_CURR_DESC_PTR)
466
#define pDMA2_CURR_ADDR                 (_PTR_TO_VOL_VOID_PTR DMA2_CURR_ADDR)
467
#define pDMA2_CURR_X_COUNT              ((volatile unsigned short *)DMA2_CURR_X_COUNT)
468
#define pDMA2_CURR_Y_COUNT              ((volatile unsigned short *)DMA2_CURR_Y_COUNT)
469
#define pDMA2_IRQ_STATUS                ((volatile unsigned short *)DMA2_IRQ_STATUS)
470
#define pDMA2_PERIPHERAL_MAP    ((volatile unsigned short *)DMA2_PERIPHERAL_MAP)
471
 
472
#define pDMA3_CONFIG                    ((volatile unsigned short *)DMA3_CONFIG)
473
#define pDMA3_NEXT_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA3_NEXT_DESC_PTR)
474
#define pDMA3_START_ADDR                (_PTR_TO_VOL_VOID_PTR DMA3_START_ADDR)
475
#define pDMA3_X_COUNT                   ((volatile unsigned short *)DMA3_X_COUNT)
476
#define pDMA3_Y_COUNT                   ((volatile unsigned short *)DMA3_Y_COUNT)
477
#define pDMA3_X_MODIFY                  ((volatile signed short *)DMA3_X_MODIFY)
478
#define pDMA3_Y_MODIFY                  ((volatile signed short *)DMA3_Y_MODIFY)
479
#define pDMA3_CURR_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA3_CURR_DESC_PTR)
480
#define pDMA3_CURR_ADDR                 (_PTR_TO_VOL_VOID_PTR DMA3_CURR_ADDR)
481
#define pDMA3_CURR_X_COUNT              ((volatile unsigned short *)DMA3_CURR_X_COUNT)
482
#define pDMA3_CURR_Y_COUNT              ((volatile unsigned short *)DMA3_CURR_Y_COUNT)
483
#define pDMA3_IRQ_STATUS                ((volatile unsigned short *)DMA3_IRQ_STATUS)
484
#define pDMA3_PERIPHERAL_MAP    ((volatile unsigned short *)DMA3_PERIPHERAL_MAP)
485
 
486
#define pDMA4_CONFIG                    ((volatile unsigned short *)DMA4_CONFIG)
487
#define pDMA4_NEXT_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA4_NEXT_DESC_PTR)
488
#define pDMA4_START_ADDR                (_PTR_TO_VOL_VOID_PTR DMA4_START_ADDR)
489
#define pDMA4_X_COUNT                   ((volatile unsigned short *)DMA4_X_COUNT)
490
#define pDMA4_Y_COUNT                   ((volatile unsigned short *)DMA4_Y_COUNT)
491
#define pDMA4_X_MODIFY                  ((volatile signed short *)DMA4_X_MODIFY)
492
#define pDMA4_Y_MODIFY                  ((volatile signed short *)DMA4_Y_MODIFY)
493
#define pDMA4_CURR_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA4_CURR_DESC_PTR)
494
#define pDMA4_CURR_ADDR                 (_PTR_TO_VOL_VOID_PTR DMA4_CURR_ADDR)
495
#define pDMA4_CURR_X_COUNT              ((volatile unsigned short *)DMA4_CURR_X_COUNT)
496
#define pDMA4_CURR_Y_COUNT              ((volatile unsigned short *)DMA4_CURR_Y_COUNT)
497
#define pDMA4_IRQ_STATUS                ((volatile unsigned short *)DMA4_IRQ_STATUS)
498
#define pDMA4_PERIPHERAL_MAP    ((volatile unsigned short *)DMA4_PERIPHERAL_MAP)
499
 
500
#define pDMA5_CONFIG                    ((volatile unsigned short *)DMA5_CONFIG)
501
#define pDMA5_NEXT_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA5_NEXT_DESC_PTR)
502
#define pDMA5_START_ADDR                (_PTR_TO_VOL_VOID_PTR DMA5_START_ADDR)
503
#define pDMA5_X_COUNT                   ((volatile unsigned short *)DMA5_X_COUNT)
504
#define pDMA5_Y_COUNT                   ((volatile unsigned short *)DMA5_Y_COUNT)
505
#define pDMA5_X_MODIFY                  ((volatile signed short *)DMA5_X_MODIFY)
506
#define pDMA5_Y_MODIFY                  ((volatile signed short *)DMA5_Y_MODIFY)
507
#define pDMA5_CURR_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA5_CURR_DESC_PTR)
508
#define pDMA5_CURR_ADDR                 (_PTR_TO_VOL_VOID_PTR DMA5_CURR_ADDR)
509
#define pDMA5_CURR_X_COUNT              ((volatile unsigned short *)DMA5_CURR_X_COUNT)
510
#define pDMA5_CURR_Y_COUNT              ((volatile unsigned short *)DMA5_CURR_Y_COUNT)
511
#define pDMA5_IRQ_STATUS                ((volatile unsigned short *)DMA5_IRQ_STATUS)
512
#define pDMA5_PERIPHERAL_MAP    ((volatile unsigned short *)DMA5_PERIPHERAL_MAP)
513
 
514
#define pDMA6_CONFIG                    ((volatile unsigned short *)DMA6_CONFIG)
515
#define pDMA6_NEXT_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA6_NEXT_DESC_PTR)
516
#define pDMA6_START_ADDR                (_PTR_TO_VOL_VOID_PTR DMA6_START_ADDR)
517
#define pDMA6_X_COUNT                   ((volatile unsigned short *)DMA6_X_COUNT)
518
#define pDMA6_Y_COUNT                   ((volatile unsigned short *)DMA6_Y_COUNT)
519
#define pDMA6_X_MODIFY                  ((volatile signed short *)DMA6_X_MODIFY)
520
#define pDMA6_Y_MODIFY                  ((volatile signed short *)DMA6_Y_MODIFY)
521
#define pDMA6_CURR_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA6_CURR_DESC_PTR)
522
#define pDMA6_CURR_ADDR                 (_PTR_TO_VOL_VOID_PTR DMA6_CURR_ADDR)
523
#define pDMA6_CURR_X_COUNT              ((volatile unsigned short *)DMA6_CURR_X_COUNT)
524
#define pDMA6_CURR_Y_COUNT              ((volatile unsigned short *)DMA6_CURR_Y_COUNT)
525
#define pDMA6_IRQ_STATUS                ((volatile unsigned short *)DMA6_IRQ_STATUS)
526
#define pDMA6_PERIPHERAL_MAP    ((volatile unsigned short *)DMA6_PERIPHERAL_MAP)
527
 
528
#define pDMA7_CONFIG                    ((volatile unsigned short *)DMA7_CONFIG)
529
#define pDMA7_NEXT_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA7_NEXT_DESC_PTR)
530
#define pDMA7_START_ADDR                (_PTR_TO_VOL_VOID_PTR DMA7_START_ADDR)
531
#define pDMA7_X_COUNT                   ((volatile unsigned short *)DMA7_X_COUNT)
532
#define pDMA7_Y_COUNT                   ((volatile unsigned short *)DMA7_Y_COUNT)
533
#define pDMA7_X_MODIFY                  ((volatile signed short *)DMA7_X_MODIFY)
534
#define pDMA7_Y_MODIFY                  ((volatile signed short *)DMA7_Y_MODIFY)
535
#define pDMA7_CURR_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA7_CURR_DESC_PTR)
536
#define pDMA7_CURR_ADDR                 (_PTR_TO_VOL_VOID_PTR DMA7_CURR_ADDR)
537
#define pDMA7_CURR_X_COUNT              ((volatile unsigned short *)DMA7_CURR_X_COUNT)
538
#define pDMA7_CURR_Y_COUNT              ((volatile unsigned short *)DMA7_CURR_Y_COUNT)
539
#define pDMA7_IRQ_STATUS                ((volatile unsigned short *)DMA7_IRQ_STATUS)
540
#define pDMA7_PERIPHERAL_MAP    ((volatile unsigned short *)DMA7_PERIPHERAL_MAP)
541
 
542
#define pMDMA0_D1_CONFIG                ((volatile unsigned short *)MDMA0_D1_CONFIG)
543
#define pMDMA0_D1_NEXT_DESC_PTR         (_PTR_TO_VOL_VOID_PTR MDMA0_D1_NEXT_DESC_PTR)
544
#define pMDMA0_D1_START_ADDR    (_PTR_TO_VOL_VOID_PTR MDMA0_D1_START_ADDR)
545
#define pMDMA0_D1_X_COUNT               ((volatile unsigned short *)MDMA0_D1_X_COUNT)
546
#define pMDMA0_D1_Y_COUNT               ((volatile unsigned short *)MDMA0_D1_Y_COUNT)
547
#define pMDMA0_D1_X_MODIFY              ((volatile signed short *)MDMA0_D1_X_MODIFY)
548
#define pMDMA0_D1_Y_MODIFY              ((volatile signed short *)MDMA0_D1_Y_MODIFY)
549
#define pMDMA0_D1_CURR_DESC_PTR         (_PTR_TO_VOL_VOID_PTR MDMA0_D1_CURR_DESC_PTR)
550
#define pMDMA0_D1_CURR_ADDR             (_PTR_TO_VOL_VOID_PTR MDMA0_D1_CURR_ADDR)
551
#define pMDMA0_D1_CURR_X_COUNT  ((volatile unsigned short *)MDMA0_D1_CURR_X_COUNT)
552
#define pMDMA0_D1_CURR_Y_COUNT  ((volatile unsigned short *)MDMA0_D1_CURR_Y_COUNT)
553
#define pMDMA0_D1_IRQ_STATUS    ((volatile unsigned short *)MDMA0_D1_IRQ_STATUS)
554
#define pMDMA0_D1_PERIPHERAL_MAP ((volatile unsigned short *)MDMA0_D1_PERIPHERAL_MAP)
555
 
556
#define pMDMA0_S1_CONFIG                ((volatile unsigned short *)MDMA0_S1_CONFIG)
557
#define pMDMA0_S1_NEXT_DESC_PTR         (_PTR_TO_VOL_VOID_PTR MDMA0_S1_NEXT_DESC_PTR)
558
#define pMDMA0_S1_START_ADDR    (_PTR_TO_VOL_VOID_PTR MDMA0_S1_START_ADDR)
559
#define pMDMA0_S1_X_COUNT               ((volatile unsigned short *)MDMA0_S1_X_COUNT)
560
#define pMDMA0_S1_Y_COUNT               ((volatile unsigned short *)MDMA0_S1_Y_COUNT)
561
#define pMDMA0_S1_X_MODIFY              ((volatile signed short *)MDMA0_S1_X_MODIFY)
562
#define pMDMA0_S1_Y_MODIFY              ((volatile signed short *)MDMA0_S1_Y_MODIFY)
563
#define pMDMA0_S1_CURR_DESC_PTR         (_PTR_TO_VOL_VOID_PTR MDMA0_S1_CURR_DESC_PTR)
564
#define pMDMA0_S1_CURR_ADDR             (_PTR_TO_VOL_VOID_PTR MDMA0_S1_CURR_ADDR)
565
#define pMDMA0_S1_CURR_X_COUNT  ((volatile unsigned short *)MDMA0_S1_CURR_X_COUNT)
566
#define pMDMA0_S1_CURR_Y_COUNT  ((volatile unsigned short *)MDMA0_S1_CURR_Y_COUNT)
567
#define pMDMA0_S1_IRQ_STATUS    ((volatile unsigned short *)MDMA0_S1_IRQ_STATUS)
568
#define pMDMA0_S1_PERIPHERAL_MAP ((volatile unsigned short *)MDMA0_S1_PERIPHERAL_MAP)
569
 
570
#define pMDMA0_D0_CONFIG                ((volatile unsigned short *)MDMA0_D0_CONFIG)
571
#define pMDMA0_D0_NEXT_DESC_PTR         (_PTR_TO_VOL_VOID_PTR MDMA0_D0_NEXT_DESC_PTR)
572
#define pMDMA0_D0_START_ADDR    (_PTR_TO_VOL_VOID_PTR MDMA0_D0_START_ADDR)
573
#define pMDMA0_D0_X_COUNT               ((volatile unsigned short *)MDMA0_D0_X_COUNT)
574
#define pMDMA0_D0_Y_COUNT               ((volatile unsigned short *)MDMA0_D0_Y_COUNT)
575
#define pMDMA0_D0_X_MODIFY              ((volatile signed short *)MDMA0_D0_X_MODIFY)
576
#define pMDMA0_D0_Y_MODIFY              ((volatile signed short *)MDMA0_D0_Y_MODIFY)
577
#define pMDMA0_D0_CURR_DESC_PTR         (_PTR_TO_VOL_VOID_PTR MDMA0_D0_CURR_DESC_PTR)
578
#define pMDMA0_D0_CURR_ADDR             (_PTR_TO_VOL_VOID_PTR MDMA0_D0_CURR_ADDR)
579
#define pMDMA0_D0_CURR_X_COUNT  ((volatile unsigned short *)MDMA0_D0_CURR_X_COUNT)
580
#define pMDMA0_D0_CURR_Y_COUNT  ((volatile unsigned short *)MDMA0_D0_CURR_Y_COUNT)
581
#define pMDMA0_D0_IRQ_STATUS    ((volatile unsigned short *)MDMA0_D0_IRQ_STATUS)
582
#define pMDMA0_D0_PERIPHERAL_MAP ((volatile unsigned short *)MDMA0_D0_PERIPHERAL_MAP)
583
 
584
#define pMDMA0_S0_CONFIG                ((volatile unsigned short *)MDMA0_S0_CONFIG)
585
#define pMDMA0_S0_NEXT_DESC_PTR         (_PTR_TO_VOL_VOID_PTR MDMA0_S0_NEXT_DESC_PTR)
586
#define pMDMA0_S0_START_ADDR    (_PTR_TO_VOL_VOID_PTR MDMA0_S0_START_ADDR)
587
#define pMDMA0_S0_X_COUNT               ((volatile unsigned short *)MDMA0_S0_X_COUNT)
588
#define pMDMA0_S0_Y_COUNT               ((volatile unsigned short *)MDMA0_S0_Y_COUNT)
589
#define pMDMA0_S0_X_MODIFY              ((volatile signed short *)MDMA0_S0_X_MODIFY)
590
#define pMDMA0_S0_Y_MODIFY              ((volatile signed short *)MDMA0_S0_Y_MODIFY)
591
#define pMDMA0_S0_CURR_DESC_PTR         (_PTR_TO_VOL_VOID_PTR MDMA0_S0_CURR_DESC_PTR)
592
#define pMDMA0_S0_CURR_ADDR             (_PTR_TO_VOL_VOID_PTR MDMA0_S0_CURR_ADDR)
593
#define pMDMA0_S0_CURR_X_COUNT  ((volatile unsigned short *)MDMA0_S0_CURR_X_COUNT)
594
#define pMDMA0_S0_CURR_Y_COUNT  ((volatile unsigned short *)MDMA0_S0_CURR_Y_COUNT)
595
#define pMDMA0_S0_IRQ_STATUS    ((volatile unsigned short *)MDMA0_S0_IRQ_STATUS)
596
#define pMDMA0_S0_PERIPHERAL_MAP ((volatile unsigned short *)MDMA0_S0_PERIPHERAL_MAP)
597
 
598
 
599
/* DMA Controller 1 Traffic Control Registers                                                                                   */
600
#define pDMAC1_TC_PER                           ((volatile unsigned short *)DMAC1_TC_PER)
601
#define pDMAC1_TC_CNT                           ((volatile unsigned short *)DMAC1_TC_CNT)
602
 
603
/* Alternate deprecated register names (below) provided for backwards code compatibility */
604
#define pDMA1_TCPER                                     pDMA1_TCPER     /* Traffic Control Periods Register                     */
605
#define pDMA1_TCCNT                                     pDMA1_TCCNT     /* Traffic Control Current Counts Register      */
606
 
607
/* DMA Controller 1                                             */
608
#define pDMA8_NEXT_DESC_PTR             ((void * volatile *)DMA8_NEXT_DESC_PTR)
609
#define pDMA8_START_ADDR                        ((void * volatile *)DMA8_START_ADDR)
610
#define pDMA8_CONFIG                            ((volatile unsigned short *)DMA8_CONFIG)
611
#define pDMA8_X_COUNT                           ((volatile unsigned short *)DMA8_X_COUNT)
612
#define pDMA8_X_MODIFY                          ((volatile signed   short *)DMA8_X_MODIFY)
613
#define pDMA8_Y_COUNT                           ((volatile unsigned short *)DMA8_Y_COUNT)
614
#define pDMA8_Y_MODIFY                          ((volatile signed   short *)DMA8_Y_MODIFY)
615
#define pDMA8_CURR_DESC_PTR             ((void * volatile *)DMA8_CURR_DESC_PTR)
616
#define pDMA8_CURR_ADDR                         ((void * volatile *)DMA8_CURR_ADDR)
617
#define pDMA8_IRQ_STATUS                        ((volatile unsigned short *)DMA8_IRQ_STATUS)
618
#define pDMA8_PERIPHERAL_MAP            ((volatile unsigned short *)DMA8_PERIPHERAL_MAP)
619
#define pDMA8_CURR_X_COUNT                      ((volatile unsigned short *)DMA8_CURR_X_COUNT)
620
#define pDMA8_CURR_Y_COUNT                      ((volatile unsigned short *)DMA8_CURR_Y_COUNT)
621
 
622
#define pDMA9_NEXT_DESC_PTR             ((void * volatile *)DMA9_NEXT_DESC_PTR)
623
#define pDMA9_START_ADDR                        ((void * volatile *)DMA9_START_ADDR)
624
#define pDMA9_CONFIG                            ((volatile unsigned short *)DMA9_CONFIG)
625
#define pDMA9_X_COUNT                           ((volatile unsigned short *)DMA9_X_COUNT)
626
#define pDMA9_X_MODIFY                          ((volatile signed   short *)DMA9_X_MODIFY)
627
#define pDMA9_Y_COUNT                           ((volatile unsigned short *)DMA9_Y_COUNT)
628
#define pDMA9_Y_MODIFY                          ((volatile signed   short *)DMA9_Y_MODIFY)
629
#define pDMA9_CURR_DESC_PTR             ((void * volatile *)DMA9_CURR_DESC_PTR)
630
#define pDMA9_CURR_ADDR                         ((void * volatile *)DMA9_CURR_ADDR)
631
#define pDMA9_IRQ_STATUS                        ((volatile unsigned short *)DMA9_IRQ_STATUS)
632
#define pDMA9_PERIPHERAL_MAP            ((volatile unsigned short *)DMA9_PERIPHERAL_MAP)
633
#define pDMA9_CURR_X_COUNT                      ((volatile unsigned short *)DMA9_CURR_X_COUNT)
634
#define pDMA9_CURR_Y_COUNT                      ((volatile unsigned short *)DMA9_CURR_Y_COUNT)
635
 
636
#define pDMA10_NEXT_DESC_PTR            ((void * volatile *)DMA10_NEXT_DESC_PTR)
637
#define pDMA10_START_ADDR                       ((void * volatile *)DMA10_START_ADDR)
638
#define pDMA10_CONFIG                           ((volatile unsigned short *)DMA10_CONFIG)
639
#define pDMA10_X_COUNT                          ((volatile unsigned short *)DMA10_X_COUNT)
640
#define pDMA10_X_MODIFY                         ((volatile signed   short *)DMA10_X_MODIFY)
641
#define pDMA10_Y_COUNT                          ((volatile unsigned short *)DMA10_Y_COUNT)
642
#define pDMA10_Y_MODIFY                         ((volatile signed   short *)DMA10_Y_MODIFY)
643
#define pDMA10_CURR_DESC_PTR            ((void * volatile *)DMA10_CURR_DESC_PTR)
644
#define pDMA10_CURR_ADDR                        ((void * volatile *)DMA10_CURR_ADDR)
645
#define pDMA10_IRQ_STATUS                       ((volatile unsigned short *)DMA10_IRQ_STATUS)
646
#define pDMA10_PERIPHERAL_MAP           ((volatile unsigned short *)DMA10_PERIPHERAL_MAP)
647
#define pDMA10_CURR_X_COUNT             ((volatile unsigned short *)DMA10_CURR_X_COUNT)
648
#define pDMA10_CURR_Y_COUNT             ((volatile unsigned short *)DMA10_CURR_Y_COUNT)
649
 
650
#define pDMA11_NEXT_DESC_PTR            ((void * volatile *)DMA11_NEXT_DESC_PTR)
651
#define pDMA11_START_ADDR                       ((void * volatile *)DMA11_START_ADDR)
652
#define pDMA11_CONFIG                           ((volatile unsigned short *)DMA11_CONFIG)
653
#define pDMA11_X_COUNT                          ((volatile unsigned short *)DMA11_X_COUNT)
654
#define pDMA11_X_MODIFY                         ((volatile signed   short *)DMA11_X_MODIFY)
655
#define pDMA11_Y_COUNT                          ((volatile unsigned short *)DMA11_Y_COUNT)
656
#define pDMA11_Y_MODIFY                         ((volatile signed   short *)DMA11_Y_MODIFY)
657
#define pDMA11_CURR_DESC_PTR            ((void * volatile *)DMA11_CURR_DESC_PTR)
658
#define pDMA11_CURR_ADDR                        ((void * volatile *)DMA11_CURR_ADDR)
659
#define pDMA11_IRQ_STATUS                       ((volatile unsigned short *)DMA11_IRQ_STATUS)
660
#define pDMA11_PERIPHERAL_MAP           ((volatile unsigned short *)DMA11_PERIPHERAL_MAP)
661
#define pDMA11_CURR_X_COUNT             ((volatile unsigned short *)DMA11_CURR_X_COUNT)
662
#define pDMA11_CURR_Y_COUNT             ((volatile unsigned short *)DMA11_CURR_Y_COUNT)
663
 
664
#define pDMA12_NEXT_DESC_PTR            ((void * volatile *)DMA12_NEXT_DESC_PTR)
665
#define pDMA12_START_ADDR                       ((void * volatile *)DMA12_START_ADDR)
666
#define pDMA12_CONFIG                           ((volatile unsigned short *)DMA12_CONFIG)
667
#define pDMA12_X_COUNT                          ((volatile unsigned short *)DMA12_X_COUNT)
668
#define pDMA12_X_MODIFY                         ((volatile signed   short *)DMA12_X_MODIFY)
669
#define pDMA12_Y_COUNT                          ((volatile unsigned short *)DMA12_Y_COUNT)
670
#define pDMA12_Y_MODIFY                         ((volatile signed   short *)DMA12_Y_MODIFY)
671
#define pDMA12_CURR_DESC_PTR            ((void * volatile *)DMA12_CURR_DESC_PTR)
672
#define pDMA12_CURR_ADDR                        ((void * volatile *)DMA12_CURR_ADDR)
673
#define pDMA12_IRQ_STATUS                       ((volatile unsigned short *)DMA12_IRQ_STATUS)
674
#define pDMA12_PERIPHERAL_MAP           ((volatile unsigned short *)DMA12_PERIPHERAL_MAP)
675
#define pDMA12_CURR_X_COUNT             ((volatile unsigned short *)DMA12_CURR_X_COUNT)
676
#define pDMA12_CURR_Y_COUNT             ((volatile unsigned short *)DMA12_CURR_Y_COUNT)
677
 
678
#define pDMA13_NEXT_DESC_PTR            ((void * volatile *)DMA13_NEXT_DESC_PTR)
679
#define pDMA13_START_ADDR                       ((void * volatile *)DMA13_START_ADDR)
680
#define pDMA13_CONFIG                           ((volatile unsigned short *)DMA13_CONFIG)
681
#define pDMA13_X_COUNT                          ((volatile unsigned short *)DMA13_X_COUNT)
682
#define pDMA13_X_MODIFY                         ((volatile signed   short *)DMA13_X_MODIFY)
683
#define pDMA13_Y_COUNT                          ((volatile unsigned short *)DMA13_Y_COUNT)
684
#define pDMA13_Y_MODIFY                         ((volatile signed   short *)DMA13_Y_MODIFY)
685
#define pDMA13_CURR_DESC_PTR            ((void * volatile *)DMA13_CURR_DESC_PTR)
686
#define pDMA13_CURR_ADDR                        ((void * volatile *)DMA13_CURR_ADDR)
687
#define pDMA13_IRQ_STATUS                       ((volatile unsigned short *)DMA13_IRQ_STATUS)
688
#define pDMA13_PERIPHERAL_MAP           ((volatile unsigned short *)DMA13_PERIPHERAL_MAP)
689
#define pDMA13_CURR_X_COUNT             ((volatile unsigned short *)DMA13_CURR_X_COUNT)
690
#define pDMA13_CURR_Y_COUNT             ((volatile unsigned short *)DMA13_CURR_Y_COUNT)
691
 
692
#define pDMA14_NEXT_DESC_PTR            ((void * volatile *)DMA14_NEXT_DESC_PTR)
693
#define pDMA14_START_ADDR                       ((void * volatile *)DMA14_START_ADDR)
694
#define pDMA14_CONFIG                           ((volatile unsigned short *)DMA14_CONFIG)
695
#define pDMA14_X_COUNT                          ((volatile unsigned short *)DMA14_X_COUNT)
696
#define pDMA14_X_MODIFY                         ((volatile signed   short *)DMA14_X_MODIFY)
697
#define pDMA14_Y_COUNT                          ((volatile unsigned short *)DMA14_Y_COUNT)
698
#define pDMA14_Y_MODIFY                         ((volatile signed   short *)DMA14_Y_MODIFY)
699
#define pDMA14_CURR_DESC_PTR            ((void * volatile *)DMA14_CURR_DESC_PTR)
700
#define pDMA14_CURR_ADDR                        ((void * volatile *)DMA14_CURR_ADDR)
701
#define pDMA14_IRQ_STATUS                       ((volatile unsigned short *)DMA14_IRQ_STATUS)
702
#define pDMA14_PERIPHERAL_MAP           ((volatile unsigned short *)DMA14_PERIPHERAL_MAP)
703
#define pDMA14_CURR_X_COUNT             ((volatile unsigned short *)DMA14_CURR_X_COUNT)
704
#define pDMA14_CURR_Y_COUNT             ((volatile unsigned short *)DMA14_CURR_Y_COUNT)
705
 
706
#define pDMA15_NEXT_DESC_PTR            ((void * volatile *)DMA15_NEXT_DESC_PTR)
707
#define pDMA15_START_ADDR                       ((void * volatile *)DMA15_START_ADDR)
708
#define pDMA15_CONFIG                           ((volatile unsigned short *)DMA15_CONFIG)
709
#define pDMA15_X_COUNT                          ((volatile unsigned short *)DMA15_X_COUNT)
710
#define pDMA15_X_MODIFY                         ((volatile signed   short *)DMA15_X_MODIFY)
711
#define pDMA15_Y_COUNT                          ((volatile unsigned short *)DMA15_Y_COUNT)
712
#define pDMA15_Y_MODIFY                         ((volatile signed   short *)DMA15_Y_MODIFY)
713
#define pDMA15_CURR_DESC_PTR            ((void * volatile *)DMA15_CURR_DESC_PTR)
714
#define pDMA15_CURR_ADDR                        ((void * volatile *)DMA15_CURR_ADDR)
715
#define pDMA15_IRQ_STATUS                       ((volatile unsigned short *)DMA15_IRQ_STATUS)
716
#define pDMA15_PERIPHERAL_MAP           ((volatile unsigned short *)DMA15_PERIPHERAL_MAP)
717
#define pDMA15_CURR_X_COUNT             ((volatile unsigned short *)DMA15_CURR_X_COUNT)
718
#define pDMA15_CURR_Y_COUNT             ((volatile unsigned short *)DMA15_CURR_Y_COUNT)
719
 
720
#define pDMA16_NEXT_DESC_PTR            ((void * volatile *)DMA16_NEXT_DESC_PTR)
721
#define pDMA16_START_ADDR                       ((void * volatile *)DMA16_START_ADDR)
722
#define pDMA16_CONFIG                           ((volatile unsigned short *)DMA16_CONFIG)
723
#define pDMA16_X_COUNT                          ((volatile unsigned short *)DMA16_X_COUNT)
724
#define pDMA16_X_MODIFY                         ((volatile signed   short *)DMA16_X_MODIFY)
725
#define pDMA16_Y_COUNT                          ((volatile unsigned short *)DMA16_Y_COUNT)
726
#define pDMA16_Y_MODIFY                         ((volatile signed   short *)DMA16_Y_MODIFY)
727
#define pDMA16_CURR_DESC_PTR            ((void * volatile *)DMA16_CURR_DESC_PTR)
728
#define pDMA16_CURR_ADDR                        ((void * volatile *)DMA16_CURR_ADDR)
729
#define pDMA16_IRQ_STATUS                       ((volatile unsigned short *)DMA16_IRQ_STATUS)
730
#define pDMA16_PERIPHERAL_MAP           ((volatile unsigned short *)DMA16_PERIPHERAL_MAP)
731
#define pDMA16_CURR_X_COUNT             ((volatile unsigned short *)DMA16_CURR_X_COUNT)
732
#define pDMA16_CURR_Y_COUNT             ((volatile unsigned short *)DMA16_CURR_Y_COUNT)
733
 
734
#define pDMA17_NEXT_DESC_PTR            ((void * volatile *)DMA17_NEXT_DESC_PTR)
735
#define pDMA17_START_ADDR                       ((void * volatile *)DMA17_START_ADDR)
736
#define pDMA17_CONFIG                           ((volatile unsigned short *)DMA17_CONFIG)
737
#define pDMA17_X_COUNT                          ((volatile unsigned short *)DMA17_X_COUNT)
738
#define pDMA17_X_MODIFY                         ((volatile signed   short *)DMA17_X_MODIFY)
739
#define pDMA17_Y_COUNT                          ((volatile unsigned short *)DMA17_Y_COUNT)
740
#define pDMA17_Y_MODIFY                         ((volatile signed   short *)DMA17_Y_MODIFY)
741
#define pDMA17_CURR_DESC_PTR            ((void * volatile *)DMA17_CURR_DESC_PTR)
742
#define pDMA17_CURR_ADDR                        ((void * volatile *)DMA17_CURR_ADDR)
743
#define pDMA17_IRQ_STATUS                       ((volatile unsigned short *)DMA17_IRQ_STATUS)
744
#define pDMA17_PERIPHERAL_MAP           ((volatile unsigned short *)DMA17_PERIPHERAL_MAP)
745
#define pDMA17_CURR_X_COUNT             ((volatile unsigned short *)DMA17_CURR_X_COUNT)
746
#define pDMA17_CURR_Y_COUNT             ((volatile unsigned short *)DMA17_CURR_Y_COUNT)
747
 
748
#define pDMA18_NEXT_DESC_PTR            ((void * volatile *)DMA18_NEXT_DESC_PTR)
749
#define pDMA18_START_ADDR                       ((void * volatile *)DMA18_START_ADDR)
750
#define pDMA18_CONFIG                           ((volatile unsigned short *)DMA18_CONFIG)
751
#define pDMA18_X_COUNT                          ((volatile unsigned short *)DMA18_X_COUNT)
752
#define pDMA18_X_MODIFY                         ((volatile signed   short *)DMA18_X_MODIFY)
753
#define pDMA18_Y_COUNT                          ((volatile unsigned short *)DMA18_Y_COUNT)
754
#define pDMA18_Y_MODIFY                         ((volatile signed   short *)DMA18_Y_MODIFY)
755
#define pDMA18_CURR_DESC_PTR            ((void * volatile *)DMA18_CURR_DESC_PTR)
756
#define pDMA18_CURR_ADDR                        ((void * volatile *)DMA18_CURR_ADDR)
757
#define pDMA18_IRQ_STATUS                       ((volatile unsigned short *)DMA18_IRQ_STATUS)
758
#define pDMA18_PERIPHERAL_MAP           ((volatile unsigned short *)DMA18_PERIPHERAL_MAP)
759
#define pDMA18_CURR_X_COUNT             ((volatile unsigned short *)DMA18_CURR_X_COUNT)
760
#define pDMA18_CURR_Y_COUNT             ((volatile unsigned short *)DMA18_CURR_Y_COUNT)
761
 
762
#define pDMA19_NEXT_DESC_PTR            ((void * volatile *)DMA19_NEXT_DESC_PTR)
763
#define pDMA19_START_ADDR                       ((void * volatile *)DMA19_START_ADDR)
764
#define pDMA19_CONFIG                           ((volatile unsigned short *)DMA19_CONFIG)
765
#define pDMA19_X_COUNT                          ((volatile unsigned short *)DMA19_X_COUNT)
766
#define pDMA19_X_MODIFY                         ((volatile signed   short *)DMA19_X_MODIFY)
767
#define pDMA19_Y_COUNT                          ((volatile unsigned short *)DMA19_Y_COUNT)
768
#define pDMA19_Y_MODIFY                         ((volatile signed   short *)DMA19_Y_MODIFY)
769
#define pDMA19_CURR_DESC_PTR            ((void * volatile *)DMA19_CURR_DESC_PTR)
770
#define pDMA19_CURR_ADDR                        ((void * volatile *)DMA19_CURR_ADDR)
771
#define pDMA19_IRQ_STATUS                       ((volatile unsigned short *)DMA19_IRQ_STATUS)
772
#define pDMA19_PERIPHERAL_MAP           ((volatile unsigned short *)DMA19_PERIPHERAL_MAP)
773
#define pDMA19_CURR_X_COUNT             ((volatile unsigned short *)DMA19_CURR_X_COUNT)
774
#define pDMA19_CURR_Y_COUNT             ((volatile unsigned short *)DMA19_CURR_Y_COUNT)
775
 
776
#define pMDMA1_D0_NEXT_DESC_PTR         ((void * volatile *)MDMA1_D0_NEXT_DESC_PTR)
777
#define pMDMA1_D0_START_ADDR            ((void * volatile *)MDMA1_D0_START_ADDR)
778
#define pMDMA1_D0_CONFIG                        ((volatile unsigned short *)MDMA1_D0_CONFIG)
779
#define pMDMA1_D0_X_COUNT                       ((volatile unsigned short *)MDMA1_D0_X_COUNT)
780
#define pMDMA1_D0_X_MODIFY                      ((volatile signed   short *)MDMA1_D0_X_MODIFY)
781
#define pMDMA1_D0_Y_COUNT                       ((volatile unsigned short *)MDMA1_D0_Y_COUNT)
782
#define pMDMA1_D0_Y_MODIFY                      ((volatile signed   short *)MDMA1_D0_Y_MODIFY)
783
#define pMDMA1_D0_CURR_DESC_PTR         ((void * volatile *)MDMA1_D0_CURR_DESC_PTR)
784
#define pMDMA1_D0_CURR_ADDR             ((void * volatile *)MDMA1_D0_CURR_ADDR)
785
#define pMDMA1_D0_IRQ_STATUS            ((volatile unsigned short *)MDMA1_D0_IRQ_STATUS)
786
#define pMDMA1_D0_PERIPHERAL_MAP        ((volatile unsigned short *)MDMA1_D0_PERIPHERAL_MAP)
787
#define pMDMA1_D0_CURR_X_COUNT          ((volatile unsigned short *)MDMA1_D0_CURR_X_COUNT)
788
#define pMDMA1_D0_CURR_Y_COUNT          ((volatile unsigned short *)MDMA1_D0_CURR_Y_COUNT)
789
 
790
#define pMDMA1_S0_NEXT_DESC_PTR         ((void * volatile *)MDMA1_S0_NEXT_DESC_PTR)
791
#define pMDMA1_S0_START_ADDR            ((void * volatile *)MDMA1_S0_START_ADDR)
792
#define pMDMA1_S0_CONFIG                        ((volatile unsigned short *)MDMA1_S0_CONFIG)
793
#define pMDMA1_S0_X_COUNT                       ((volatile unsigned short *)MDMA1_S0_X_COUNT)
794
#define pMDMA1_S0_X_MODIFY                      ((volatile signed   short *)MDMA1_S0_X_MODIFY)
795
#define pMDMA1_S0_Y_COUNT                       ((volatile unsigned short *)MDMA1_S0_Y_COUNT)
796
#define pMDMA1_S0_Y_MODIFY                      ((volatile signed   short *)MDMA1_S0_Y_MODIFY)
797
#define pMDMA1_S0_CURR_DESC_PTR         ((void * volatile *)MDMA1_S0_CURR_DESC_PTR)
798
#define pMDMA1_S0_CURR_ADDR             ((void * volatile *)MDMA1_S0_CURR_ADDR)
799
#define pMDMA1_S0_IRQ_STATUS            ((volatile unsigned short *)MDMA1_S0_IRQ_STATUS)
800
#define pMDMA1_S0_PERIPHERAL_MAP        ((volatile unsigned short *)MDMA1_S0_PERIPHERAL_MAP)
801
#define pMDMA1_S0_CURR_X_COUNT          ((volatile unsigned short *)MDMA1_S0_CURR_X_COUNT)
802
#define pMDMA1_S0_CURR_Y_COUNT          ((volatile unsigned short *)MDMA1_S0_CURR_Y_COUNT)
803
 
804
#define pMDMA1_D1_NEXT_DESC_PTR         ((void * volatile *)MDMA1_D1_NEXT_DESC_PTR)
805
#define pMDMA1_D1_START_ADDR            ((void * volatile *)MDMA1_D1_START_ADDR)
806
#define pMDMA1_D1_CONFIG                        ((volatile unsigned short *)MDMA1_D1_CONFIG)
807
#define pMDMA1_D1_X_COUNT                       ((volatile unsigned short *)MDMA1_D1_X_COUNT)
808
#define pMDMA1_D1_X_MODIFY                      ((volatile signed   short *)MDMA1_D1_X_MODIFY)
809
#define pMDMA1_D1_Y_COUNT                       ((volatile unsigned short *)MDMA1_D1_Y_COUNT)
810
#define pMDMA1_D1_Y_MODIFY                      ((volatile signed   short *)MDMA1_D1_Y_MODIFY)
811
#define pMDMA1_D1_CURR_DESC_PTR         ((void * volatile *)MDMA1_D1_CURR_DESC_PTR)
812
#define pMDMA1_D1_CURR_ADDR             ((void * volatile *)MDMA1_D1_CURR_ADDR)
813
#define pMDMA1_D1_IRQ_STATUS            ((volatile unsigned short *)MDMA1_D1_IRQ_STATUS)
814
#define pMDMA1_D1_PERIPHERAL_MAP        ((volatile unsigned short *)MDMA1_D1_PERIPHERAL_MAP)
815
#define pMDMA1_D1_CURR_X_COUNT          ((volatile unsigned short *)MDMA1_D1_CURR_X_COUNT)
816
#define pMDMA1_D1_CURR_Y_COUNT          ((volatile unsigned short *)MDMA1_D1_CURR_Y_COUNT)
817
 
818
#define pMDMA1_S1_NEXT_DESC_PTR         ((void * volatile *)MDMA1_S1_NEXT_DESC_PTR)
819
#define pMDMA1_S1_START_ADDR            ((void * volatile *)MDMA1_S1_START_ADDR)
820
#define pMDMA1_S1_CONFIG                        ((volatile unsigned short *)MDMA1_S1_CONFIG)
821
#define pMDMA1_S1_X_COUNT                       ((volatile unsigned short *)MDMA1_S1_X_COUNT)
822
#define pMDMA1_S1_X_MODIFY                      ((volatile signed   short *)MDMA1_S1_X_MODIFY)
823
#define pMDMA1_S1_Y_COUNT                       ((volatile unsigned short *)MDMA1_S1_Y_COUNT)
824
#define pMDMA1_S1_Y_MODIFY                      ((volatile signed   short *)MDMA1_S1_Y_MODIFY)
825
#define pMDMA1_S1_CURR_DESC_PTR         ((void * volatile *)MDMA1_S1_CURR_DESC_PTR)
826
#define pMDMA1_S1_CURR_ADDR             ((void * volatile *)MDMA1_S1_CURR_ADDR)
827
#define pMDMA1_S1_IRQ_STATUS            ((volatile unsigned short *)MDMA1_S1_IRQ_STATUS)
828
#define pMDMA1_S1_PERIPHERAL_MAP        ((volatile unsigned short *)MDMA1_S1_PERIPHERAL_MAP)
829
#define pMDMA1_S1_CURR_X_COUNT          ((volatile unsigned short *)MDMA1_S1_CURR_X_COUNT)
830
#define pMDMA1_S1_CURR_Y_COUNT          ((volatile unsigned short *)MDMA1_S1_CURR_Y_COUNT)
831
 
832
 
833
/* Parallel Peripheral Interface (PPI) */
834
#define pPPI_CONTROL    ((volatile unsigned short *)PPI_CONTROL)
835
#define pPPI_STATUS     ((volatile unsigned short *)PPI_STATUS)
836
#define pPPI_COUNT              ((volatile unsigned short *)PPI_COUNT)
837
#define pPPI_DELAY              ((volatile unsigned short *)PPI_DELAY)
838
#define pPPI_FRAME              ((volatile unsigned short *)PPI_FRAME)
839
 
840
 
841
/* Media Transceiver (MXVR)             (0xFFC02700 - 0xFFC028FF) */
842
#define pMXVR_CONFIG                    ((volatile unsigned short *)MXVR_CONFIG)
843
#define pMXVR_PLL_CTL_0                 ((volatile unsigned long  *)MXVR_PLL_CTL_0)
844
 
845
#define pMXVR_STATE_0                   ((volatile unsigned long  *)MXVR_STATE_0)
846
#define pMXVR_STATE_1                   ((volatile unsigned long  *)MXVR_STATE_1)
847
 
848
#define pMXVR_INT_STAT_0                ((volatile unsigned long  *)MXVR_INT_STAT_0)
849
#define pMXVR_INT_STAT_1                ((volatile unsigned long  *)MXVR_INT_STAT_1)
850
 
851
#define pMXVR_INT_EN_0                  ((volatile unsigned long  *)MXVR_INT_EN_0)
852
#define pMXVR_INT_EN_1                  ((volatile unsigned long  *)MXVR_INT_EN_1)
853
 
854
#define pMXVR_POSITION                  ((volatile unsigned short *)MXVR_POSITION)
855
#define pMXVR_MAX_POSITION              ((volatile unsigned short *)MXVR_MAX_POSITION)
856
 
857
#define pMXVR_DELAY                             ((volatile unsigned short *)MXVR_DELAY)
858
#define pMXVR_MAX_DELAY                 ((volatile unsigned short *)MXVR_MAX_DELAY)
859
 
860
#define pMXVR_LADDR                             ((volatile unsigned long  *)MXVR_LADDR)
861
#define pMXVR_GADDR                             ((volatile unsigned short *)MXVR_GADDR)
862
#define pMXVR_AADDR                             ((volatile unsigned long  *)MXVR_AADDR)
863
 
864
#define pMXVR_ALLOC_0                   ((volatile unsigned long  *)MXVR_ALLOC_0)
865
#define pMXVR_ALLOC_1                   ((volatile unsigned long  *)MXVR_ALLOC_1)
866
#define pMXVR_ALLOC_2                   ((volatile unsigned long  *)MXVR_ALLOC_2)
867
#define pMXVR_ALLOC_3                   ((volatile unsigned long  *)MXVR_ALLOC_3)
868
#define pMXVR_ALLOC_4                   ((volatile unsigned long  *)MXVR_ALLOC_4)
869
#define pMXVR_ALLOC_5                   ((volatile unsigned long  *)MXVR_ALLOC_5)
870
#define pMXVR_ALLOC_6                   ((volatile unsigned long  *)MXVR_ALLOC_6)
871
#define pMXVR_ALLOC_7                   ((volatile unsigned long  *)MXVR_ALLOC_7)
872
#define pMXVR_ALLOC_8                   ((volatile unsigned long  *)MXVR_ALLOC_8)
873
#define pMXVR_ALLOC_9                   ((volatile unsigned long  *)MXVR_ALLOC_9)
874
#define pMXVR_ALLOC_10                  ((volatile unsigned long  *)MXVR_ALLOC_10)
875
#define pMXVR_ALLOC_11                  ((volatile unsigned long  *)MXVR_ALLOC_11)
876
#define pMXVR_ALLOC_12                  ((volatile unsigned long  *)MXVR_ALLOC_12)
877
#define pMXVR_ALLOC_13                  ((volatile unsigned long  *)MXVR_ALLOC_13)
878
#define pMXVR_ALLOC_14                  ((volatile unsigned long  *)MXVR_ALLOC_14)
879
 
880
#define pMXVR_SYNC_LCHAN_0              ((volatile unsigned long  *)MXVR_SYNC_LCHAN_0)
881
#define pMXVR_SYNC_LCHAN_1              ((volatile unsigned long  *)MXVR_SYNC_LCHAN_1)
882
#define pMXVR_SYNC_LCHAN_2              ((volatile unsigned long  *)MXVR_SYNC_LCHAN_2)
883
#define pMXVR_SYNC_LCHAN_3              ((volatile unsigned long  *)MXVR_SYNC_LCHAN_3)
884
#define pMXVR_SYNC_LCHAN_4              ((volatile unsigned long  *)MXVR_SYNC_LCHAN_4)
885
#define pMXVR_SYNC_LCHAN_5              ((volatile unsigned long  *)MXVR_SYNC_LCHAN_5)
886
#define pMXVR_SYNC_LCHAN_6              ((volatile unsigned long  *)MXVR_SYNC_LCHAN_6)
887
#define pMXVR_SYNC_LCHAN_7              ((volatile unsigned long  *)MXVR_SYNC_LCHAN_7)
888
 
889
#define pMXVR_DMA0_CONFIG               ((volatile unsigned long  *)MXVR_DMA0_CONFIG)
890
#define pMXVR_DMA0_START_ADDR   ((void * volatile *)MXVR_DMA0_START_ADDR)
891
#define pMXVR_DMA0_COUNT                ((volatile unsigned short *)MXVR_DMA0_COUNT)
892
#define pMXVR_DMA0_CURR_ADDR    ((void * volatile *)MXVR_DMA0_CURR_ADDR)
893
#define pMXVR_DMA0_CURR_COUNT   ((volatile unsigned short *)MXVR_DMA0_CURR_COUNT)
894
 
895
#define pMXVR_DMA1_CONFIG               ((volatile unsigned long  *)MXVR_DMA1_CONFIG)
896
#define pMXVR_DMA1_START_ADDR   ((void * volatile *)MXVR_DMA1_START_ADDR)
897
#define pMXVR_DMA1_COUNT                ((volatile unsigned short *)MXVR_DMA1_COUNT)
898
#define pMXVR_DMA1_CURR_ADDR    ((void * volatile *)MXVR_DMA1_CURR_ADDR)
899
#define pMXVR_DMA1_CURR_COUNT   ((volatile unsigned short *)MXVR_DMA1_CURR_COUNT)
900
 
901
#define pMXVR_DMA2_CONFIG               ((volatile unsigned long  *)MXVR_DMA2_CONFIG)
902
#define pMXVR_DMA2_START_ADDR   ((void * volatile *)MXVR_DMA2_START_ADDR)
903
#define pMXVR_DMA2_COUNT                ((volatile unsigned short *)MXVR_DMA2_COUNT)
904
#define pMXVR_DMA2_CURR_ADDR    ((void * volatile *)MXVR_DMA2_CURR_ADDR)
905
#define pMXVR_DMA2_CURR_COUNT   ((volatile unsigned short *)MXVR_DMA2_CURR_COUNT)
906
 
907
#define pMXVR_DMA3_CONFIG               ((volatile unsigned long  *)MXVR_DMA3_CONFIG)
908
#define pMXVR_DMA3_START_ADDR   ((void * volatile *)MXVR_DMA3_START_ADDR)
909
#define pMXVR_DMA3_COUNT                ((volatile unsigned short *)MXVR_DMA3_COUNT)
910
#define pMXVR_DMA3_CURR_ADDR    ((void * volatile *)MXVR_DMA3_CURR_ADDR)
911
#define pMXVR_DMA3_CURR_COUNT   ((volatile unsigned short *)MXVR_DMA3_CURR_COUNT)
912
 
913
#define pMXVR_DMA4_CONFIG               ((volatile unsigned long  *)MXVR_DMA4_CONFIG)
914
#define pMXVR_DMA4_START_ADDR   ((void * volatile *)MXVR_DMA4_START_ADDR)
915
#define pMXVR_DMA4_COUNT                ((volatile unsigned short *)MXVR_DMA4_COUNT)
916
#define pMXVR_DMA4_CURR_ADDR    ((void * volatile *)MXVR_DMA4_CURR_ADDR)
917
#define pMXVR_DMA4_CURR_COUNT   ((volatile unsigned short *)MXVR_DMA4_CURR_COUNT)
918
 
919
#define pMXVR_DMA5_CONFIG               ((volatile unsigned long  *)MXVR_DMA5_CONFIG)
920
#define pMXVR_DMA5_START_ADDR   ((void * volatile *)MXVR_DMA5_START_ADDR)
921
#define pMXVR_DMA5_COUNT                ((volatile unsigned short *)MXVR_DMA5_COUNT)
922
#define pMXVR_DMA5_CURR_ADDR    ((void * volatile *)MXVR_DMA5_CURR_ADDR)
923
#define pMXVR_DMA5_CURR_COUNT   ((volatile unsigned short *)MXVR_DMA5_CURR_COUNT)
924
 
925
#define pMXVR_DMA6_CONFIG               ((volatile unsigned long  *)MXVR_DMA6_CONFIG)
926
#define pMXVR_DMA6_START_ADDR   ((void * volatile *)MXVR_DMA6_START_ADDR)
927
#define pMXVR_DMA6_COUNT                ((volatile unsigned short *)MXVR_DMA6_COUNT)
928
#define pMXVR_DMA6_CURR_ADDR    ((void * volatile *)MXVR_DMA6_CURR_ADDR)
929
#define pMXVR_DMA6_CURR_COUNT   ((volatile unsigned short *)MXVR_DMA6_CURR_COUNT)
930
 
931
#define pMXVR_DMA7_CONFIG               ((volatile unsigned long  *)MXVR_DMA7_CONFIG)
932
#define pMXVR_DMA7_START_ADDR   ((void * volatile *)MXVR_DMA7_START_ADDR)
933
#define pMXVR_DMA7_COUNT                ((volatile unsigned short *)MXVR_DMA7_COUNT)
934
#define pMXVR_DMA7_CURR_ADDR    ((void * volatile *)MXVR_DMA7_CURR_ADDR)
935
#define pMXVR_DMA7_CURR_COUNT   ((volatile unsigned short *)MXVR_DMA7_CURR_COUNT)
936
 
937
#define pMXVR_AP_CTL                    ((volatile unsigned short *)MXVR_AP_CTL)
938
#define pMXVR_APRB_START_ADDR   ((void * volatile *)MXVR_APRB_START_ADDR)
939
#define pMXVR_APRB_CURR_ADDR    ((void * volatile *)MXVR_APRB_CURR_ADDR)
940
#define pMXVR_APTB_START_ADDR   ((void * volatile *)MXVR_APTB_START_ADDR)
941
#define pMXVR_APTB_CURR_ADDR    ((void * volatile *)MXVR_APTB_CURR_ADDR)
942
 
943
#define pMXVR_CM_CTL                    ((volatile unsigned long  *)MXVR_CM_CTL)
944
#define pMXVR_CMRB_START_ADDR   ((void * volatile *)MXVR_CMRB_START_ADDR)
945
#define pMXVR_CMRB_CURR_ADDR    ((void * volatile *)MXVR_CMRB_CURR_ADDR)
946
#define pMXVR_CMTB_START_ADDR   ((void * volatile *)MXVR_CMTB_START_ADDR)
947
#define pMXVR_CMTB_CURR_ADDR    ((void * volatile *)MXVR_CMTB_CURR_ADDR)
948
 
949
#define pMXVR_RRDB_START_ADDR   ((void * volatile *)MXVR_RRDB_START_ADDR)
950
#define pMXVR_RRDB_CURR_ADDR    ((void * volatile *)MXVR_RRDB_CURR_ADDR)
951
 
952
#define pMXVR_PAT_DATA_0                ((volatile unsigned long  *)MXVR_PAT_DATA_0)
953
#define pMXVR_PAT_EN_0                  ((volatile unsigned long  *)MXVR_PAT_EN_0)
954
#define pMXVR_PAT_DATA_1                ((volatile unsigned long  *)MXVR_PAT_DATA_1)
955
#define pMXVR_PAT_EN_1                  ((volatile unsigned long  *)MXVR_PAT_EN_1)
956
 
957
#define pMXVR_FRAME_CNT_0               ((volatile unsigned short *)MXVR_FRAME_CNT_0)
958
#define pMXVR_FRAME_CNT_1               ((volatile unsigned short *)MXVR_FRAME_CNT_1)
959
 
960
#define pMXVR_ROUTING_0                 ((volatile unsigned long  *)MXVR_ROUTING_0)
961
#define pMXVR_ROUTING_1                 ((volatile unsigned long  *)MXVR_ROUTING_1)
962
#define pMXVR_ROUTING_2                 ((volatile unsigned long  *)MXVR_ROUTING_2)
963
#define pMXVR_ROUTING_3                 ((volatile unsigned long  *)MXVR_ROUTING_3)
964
#define pMXVR_ROUTING_4                 ((volatile unsigned long  *)MXVR_ROUTING_4)
965
#define pMXVR_ROUTING_5                 ((volatile unsigned long  *)MXVR_ROUTING_5)
966
#define pMXVR_ROUTING_6                 ((volatile unsigned long  *)MXVR_ROUTING_6)
967
#define pMXVR_ROUTING_7                 ((volatile unsigned long  *)MXVR_ROUTING_7)
968
#define pMXVR_ROUTING_8                 ((volatile unsigned long  *)MXVR_ROUTING_8)
969
#define pMXVR_ROUTING_9                 ((volatile unsigned long  *)MXVR_ROUTING_9)
970
#define pMXVR_ROUTING_10                ((volatile unsigned long  *)MXVR_ROUTING_10)
971
#define pMXVR_ROUTING_11                ((volatile unsigned long  *)MXVR_ROUTING_11)
972
#define pMXVR_ROUTING_12                ((volatile unsigned long  *)MXVR_ROUTING_12)
973
#define pMXVR_ROUTING_13                ((volatile unsigned long  *)MXVR_ROUTING_13)
974
#define pMXVR_ROUTING_14                ((volatile unsigned long  *)MXVR_ROUTING_14)
975
 
976
#define pMXVR_PLL_CTL_1                 ((volatile unsigned long  *)MXVR_PLL_CTL_1)
977
#define pMXVR_PLL_CTL_2                 ((volatile unsigned short *)MXVR_PLL_CTL_2)
978
 
979
#define pMXVR_BLOCK_CNT                 ((volatile unsigned short *)MXVR_BLOCK_CNT)
980
 
981
 
982
/* CAN Controller                                               */
983
/* For Mailboxes 0-15                                                                                                   */
984
#define pCAN_MC1                        ((volatile unsigned short *)CAN_MC1)
985
#define pCAN_MD1                        ((volatile unsigned short *)CAN_MD1)
986
#define pCAN_TRS1                       ((volatile unsigned short *)CAN_TRS1)
987
#define pCAN_TRR1                       ((volatile unsigned short *)CAN_TRR1)
988
#define pCAN_TA1                        ((volatile unsigned short *)CAN_TA1)
989
#define pCAN_AA1                        ((volatile unsigned short *)CAN_AA1)
990
#define pCAN_RMP1                       ((volatile unsigned short *)CAN_RMP1)
991
#define pCAN_RML1                       ((volatile unsigned short *)CAN_RML1)
992
#define pCAN_MBTIF1                     ((volatile unsigned short *)CAN_MBTIF1)
993
#define pCAN_MBRIF1                     ((volatile unsigned short *)CAN_MBRIF1)
994
#define pCAN_MBIM1                      ((volatile unsigned short *)CAN_MBIM1)
995
#define pCAN_RFH1                       ((volatile unsigned short *)CAN_RFH1)
996
#define pCAN_OPSS1                      ((volatile unsigned short *)CAN_OPSS1)
997
 
998
/* For Mailboxes 16-31                                                                                                  */
999
#define pCAN_MC2                        ((volatile unsigned short *)CAN_MC2)
1000
#define pCAN_MD2                        ((volatile unsigned short *)CAN_MD2)
1001
#define pCAN_TRS2                       ((volatile unsigned short *)CAN_TRS2)
1002
#define pCAN_TRR2                       ((volatile unsigned short *)CAN_TRR2)
1003
#define pCAN_TA2                        ((volatile unsigned short *)CAN_TA2)
1004
#define pCAN_AA2                        ((volatile unsigned short *)CAN_AA2)
1005
#define pCAN_RMP2                       ((volatile unsigned short *)CAN_RMP2)
1006
#define pCAN_RML2                       ((volatile unsigned short *)CAN_RML2)
1007
#define pCAN_MBTIF2                     ((volatile unsigned short *)CAN_MBTIF2)
1008
#define pCAN_MBRIF2                     ((volatile unsigned short *)CAN_MBRIF2)
1009
#define pCAN_MBIM2                      ((volatile unsigned short *)CAN_MBIM2)
1010
#define pCAN_RFH2                       ((volatile unsigned short *)CAN_RFH2)
1011
#define pCAN_OPSS2                      ((volatile unsigned short *)CAN_OPSS2)
1012
 
1013
#define pCAN_CLOCK                      ((volatile unsigned short *)CAN_CLOCK)
1014
#define pCAN_TIMING                     ((volatile unsigned short *)CAN_TIMING)
1015
#define pCAN_DEBUG                      ((volatile unsigned short *)CAN_DEBUG)
1016
#define pCAN_STATUS                     ((volatile unsigned short *)CAN_STATUS)
1017
#define pCAN_CEC                        ((volatile unsigned short *)CAN_CEC)
1018
#define pCAN_GIS                        ((volatile unsigned short *)CAN_GIS)
1019
#define pCAN_GIM                        ((volatile unsigned short *)CAN_GIM)
1020
#define pCAN_GIF                        ((volatile unsigned short *)CAN_GIF)
1021
#define pCAN_CONTROL            ((volatile unsigned short *)CAN_CONTROL)
1022
#define pCAN_INTR                       ((volatile unsigned short *)CAN_INTR)
1023
#define pCAN_MBTD                       ((volatile unsigned short *)CAN_MBTD)
1024
#define pCAN_EWR                        ((volatile unsigned short *)CAN_EWR)
1025
#define pCAN_ESR                        ((volatile unsigned short *)CAN_ESR)
1026
#define pCAN_UCREG                      ((volatile unsigned short *)CAN_UCREG)
1027
#define pCAN_UCCNT                      ((volatile unsigned short *)CAN_UCCNT)
1028
#define pCAN_UCRC                       ((volatile unsigned short *)CAN_UCRC)
1029
#define pCAN_UCCNF                      ((volatile unsigned short *)CAN_UCCNF)
1030
 
1031
/* Mailbox Acceptance Masks                                                                                     */
1032
#define pCAN_AM00L                      ((volatile unsigned short *)CAN_AM00L)
1033
#define pCAN_AM00H                      ((volatile unsigned short *)CAN_AM00H)
1034
#define pCAN_AM01L                      ((volatile unsigned short *)CAN_AM01L)
1035
#define pCAN_AM01H                      ((volatile unsigned short *)CAN_AM01H)
1036
#define pCAN_AM02L                      ((volatile unsigned short *)CAN_AM02L)
1037
#define pCAN_AM02H                      ((volatile unsigned short *)CAN_AM02H)
1038
#define pCAN_AM03L                      ((volatile unsigned short *)CAN_AM03L)
1039
#define pCAN_AM03H                      ((volatile unsigned short *)CAN_AM03H)
1040
#define pCAN_AM04L                      ((volatile unsigned short *)CAN_AM04L)
1041
#define pCAN_AM04H                      ((volatile unsigned short *)CAN_AM04H)
1042
#define pCAN_AM05L                      ((volatile unsigned short *)CAN_AM05L)
1043
#define pCAN_AM05H                      ((volatile unsigned short *)CAN_AM05H)
1044
#define pCAN_AM06L                      ((volatile unsigned short *)CAN_AM06L)
1045
#define pCAN_AM06H                      ((volatile unsigned short *)CAN_AM06H)
1046
#define pCAN_AM07L                      ((volatile unsigned short *)CAN_AM07L)
1047
#define pCAN_AM07H                      ((volatile unsigned short *)CAN_AM07H)
1048
#define pCAN_AM08L                      ((volatile unsigned short *)CAN_AM08L)
1049
#define pCAN_AM08H                      ((volatile unsigned short *)CAN_AM08H)
1050
#define pCAN_AM09L                      ((volatile unsigned short *)CAN_AM09L)
1051
#define pCAN_AM09H                      ((volatile unsigned short *)CAN_AM09H)
1052
#define pCAN_AM10L                      ((volatile unsigned short *)CAN_AM10L)
1053
#define pCAN_AM10H                      ((volatile unsigned short *)CAN_AM10H)
1054
#define pCAN_AM11L                      ((volatile unsigned short *)CAN_AM11L)
1055
#define pCAN_AM11H                      ((volatile unsigned short *)CAN_AM11H)
1056
#define pCAN_AM12L                      ((volatile unsigned short *)CAN_AM12L)
1057
#define pCAN_AM12H                      ((volatile unsigned short *)CAN_AM12H)
1058
#define pCAN_AM13L                      ((volatile unsigned short *)CAN_AM13L)
1059
#define pCAN_AM13H                      ((volatile unsigned short *)CAN_AM13H)
1060
#define pCAN_AM14L                      ((volatile unsigned short *)CAN_AM14L)
1061
#define pCAN_AM14H                      ((volatile unsigned short *)CAN_AM14H)
1062
#define pCAN_AM15L                      ((volatile unsigned short *)CAN_AM15L)
1063
#define pCAN_AM15H                      ((volatile unsigned short *)CAN_AM15H)
1064
 
1065
#define pCAN_AM16L                      ((volatile unsigned short *)CAN_AM16L)
1066
#define pCAN_AM16H                      ((volatile unsigned short *)CAN_AM16H)
1067
#define pCAN_AM17L                      ((volatile unsigned short *)CAN_AM17L)
1068
#define pCAN_AM17H                      ((volatile unsigned short *)CAN_AM17H)
1069
#define pCAN_AM18L                      ((volatile unsigned short *)CAN_AM18L)
1070
#define pCAN_AM18H                      ((volatile unsigned short *)CAN_AM18H)
1071
#define pCAN_AM19L                      ((volatile unsigned short *)CAN_AM19L)
1072
#define pCAN_AM19H                      ((volatile unsigned short *)CAN_AM19H)
1073
#define pCAN_AM20L                      ((volatile unsigned short *)CAN_AM20L)
1074
#define pCAN_AM20H                      ((volatile unsigned short *)CAN_AM20H)
1075
#define pCAN_AM21L                      ((volatile unsigned short *)CAN_AM21L)
1076
#define pCAN_AM21H                      ((volatile unsigned short *)CAN_AM21H)
1077
#define pCAN_AM22L                      ((volatile unsigned short *)CAN_AM22L)
1078
#define pCAN_AM22H                      ((volatile unsigned short *)CAN_AM22H)
1079
#define pCAN_AM23L                      ((volatile unsigned short *)CAN_AM23L)
1080
#define pCAN_AM23H                      ((volatile unsigned short *)CAN_AM23H)
1081
#define pCAN_AM24L                      ((volatile unsigned short *)CAN_AM24L)
1082
#define pCAN_AM24H                      ((volatile unsigned short *)CAN_AM24H)
1083
#define pCAN_AM25L                      ((volatile unsigned short *)CAN_AM25L)
1084
#define pCAN_AM25H                      ((volatile unsigned short *)CAN_AM25H)
1085
#define pCAN_AM26L                      ((volatile unsigned short *)CAN_AM26L)
1086
#define pCAN_AM26H                      ((volatile unsigned short *)CAN_AM26H)
1087
#define pCAN_AM27L                      ((volatile unsigned short *)CAN_AM27L)
1088
#define pCAN_AM27H                      ((volatile unsigned short *)CAN_AM27H)
1089
#define pCAN_AM28L                      ((volatile unsigned short *)CAN_AM28L)
1090
#define pCAN_AM28H                      ((volatile unsigned short *)CAN_AM28H)
1091
#define pCAN_AM29L                      ((volatile unsigned short *)CAN_AM29L)
1092
#define pCAN_AM29H                      ((volatile unsigned short *)CAN_AM29H)
1093
#define pCAN_AM30L                      ((volatile unsigned short *)CAN_AM30L)
1094
#define pCAN_AM30H                      ((volatile unsigned short *)CAN_AM30H)
1095
#define pCAN_AM31L                      ((volatile unsigned short *)CAN_AM31L)
1096
#define pCAN_AM31H                      ((volatile unsigned short *)CAN_AM31H)
1097
 
1098
/* CAN Acceptance Mask Area Macros      */
1099
#define pCAN_AM_L(x)            ((volatile unsigned short *)CAN_AM_L(x))
1100
#define pCAN_AM_H(x)            ((volatile unsigned short *)CAN_AM_H(x))
1101
 
1102
/* Mailbox Registers                                                                                                            */
1103
#define pCAN_MB00_DATA0         ((volatile unsigned short *)CAN_MB00_DATA0)
1104
#define pCAN_MB00_DATA1         ((volatile unsigned short *)CAN_MB00_DATA1)
1105
#define pCAN_MB00_DATA2         ((volatile unsigned short *)CAN_MB00_DATA2)
1106
#define pCAN_MB00_DATA3         ((volatile unsigned short *)CAN_MB00_DATA3)
1107
#define pCAN_MB00_LENGTH        ((volatile unsigned short *)CAN_MB00_LENGTH)
1108
#define pCAN_MB00_TIMESTAMP     ((volatile unsigned short *)CAN_MB00_TIMESTAMP)
1109
#define pCAN_MB00_ID0           ((volatile unsigned short *)CAN_MB00_ID0)
1110
#define pCAN_MB00_ID1           ((volatile unsigned short *)CAN_MB00_ID1)
1111
 
1112
#define pCAN_MB01_DATA0         ((volatile unsigned short *)CAN_MB01_DATA0)
1113
#define pCAN_MB01_DATA1         ((volatile unsigned short *)CAN_MB01_DATA1)
1114
#define pCAN_MB01_DATA2         ((volatile unsigned short *)CAN_MB01_DATA2)
1115
#define pCAN_MB01_DATA3         ((volatile unsigned short *)CAN_MB01_DATA3)
1116
#define pCAN_MB01_LENGTH        ((volatile unsigned short *)CAN_MB01_LENGTH)
1117
#define pCAN_MB01_TIMESTAMP     ((volatile unsigned short *)CAN_MB01_TIMESTAMP)
1118
#define pCAN_MB01_ID0           ((volatile unsigned short *)CAN_MB01_ID0)
1119
#define pCAN_MB01_ID1           ((volatile unsigned short *)CAN_MB01_ID1)
1120
 
1121
#define pCAN_MB02_DATA0         ((volatile unsigned short *)CAN_MB02_DATA0)
1122
#define pCAN_MB02_DATA1         ((volatile unsigned short *)CAN_MB02_DATA1)
1123
#define pCAN_MB02_DATA2         ((volatile unsigned short *)CAN_MB02_DATA2)
1124
#define pCAN_MB02_DATA3         ((volatile unsigned short *)CAN_MB02_DATA3)
1125
#define pCAN_MB02_LENGTH        ((volatile unsigned short *)CAN_MB02_LENGTH)
1126
#define pCAN_MB02_TIMESTAMP     ((volatile unsigned short *)CAN_MB02_TIMESTAMP)
1127
#define pCAN_MB02_ID0           ((volatile unsigned short *)CAN_MB02_ID0)
1128
#define pCAN_MB02_ID1           ((volatile unsigned short *)CAN_MB02_ID1)
1129
 
1130
#define pCAN_MB03_DATA0         ((volatile unsigned short *)CAN_MB03_DATA0)
1131
#define pCAN_MB03_DATA1         ((volatile unsigned short *)CAN_MB03_DATA1)
1132
#define pCAN_MB03_DATA2         ((volatile unsigned short *)CAN_MB03_DATA2)
1133
#define pCAN_MB03_DATA3         ((volatile unsigned short *)CAN_MB03_DATA3)
1134
#define pCAN_MB03_LENGTH        ((volatile unsigned short *)CAN_MB03_LENGTH)
1135
#define pCAN_MB03_TIMESTAMP     ((volatile unsigned short *)CAN_MB03_TIMESTAMP)
1136
#define pCAN_MB03_ID0           ((volatile unsigned short *)CAN_MB03_ID0)
1137
#define pCAN_MB03_ID1           ((volatile unsigned short *)CAN_MB03_ID1)
1138
 
1139
#define pCAN_MB04_DATA0         ((volatile unsigned short *)CAN_MB04_DATA0)
1140
#define pCAN_MB04_DATA1         ((volatile unsigned short *)CAN_MB04_DATA1)
1141
#define pCAN_MB04_DATA2         ((volatile unsigned short *)CAN_MB04_DATA2)
1142
#define pCAN_MB04_DATA3         ((volatile unsigned short *)CAN_MB04_DATA3)
1143
#define pCAN_MB04_LENGTH        ((volatile unsigned short *)CAN_MB04_LENGTH)
1144
#define pCAN_MB04_TIMESTAMP     ((volatile unsigned short *)CAN_MB04_TIMESTAMP)
1145
#define pCAN_MB04_ID0           ((volatile unsigned short *)CAN_MB04_ID0)
1146
#define pCAN_MB04_ID1           ((volatile unsigned short *)CAN_MB04_ID1)
1147
 
1148
#define pCAN_MB05_DATA0         ((volatile unsigned short *)CAN_MB05_DATA0)
1149
#define pCAN_MB05_DATA1         ((volatile unsigned short *)CAN_MB05_DATA1)
1150
#define pCAN_MB05_DATA2         ((volatile unsigned short *)CAN_MB05_DATA2)
1151
#define pCAN_MB05_DATA3         ((volatile unsigned short *)CAN_MB05_DATA3)
1152
#define pCAN_MB05_LENGTH        ((volatile unsigned short *)CAN_MB05_LENGTH)
1153
#define pCAN_MB05_TIMESTAMP     ((volatile unsigned short *)CAN_MB05_TIMESTAMP)
1154
#define pCAN_MB05_ID0           ((volatile unsigned short *)CAN_MB05_ID0)
1155
#define pCAN_MB05_ID1           ((volatile unsigned short *)CAN_MB05_ID1)
1156
 
1157
#define pCAN_MB06_DATA0         ((volatile unsigned short *)CAN_MB06_DATA0)
1158
#define pCAN_MB06_DATA1         ((volatile unsigned short *)CAN_MB06_DATA1)
1159
#define pCAN_MB06_DATA2         ((volatile unsigned short *)CAN_MB06_DATA2)
1160
#define pCAN_MB06_DATA3         ((volatile unsigned short *)CAN_MB06_DATA3)
1161
#define pCAN_MB06_LENGTH        ((volatile unsigned short *)CAN_MB06_LENGTH)
1162
#define pCAN_MB06_TIMESTAMP     ((volatile unsigned short *)CAN_MB06_TIMESTAMP)
1163
#define pCAN_MB06_ID0           ((volatile unsigned short *)CAN_MB06_ID0)
1164
#define pCAN_MB06_ID1           ((volatile unsigned short *)CAN_MB06_ID1)
1165
 
1166
#define pCAN_MB07_DATA0         ((volatile unsigned short *)CAN_MB07_DATA0)
1167
#define pCAN_MB07_DATA1         ((volatile unsigned short *)CAN_MB07_DATA1)
1168
#define pCAN_MB07_DATA2         ((volatile unsigned short *)CAN_MB07_DATA2)
1169
#define pCAN_MB07_DATA3         ((volatile unsigned short *)CAN_MB07_DATA3)
1170
#define pCAN_MB07_LENGTH        ((volatile unsigned short *)CAN_MB07_LENGTH)
1171
#define pCAN_MB07_TIMESTAMP     ((volatile unsigned short *)CAN_MB07_TIMESTAMP)
1172
#define pCAN_MB07_ID0           ((volatile unsigned short *)CAN_MB07_ID0)
1173
#define pCAN_MB07_ID1           ((volatile unsigned short *)CAN_MB07_ID1)
1174
 
1175
#define pCAN_MB08_DATA0         ((volatile unsigned short *)CAN_MB08_DATA0)
1176
#define pCAN_MB08_DATA1         ((volatile unsigned short *)CAN_MB08_DATA1)
1177
#define pCAN_MB08_DATA2         ((volatile unsigned short *)CAN_MB08_DATA2)
1178
#define pCAN_MB08_DATA3         ((volatile unsigned short *)CAN_MB08_DATA3)
1179
#define pCAN_MB08_LENGTH        ((volatile unsigned short *)CAN_MB08_LENGTH)
1180
#define pCAN_MB08_TIMESTAMP     ((volatile unsigned short *)CAN_MB08_TIMESTAMP)
1181
#define pCAN_MB08_ID0           ((volatile unsigned short *)CAN_MB08_ID0)
1182
#define pCAN_MB08_ID1           ((volatile unsigned short *)CAN_MB08_ID1)
1183
 
1184
#define pCAN_MB09_DATA0         ((volatile unsigned short *)CAN_MB09_DATA0)
1185
#define pCAN_MB09_DATA1         ((volatile unsigned short *)CAN_MB09_DATA1)
1186
#define pCAN_MB09_DATA2         ((volatile unsigned short *)CAN_MB09_DATA2)
1187
#define pCAN_MB09_DATA3         ((volatile unsigned short *)CAN_MB09_DATA3)
1188
#define pCAN_MB09_LENGTH        ((volatile unsigned short *)CAN_MB09_LENGTH)
1189
#define pCAN_MB09_TIMESTAMP     ((volatile unsigned short *)CAN_MB09_TIMESTAMP)
1190
#define pCAN_MB09_ID0           ((volatile unsigned short *)CAN_MB09_ID0)
1191
#define pCAN_MB09_ID1           ((volatile unsigned short *)CAN_MB09_ID1)
1192
 
1193
#define pCAN_MB10_DATA0         ((volatile unsigned short *)CAN_MB10_DATA0)
1194
#define pCAN_MB10_DATA1         ((volatile unsigned short *)CAN_MB10_DATA1)
1195
#define pCAN_MB10_DATA2         ((volatile unsigned short *)CAN_MB10_DATA2)
1196
#define pCAN_MB10_DATA3         ((volatile unsigned short *)CAN_MB10_DATA3)
1197
#define pCAN_MB10_LENGTH        ((volatile unsigned short *)CAN_MB10_LENGTH)
1198
#define pCAN_MB10_TIMESTAMP     ((volatile unsigned short *)CAN_MB10_TIMESTAMP)
1199
#define pCAN_MB10_ID0           ((volatile unsigned short *)CAN_MB10_ID0)
1200
#define pCAN_MB10_ID1           ((volatile unsigned short *)CAN_MB10_ID1)
1201
 
1202
#define pCAN_MB11_DATA0         ((volatile unsigned short *)CAN_MB11_DATA0)
1203
#define pCAN_MB11_DATA1         ((volatile unsigned short *)CAN_MB11_DATA1)
1204
#define pCAN_MB11_DATA2         ((volatile unsigned short *)CAN_MB11_DATA2)
1205
#define pCAN_MB11_DATA3         ((volatile unsigned short *)CAN_MB11_DATA3)
1206
#define pCAN_MB11_LENGTH        ((volatile unsigned short *)CAN_MB11_LENGTH)
1207
#define pCAN_MB11_TIMESTAMP     ((volatile unsigned short *)CAN_MB11_TIMESTAMP)
1208
#define pCAN_MB11_ID0           ((volatile unsigned short *)CAN_MB11_ID0)
1209
#define pCAN_MB11_ID1           ((volatile unsigned short *)CAN_MB11_ID1)
1210
 
1211
#define pCAN_MB12_DATA0         ((volatile unsigned short *)CAN_MB12_DATA0)
1212
#define pCAN_MB12_DATA1         ((volatile unsigned short *)CAN_MB12_DATA1)
1213
#define pCAN_MB12_DATA2         ((volatile unsigned short *)CAN_MB12_DATA2)
1214
#define pCAN_MB12_DATA3         ((volatile unsigned short *)CAN_MB12_DATA3)
1215
#define pCAN_MB12_LENGTH        ((volatile unsigned short *)CAN_MB12_LENGTH)
1216
#define pCAN_MB12_TIMESTAMP     ((volatile unsigned short *)CAN_MB12_TIMESTAMP)
1217
#define pCAN_MB12_ID0           ((volatile unsigned short *)CAN_MB12_ID0)
1218
#define pCAN_MB12_ID1           ((volatile unsigned short *)CAN_MB12_ID1)
1219
 
1220
#define pCAN_MB13_DATA0         ((volatile unsigned short *)CAN_MB13_DATA0)
1221
#define pCAN_MB13_DATA1         ((volatile unsigned short *)CAN_MB13_DATA1)
1222
#define pCAN_MB13_DATA2         ((volatile unsigned short *)CAN_MB13_DATA2)
1223
#define pCAN_MB13_DATA3         ((volatile unsigned short *)CAN_MB13_DATA3)
1224
#define pCAN_MB13_LENGTH        ((volatile unsigned short *)CAN_MB13_LENGTH)
1225
#define pCAN_MB13_TIMESTAMP     ((volatile unsigned short *)CAN_MB13_TIMESTAMP)
1226
#define pCAN_MB13_ID0           ((volatile unsigned short *)CAN_MB13_ID0)
1227
#define pCAN_MB13_ID1           ((volatile unsigned short *)CAN_MB13_ID1)
1228
 
1229
#define pCAN_MB14_DATA0         ((volatile unsigned short *)CAN_MB14_DATA0)
1230
#define pCAN_MB14_DATA1         ((volatile unsigned short *)CAN_MB14_DATA1)
1231
#define pCAN_MB14_DATA2         ((volatile unsigned short *)CAN_MB14_DATA2)
1232
#define pCAN_MB14_DATA3         ((volatile unsigned short *)CAN_MB14_DATA3)
1233
#define pCAN_MB14_LENGTH        ((volatile unsigned short *)CAN_MB14_LENGTH)
1234
#define pCAN_MB14_TIMESTAMP     ((volatile unsigned short *)CAN_MB14_TIMESTAMP)
1235
#define pCAN_MB14_ID0           ((volatile unsigned short *)CAN_MB14_ID0)
1236
#define pCAN_MB14_ID1           ((volatile unsigned short *)CAN_MB14_ID1)
1237
 
1238
#define pCAN_MB15_DATA0         ((volatile unsigned short *)CAN_MB15_DATA0)
1239
#define pCAN_MB15_DATA1         ((volatile unsigned short *)CAN_MB15_DATA1)
1240
#define pCAN_MB15_DATA2         ((volatile unsigned short *)CAN_MB15_DATA2)
1241
#define pCAN_MB15_DATA3         ((volatile unsigned short *)CAN_MB15_DATA3)
1242
#define pCAN_MB15_LENGTH        ((volatile unsigned short *)CAN_MB15_LENGTH)
1243
#define pCAN_MB15_TIMESTAMP     ((volatile unsigned short *)CAN_MB15_TIMESTAMP)
1244
#define pCAN_MB15_ID0           ((volatile unsigned short *)CAN_MB15_ID0)
1245
#define pCAN_MB15_ID1           ((volatile unsigned short *)CAN_MB15_ID1)
1246
 
1247
#define pCAN_MB16_DATA0         ((volatile unsigned short *)CAN_MB16_DATA0)
1248
#define pCAN_MB16_DATA1         ((volatile unsigned short *)CAN_MB16_DATA1)
1249
#define pCAN_MB16_DATA2         ((volatile unsigned short *)CAN_MB16_DATA2)
1250
#define pCAN_MB16_DATA3         ((volatile unsigned short *)CAN_MB16_DATA3)
1251
#define pCAN_MB16_LENGTH        ((volatile unsigned short *)CAN_MB16_LENGTH)
1252
#define pCAN_MB16_TIMESTAMP     ((volatile unsigned short *)CAN_MB16_TIMESTAMP)
1253
#define pCAN_MB16_ID0           ((volatile unsigned short *)CAN_MB16_ID0)
1254
#define pCAN_MB16_ID1           ((volatile unsigned short *)CAN_MB16_ID1)
1255
 
1256
#define pCAN_MB17_DATA0         ((volatile unsigned short *)CAN_MB17_DATA0)
1257
#define pCAN_MB17_DATA1         ((volatile unsigned short *)CAN_MB17_DATA1)
1258
#define pCAN_MB17_DATA2         ((volatile unsigned short *)CAN_MB17_DATA2)
1259
#define pCAN_MB17_DATA3         ((volatile unsigned short *)CAN_MB17_DATA3)
1260
#define pCAN_MB17_LENGTH        ((volatile unsigned short *)CAN_MB17_LENGTH)
1261
#define pCAN_MB17_TIMESTAMP     ((volatile unsigned short *)CAN_MB17_TIMESTAMP)
1262
#define pCAN_MB17_ID0           ((volatile unsigned short *)CAN_MB17_ID0)
1263
#define pCAN_MB17_ID1           ((volatile unsigned short *)CAN_MB17_ID1)
1264
 
1265
#define pCAN_MB18_DATA0         ((volatile unsigned short *)CAN_MB18_DATA0)
1266
#define pCAN_MB18_DATA1         ((volatile unsigned short *)CAN_MB18_DATA1)
1267
#define pCAN_MB18_DATA2         ((volatile unsigned short *)CAN_MB18_DATA2)
1268
#define pCAN_MB18_DATA3         ((volatile unsigned short *)CAN_MB18_DATA3)
1269
#define pCAN_MB18_LENGTH        ((volatile unsigned short *)CAN_MB18_LENGTH)
1270
#define pCAN_MB18_TIMESTAMP     ((volatile unsigned short *)CAN_MB18_TIMESTAMP)
1271
#define pCAN_MB18_ID0           ((volatile unsigned short *)CAN_MB18_ID0)
1272
#define pCAN_MB18_ID1           ((volatile unsigned short *)CAN_MB18_ID1)
1273
 
1274
#define pCAN_MB19_DATA0         ((volatile unsigned short *)CAN_MB19_DATA0)
1275
#define pCAN_MB19_DATA1         ((volatile unsigned short *)CAN_MB19_DATA1)
1276
#define pCAN_MB19_DATA2         ((volatile unsigned short *)CAN_MB19_DATA2)
1277
#define pCAN_MB19_DATA3         ((volatile unsigned short *)CAN_MB19_DATA3)
1278
#define pCAN_MB19_LENGTH        ((volatile unsigned short *)CAN_MB19_LENGTH)
1279
#define pCAN_MB19_TIMESTAMP     ((volatile unsigned short *)CAN_MB19_TIMESTAMP)
1280
#define pCAN_MB19_ID0           ((volatile unsigned short *)CAN_MB19_ID0)
1281
#define pCAN_MB19_ID1           ((volatile unsigned short *)CAN_MB19_ID1)
1282
 
1283
#define pCAN_MB20_DATA0         ((volatile unsigned short *)CAN_MB20_DATA0)
1284
#define pCAN_MB20_DATA1         ((volatile unsigned short *)CAN_MB20_DATA1)
1285
#define pCAN_MB20_DATA2         ((volatile unsigned short *)CAN_MB20_DATA2)
1286
#define pCAN_MB20_DATA3         ((volatile unsigned short *)CAN_MB20_DATA3)
1287
#define pCAN_MB20_LENGTH        ((volatile unsigned short *)CAN_MB20_LENGTH)
1288
#define pCAN_MB20_TIMESTAMP     ((volatile unsigned short *)CAN_MB20_TIMESTAMP)
1289
#define pCAN_MB20_ID0           ((volatile unsigned short *)CAN_MB20_ID0)
1290
#define pCAN_MB20_ID1           ((volatile unsigned short *)CAN_MB20_ID1)
1291
 
1292
#define pCAN_MB21_DATA0         ((volatile unsigned short *)CAN_MB21_DATA0)
1293
#define pCAN_MB21_DATA1         ((volatile unsigned short *)CAN_MB21_DATA1)
1294
#define pCAN_MB21_DATA2         ((volatile unsigned short *)CAN_MB21_DATA2)
1295
#define pCAN_MB21_DATA3         ((volatile unsigned short *)CAN_MB21_DATA3)
1296
#define pCAN_MB21_LENGTH        ((volatile unsigned short *)CAN_MB21_LENGTH)
1297
#define pCAN_MB21_TIMESTAMP     ((volatile unsigned short *)CAN_MB21_TIMESTAMP)
1298
#define pCAN_MB21_ID0           ((volatile unsigned short *)CAN_MB21_ID0)
1299
#define pCAN_MB21_ID1           ((volatile unsigned short *)CAN_MB21_ID1)
1300
 
1301
#define pCAN_MB22_DATA0         ((volatile unsigned short *)CAN_MB22_DATA0)
1302
#define pCAN_MB22_DATA1         ((volatile unsigned short *)CAN_MB22_DATA1)
1303
#define pCAN_MB22_DATA2         ((volatile unsigned short *)CAN_MB22_DATA2)
1304
#define pCAN_MB22_DATA3         ((volatile unsigned short *)CAN_MB22_DATA3)
1305
#define pCAN_MB22_LENGTH        ((volatile unsigned short *)CAN_MB22_LENGTH)
1306
#define pCAN_MB22_TIMESTAMP     ((volatile unsigned short *)CAN_MB22_TIMESTAMP)
1307
#define pCAN_MB22_ID0           ((volatile unsigned short *)CAN_MB22_ID0)
1308
#define pCAN_MB22_ID1           ((volatile unsigned short *)CAN_MB22_ID1)
1309
 
1310
#define pCAN_MB23_DATA0         ((volatile unsigned short *)CAN_MB23_DATA0)
1311
#define pCAN_MB23_DATA1         ((volatile unsigned short *)CAN_MB23_DATA1)
1312
#define pCAN_MB23_DATA2         ((volatile unsigned short *)CAN_MB23_DATA2)
1313
#define pCAN_MB23_DATA3         ((volatile unsigned short *)CAN_MB23_DATA3)
1314
#define pCAN_MB23_LENGTH        ((volatile unsigned short *)CAN_MB23_LENGTH)
1315
#define pCAN_MB23_TIMESTAMP     ((volatile unsigned short *)CAN_MB23_TIMESTAMP)
1316
#define pCAN_MB23_ID0           ((volatile unsigned short *)CAN_MB23_ID0)
1317
#define pCAN_MB23_ID1           ((volatile unsigned short *)CAN_MB23_ID1)
1318
 
1319
#define pCAN_MB24_DATA0         ((volatile unsigned short *)CAN_MB24_DATA0)
1320
#define pCAN_MB24_DATA1         ((volatile unsigned short *)CAN_MB24_DATA1)
1321
#define pCAN_MB24_DATA2         ((volatile unsigned short *)CAN_MB24_DATA2)
1322
#define pCAN_MB24_DATA3         ((volatile unsigned short *)CAN_MB24_DATA3)
1323
#define pCAN_MB24_LENGTH        ((volatile unsigned short *)CAN_MB24_LENGTH)
1324
#define pCAN_MB24_TIMESTAMP     ((volatile unsigned short *)CAN_MB24_TIMESTAMP)
1325
#define pCAN_MB24_ID0           ((volatile unsigned short *)CAN_MB24_ID0)
1326
#define pCAN_MB24_ID1           ((volatile unsigned short *)CAN_MB24_ID1)
1327
 
1328
#define pCAN_MB25_DATA0         ((volatile unsigned short *)CAN_MB25_DATA0)
1329
#define pCAN_MB25_DATA1         ((volatile unsigned short *)CAN_MB25_DATA1)
1330
#define pCAN_MB25_DATA2         ((volatile unsigned short *)CAN_MB25_DATA2)
1331
#define pCAN_MB25_DATA3         ((volatile unsigned short *)CAN_MB25_DATA3)
1332
#define pCAN_MB25_LENGTH        ((volatile unsigned short *)CAN_MB25_LENGTH)
1333
#define pCAN_MB25_TIMESTAMP     ((volatile unsigned short *)CAN_MB25_TIMESTAMP)
1334
#define pCAN_MB25_ID0           ((volatile unsigned short *)CAN_MB25_ID0)
1335
#define pCAN_MB25_ID1           ((volatile unsigned short *)CAN_MB25_ID1)
1336
 
1337
#define pCAN_MB26_DATA0         ((volatile unsigned short *)CAN_MB26_DATA0)
1338
#define pCAN_MB26_DATA1         ((volatile unsigned short *)CAN_MB26_DATA1)
1339
#define pCAN_MB26_DATA2         ((volatile unsigned short *)CAN_MB26_DATA2)
1340
#define pCAN_MB26_DATA3         ((volatile unsigned short *)CAN_MB26_DATA3)
1341
#define pCAN_MB26_LENGTH        ((volatile unsigned short *)CAN_MB26_LENGTH)
1342
#define pCAN_MB26_TIMESTAMP     ((volatile unsigned short *)CAN_MB26_TIMESTAMP)
1343
#define pCAN_MB26_ID0           ((volatile unsigned short *)CAN_MB26_ID0)
1344
#define pCAN_MB26_ID1           ((volatile unsigned short *)CAN_MB26_ID1)
1345
 
1346
#define pCAN_MB27_DATA0         ((volatile unsigned short *)CAN_MB27_DATA0)
1347
#define pCAN_MB27_DATA1         ((volatile unsigned short *)CAN_MB27_DATA1)
1348
#define pCAN_MB27_DATA2         ((volatile unsigned short *)CAN_MB27_DATA2)
1349
#define pCAN_MB27_DATA3         ((volatile unsigned short *)CAN_MB27_DATA3)
1350
#define pCAN_MB27_LENGTH        ((volatile unsigned short *)CAN_MB27_LENGTH)
1351
#define pCAN_MB27_TIMESTAMP     ((volatile unsigned short *)CAN_MB27_TIMESTAMP)
1352
#define pCAN_MB27_ID0           ((volatile unsigned short *)CAN_MB27_ID0)
1353
#define pCAN_MB27_ID1           ((volatile unsigned short *)CAN_MB27_ID1)
1354
 
1355
#define pCAN_MB28_DATA0         ((volatile unsigned short *)CAN_MB28_DATA0)
1356
#define pCAN_MB28_DATA1         ((volatile unsigned short *)CAN_MB28_DATA1)
1357
#define pCAN_MB28_DATA2         ((volatile unsigned short *)CAN_MB28_DATA2)
1358
#define pCAN_MB28_DATA3         ((volatile unsigned short *)CAN_MB28_DATA3)
1359
#define pCAN_MB28_LENGTH        ((volatile unsigned short *)CAN_MB28_LENGTH)
1360
#define pCAN_MB28_TIMESTAMP     ((volatile unsigned short *)CAN_MB28_TIMESTAMP)
1361
#define pCAN_MB28_ID0           ((volatile unsigned short *)CAN_MB28_ID0)
1362
#define pCAN_MB28_ID1           ((volatile unsigned short *)CAN_MB28_ID1)
1363
 
1364
#define pCAN_MB29_DATA0         ((volatile unsigned short *)CAN_MB29_DATA0)
1365
#define pCAN_MB29_DATA1         ((volatile unsigned short *)CAN_MB29_DATA1)
1366
#define pCAN_MB29_DATA2         ((volatile unsigned short *)CAN_MB29_DATA2)
1367
#define pCAN_MB29_DATA3         ((volatile unsigned short *)CAN_MB29_DATA3)
1368
#define pCAN_MB29_LENGTH        ((volatile unsigned short *)CAN_MB29_LENGTH)
1369
#define pCAN_MB29_TIMESTAMP     ((volatile unsigned short *)CAN_MB29_TIMESTAMP)
1370
#define pCAN_MB29_ID0           ((volatile unsigned short *)CAN_MB29_ID0)
1371
#define pCAN_MB29_ID1           ((volatile unsigned short *)CAN_MB29_ID1)
1372
 
1373
#define pCAN_MB30_DATA0         ((volatile unsigned short *)CAN_MB30_DATA0)
1374
#define pCAN_MB30_DATA1         ((volatile unsigned short *)CAN_MB30_DATA1)
1375
#define pCAN_MB30_DATA2         ((volatile unsigned short *)CAN_MB30_DATA2)
1376
#define pCAN_MB30_DATA3         ((volatile unsigned short *)CAN_MB30_DATA3)
1377
#define pCAN_MB30_LENGTH        ((volatile unsigned short *)CAN_MB30_LENGTH)
1378
#define pCAN_MB30_TIMESTAMP     ((volatile unsigned short *)CAN_MB30_TIMESTAMP)
1379
#define pCAN_MB30_ID0           ((volatile unsigned short *)CAN_MB30_ID0)
1380
#define pCAN_MB30_ID1           ((volatile unsigned short *)CAN_MB30_ID1)
1381
 
1382
#define pCAN_MB31_DATA0         ((volatile unsigned short *)CAN_MB31_DATA0)
1383
#define pCAN_MB31_DATA1         ((volatile unsigned short *)CAN_MB31_DATA1)
1384
#define pCAN_MB31_DATA2         ((volatile unsigned short *)CAN_MB31_DATA2)
1385
#define pCAN_MB31_DATA3         ((volatile unsigned short *)CAN_MB31_DATA3)
1386
#define pCAN_MB31_LENGTH        ((volatile unsigned short *)CAN_MB31_LENGTH)
1387
#define pCAN_MB31_TIMESTAMP     ((volatile unsigned short *)CAN_MB31_TIMESTAMP)
1388
#define pCAN_MB31_ID0           ((volatile unsigned short *)CAN_MB31_ID0)
1389
#define pCAN_MB31_ID1           ((volatile unsigned short *)CAN_MB31_ID1)
1390
 
1391
 
1392
/* CAN Mailbox Area Macros              */
1393
#define pCAN_MB_ID1(x)                  ((volatile unsigned short *)CAN_MB_ID1(x))
1394
#define pCAN_MB_ID0(x)                  ((volatile unsigned short *)CAN_MB_ID0(x))
1395
#define pCAN_MB_TIMESTAMP(x)    ((volatile unsigned short *)CAN_MB_TIMESTAMP(x))
1396
#define pCAN_MB_LENGTH(x)               ((volatile unsigned short *)CAN_MB_LENGTH(x))
1397
#define pCAN_MB_DATA3(x)                ((volatile unsigned short *)CAN_MB_DATA3(x))
1398
#define pCAN_MB_DATA2(x)                ((volatile unsigned short *)CAN_MB_DATA2(x))
1399
#define pCAN_MB_DATA1(x)                ((volatile unsigned short *)CAN_MB_DATA1(x))
1400
#define pCAN_MB_DATA0(x)                ((volatile unsigned short *)CAN_MB_DATA0(x))
1401
 
1402
 
1403
/* Alternate Deprecated Macros Provided For Backwards Code Compatibility */
1404
#define pCAN_CNF                pCAN_DEBUG
1405
#define pTWI0_PRESCALE          pTWI0_CONTROL
1406
#define pTWI0_INT_SRC           pTWI0_INT_STAT
1407
#define pTWI0_INT_ENABLE        pTWI0_INT_MASK
1408
#define pTWI1_PRESCALE          pTWI1_CONTROL
1409
#define pTWI1_INT_SRC           pTWI1_INT_STAT
1410
#define pTWI1_INT_ENABLE        pTWI1_INT_MASK
1411
 
1412
#endif /* _CDEF_BF539_H */
1413
 

powered by: WebSVN 2.1.0

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