source: trunk/libs/newlib/src/libgloss/bfin/include/cdefBF539.h @ 546

Last change on this file since 546 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

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