source: trunk/libs/newlib/src/libgloss/bfin/include/cdefBF538.h @ 688

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

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

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