source: trunk/libs/newlib/src/libgloss/bfin/include/cdefBF50x_base.h @ 544

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

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

File size: 63.3 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** cdefBF50x_base.h
15**
16** This include file contains a list of macro "defines" to enable the programmer
17** to use symbolic names for the system MMRs common to the ADSP-BF50x parts
18** peripherals.
19**
20** Copyright (C) 2009 Analog Devices Inc., All Rights Reserved.
21*/
22
23#ifndef _CDEF_BF50X_H
24#define _CDEF_BF50X_H
25
26#include <defBF50x_base.h>
27#include <stdint.h>
28
29#ifdef _MISRA_RULES
30#pragma diag(push)
31#pragma diag(suppress:misra_rule_19_7:"ADI header allows function macros")
32#endif /* _MISRA_RULES */
33
34#ifndef _PTR_TO_VOL_VOID_PTR
35# ifndef _USE_LEGACY_CDEF_BEHAVIOUR
36#  define _PTR_TO_VOL_VOID_PTR _PTR_TO_VOL_VOID_PTR
37# else
38#  define _PTR_TO_VOL_VOID_PTR (volatile void **)
39# endif
40#endif
41
42
43/* Clock and System Control (0xFFC00000 - 0xFFC000FF) */
44#define pPLL_CTL            ((volatile uint16_t *)PLL_CTL)
45#define pPLL_DIV            ((volatile uint16_t *)PLL_DIV)
46#define pVR_CTL             ((volatile uint16_t *)VR_CTL)
47#define pPLL_STAT       ((volatile uint16_t *)PLL_STAT)
48#define pPLL_LOCKCNT        ((volatile uint16_t *)PLL_LOCKCNT)
49#define pCHIPID         ((volatile uint32_t *)CHIPID)
50
51
52/* System Interrupt Controller  (0xFFC00100 - 0xFFC001FF) */
53#define pSWRST          ((volatile uint16_t *)SWRST)
54#define pSYSCR          ((volatile uint16_t *)SYSCR)
55
56#define pSIC_IMASK0         ((volatile uint32_t *)SIC_IMASK0)
57/* legacy register name (below) provided for backwards code compatibility */
58#define pSIC_IMASK      ((volatile uint32_t *)SIC_IMASK0)
59#define pSIC_IAR0       ((volatile uint32_t *)SIC_IAR0)
60#define pSIC_IAR1       ((volatile uint32_t *)SIC_IAR1)
61#define pSIC_IAR2       ((volatile uint32_t *)SIC_IAR2)
62#define pSIC_IAR3       ((volatile uint32_t *)SIC_IAR3)
63#define pSIC_ISR0       ((volatile uint32_t *)SIC_ISR0)
64/* legacy register name (below) provided for backwards code compatibility */
65#define pSIC_ISR            ((volatile uint32_t *)SIC_ISR0)
66#define pSIC_IWR0       ((volatile uint32_t *)SIC_IWR0)
67/* legacy register name (below) provided for backwards code compatibility */
68#define pSIC_IWR            ((volatile uint32_t *)SIC_IWR0)
69
70/* SIC Additions to ADSP-BF50x  (0xFFC0014C - 0xFFC00162) */
71#define pSIC_IMASK1     ((volatile uint32_t *)SIC_IMASK1)
72#define pSIC_IAR4           ((volatile uint32_t *)SIC_IAR4)
73#define pSIC_IAR5           ((volatile uint32_t *)SIC_IAR5)
74#define pSIC_IAR6           ((volatile uint32_t *)SIC_IAR6)
75#define pSIC_ISR1           ((volatile uint32_t *)SIC_ISR1)
76#define pSIC_IWR1           ((volatile uint32_t *)SIC_IWR1)
77
78/* Watchdog Timer           (0xFFC00200 - 0xFFC002FF) */
79#define pWDOG_CTL       ((volatile uint16_t *)WDOG_CTL)
80#define pWDOG_CNT       ((volatile uint32_t *)WDOG_CNT)
81#define pWDOG_STAT      ((volatile uint32_t *)WDOG_STAT)
82
83
84/* UART0 Controller         (0xFFC00400 - 0xFFC004FF) */
85#define pUART0_DLL      ((volatile uint16_t *)UART0_DLL)
86#define pUART0_DLH      ((volatile uint16_t *)UART0_DLH)
87#define pUART0_GCTL     ((volatile uint16_t *)UART0_GCTL)
88#define pUART0_LCR      ((volatile uint16_t *)UART0_LCR)
89#define pUART0_MCR      ((volatile uint16_t *)UART0_MCR)
90#define pUART0_LSR      ((volatile uint16_t *)UART0_LSR)
91#define pUART0_MSR      ((volatile uint16_t *)UART0_MSR)
92#define pUART0_SCR      ((volatile uint16_t *)UART0_SCR)
93#define pUART0_IER_SET  ((volatile uint16_t *)UART0_IER_SET)
94#define pUART0_IER_CLEAR    ((volatile uint16_t *)UART0_IER_CLEAR)
95#define pUART0_THR      ((volatile uint16_t *)UART0_THR)
96#define pUART0_RBR      ((volatile uint16_t *)UART0_RBR)
97
98
99/* SPI0 Controller          (0xFFC00500 - 0xFFC005FF)*/
100#define pSPI0_CTL       ((volatile uint16_t *)SPI0_CTL)
101#define pSPI0_FLG       ((volatile uint16_t *)SPI0_FLG)
102#define pSPI0_STAT      ((volatile uint16_t *)SPI0_STAT)
103#define pSPI0_TDBR      ((volatile uint16_t *)SPI0_TDBR)
104#define pSPI0_RDBR      ((volatile uint16_t *)SPI0_RDBR)
105#define pSPI0_BAUD      ((volatile uint16_t *)SPI0_BAUD)
106#define pSPI0_SHADOW        ((volatile uint16_t *)SPI0_SHADOW)
107/* legacy register names (below) provided for backwards code compatibility */
108#define pSPI_CTL            (pSPI0_CTL)
109#define pSPI_FLG            (pSPI0_FLG)
110#define pSPI_STAT           (pSPI0_STAT)
111#define pSPI_TDBR           (pSPI0_TDBR)
112#define pSPI_RDBR           (pSPI0_RDBR)
113#define pSPI_BAUD           (pSPI0_BAUD)
114#define pSPI_SHADOW     (pSPI0_SHADOW)
115
116
117/* TIMER0-7 Registers       (0xFFC00600 - 0xFFC006FF) */
118#define pTIMER0_CONFIG      ((volatile uint16_t *)TIMER0_CONFIG)
119#define pTIMER0_COUNTER     ((volatile uint32_t *)TIMER0_COUNTER)
120#define pTIMER0_PERIOD      ((volatile uint32_t *)TIMER0_PERIOD)
121#define pTIMER0_WIDTH       ((volatile uint32_t *)TIMER0_WIDTH)
122
123#define pTIMER1_CONFIG      ((volatile uint16_t *)TIMER1_CONFIG)
124#define pTIMER1_COUNTER     ((volatile uint32_t *)TIMER1_COUNTER)
125#define pTIMER1_PERIOD      ((volatile uint32_t *)TIMER1_PERIOD)
126#define pTIMER1_WIDTH       ((volatile uint32_t *)TIMER1_WIDTH)
127
128#define pTIMER2_CONFIG      ((volatile uint16_t *)TIMER2_CONFIG)
129#define pTIMER2_COUNTER     ((volatile uint32_t *)TIMER2_COUNTER)
130#define pTIMER2_PERIOD      ((volatile uint32_t *)TIMER2_PERIOD)
131#define pTIMER2_WIDTH       ((volatile uint32_t *)TIMER2_WIDTH)
132
133#define pTIMER3_CONFIG      ((volatile uint16_t *)TIMER3_CONFIG)
134#define pTIMER3_COUNTER     ((volatile uint32_t *)TIMER3_COUNTER)
135#define pTIMER3_PERIOD      ((volatile uint32_t *)TIMER3_PERIOD)
136#define pTIMER3_WIDTH       ((volatile uint32_t *)TIMER3_WIDTH)
137
138#define pTIMER4_CONFIG      ((volatile uint16_t *)TIMER4_CONFIG)
139#define pTIMER4_COUNTER     ((volatile uint32_t *)TIMER4_COUNTER)
140#define pTIMER4_PERIOD      ((volatile uint32_t *)TIMER4_PERIOD)
141#define pTIMER4_WIDTH       ((volatile uint32_t *)TIMER4_WIDTH)
142
143#define pTIMER5_CONFIG      ((volatile uint16_t *)TIMER5_CONFIG)
144#define pTIMER5_COUNTER     ((volatile uint32_t *)TIMER5_COUNTER)
145#define pTIMER5_PERIOD      ((volatile uint32_t *)TIMER5_PERIOD)
146#define pTIMER5_WIDTH       ((volatile uint32_t *)TIMER5_WIDTH)
147
148#define pTIMER6_CONFIG      ((volatile uint16_t *)TIMER6_CONFIG)
149#define pTIMER6_COUNTER     ((volatile uint32_t *)TIMER6_COUNTER)
150#define pTIMER6_PERIOD      ((volatile uint32_t *)TIMER6_PERIOD)
151#define pTIMER6_WIDTH       ((volatile uint32_t *)TIMER6_WIDTH)
152
153#define pTIMER7_CONFIG      ((volatile uint16_t *)TIMER7_CONFIG)
154#define pTIMER7_COUNTER     ((volatile uint32_t *)TIMER7_COUNTER)
155#define pTIMER7_PERIOD      ((volatile uint32_t *)TIMER7_PERIOD)
156#define pTIMER7_WIDTH       ((volatile uint32_t *)TIMER7_WIDTH)
157
158#define pTIMER_ENABLE       ((volatile uint16_t *)TIMER_ENABLE)
159#define pTIMER_DISABLE      ((volatile uint16_t *)TIMER_DISABLE)
160#define pTIMER_STATUS       ((volatile uint32_t *)TIMER_STATUS)
161
162
163/* General Purpose I/O Port F (0xFFC00700 - 0xFFC007FF) */
164#define pPORTFIO            ((volatile uint16_t *)PORTFIO)
165#define pPORTFIO_CLEAR      ((volatile uint16_t *)PORTFIO_CLEAR)
166#define pPORTFIO_SET        ((volatile uint16_t *)PORTFIO_SET)
167#define pPORTFIO_TOGGLE     ((volatile uint16_t *)PORTFIO_TOGGLE)
168#define pPORTFIO_MASKA      ((volatile uint16_t *)PORTFIO_MASKA)
169#define pPORTFIO_MASKA_CLEAR    ((volatile uint16_t *)PORTFIO_MASKA_CLEAR)
170#define pPORTFIO_MASKA_SET  ((volatile uint16_t *)PORTFIO_MASKA_SET)
171#define pPORTFIO_MASKA_TOGGLE ((volatile uint16_t *)PORTFIO_MASKA_TOGGLE)
172#define pPORTFIO_MASKB      ((volatile uint16_t *)PORTFIO_MASKB)
173#define pPORTFIO_MASKB_CLEAR    ((volatile uint16_t *)PORTFIO_MASKB_CLEAR)
174#define pPORTFIO_MASKB_SET  ((volatile uint16_t *)PORTFIO_MASKB_SET)
175#define pPORTFIO_MASKB_TOGGLE ((volatile uint16_t *)PORTFIO_MASKB_TOGGLE)
176#define pPORTFIO_DIR        ((volatile uint16_t *)PORTFIO_DIR)
177#define pPORTFIO_POLAR      ((volatile uint16_t *)PORTFIO_POLAR)
178#define pPORTFIO_EDGE       ((volatile uint16_t *)PORTFIO_EDGE)
179#define pPORTFIO_BOTH       ((volatile uint16_t *)PORTFIO_BOTH)
180#define pPORTFIO_INEN       ((volatile uint16_t *)PORTFIO_INEN)
181
182
183/* SPORT0 Controller        (0xFFC00800 - 0xFFC008FF) */
184#define pSPORT0_TCR1        ((volatile uint16_t *)SPORT0_TCR1)
185#define pSPORT0_TCR2        ((volatile uint16_t *)SPORT0_TCR2)
186#define pSPORT0_TCLKDIV     ((volatile uint16_t *)SPORT0_TCLKDIV)
187#define pSPORT0_TFSDIV      ((volatile uint16_t *)SPORT0_TFSDIV)
188#define pSPORT0_TX          ((volatile uint32_t *)SPORT0_TX)
189#define pSPORT0_RX          ((volatile uint32_t *)SPORT0_RX)
190#define pSPORT0_TX32        ((volatile uint32_t *)SPORT0_TX)
191#define pSPORT0_RX32        ((volatile uint32_t *)SPORT0_RX)
192#define pSPORT0_TX16        ((volatile uint16_t *)SPORT0_TX)
193#define pSPORT0_RX16        ((volatile uint16_t *)SPORT0_RX)
194#define pSPORT0_RCR1        ((volatile uint16_t *)SPORT0_RCR1)
195#define pSPORT0_RCR2        ((volatile uint16_t *)SPORT0_RCR2)
196#define pSPORT0_RCLKDIV     ((volatile uint16_t *)SPORT0_RCLKDIV)
197#define pSPORT0_RFSDIV      ((volatile uint16_t *)SPORT0_RFSDIV)
198#define pSPORT0_STAT        ((volatile uint16_t *)SPORT0_STAT)
199#define pSPORT0_CHNL        ((volatile uint16_t *)SPORT0_CHNL)
200#define pSPORT0_MCMC1       ((volatile uint16_t *)SPORT0_MCMC1)
201#define pSPORT0_MCMC2       ((volatile uint16_t *)SPORT0_MCMC2)
202#define pSPORT0_MTCS0       ((volatile uint32_t *)SPORT0_MTCS0)
203#define pSPORT0_MTCS1       ((volatile uint32_t *)SPORT0_MTCS1)
204#define pSPORT0_MTCS2       ((volatile uint32_t *)SPORT0_MTCS2)
205#define pSPORT0_MTCS3       ((volatile uint32_t *)SPORT0_MTCS3)
206#define pSPORT0_MRCS0       ((volatile uint32_t *)SPORT0_MRCS0)
207#define pSPORT0_MRCS1       ((volatile uint32_t *)SPORT0_MRCS1)
208#define pSPORT0_MRCS2       ((volatile uint32_t *)SPORT0_MRCS2)
209#define pSPORT0_MRCS3       ((volatile uint32_t *)SPORT0_MRCS3)
210
211
212/* SPORT1 Controller        (0xFFC00900 - 0xFFC009FF) */
213#define pSPORT1_TCR1        ((volatile uint16_t *)SPORT1_TCR1)
214#define pSPORT1_TCR2        ((volatile uint16_t *)SPORT1_TCR2)
215#define pSPORT1_TCLKDIV     ((volatile uint16_t *)SPORT1_TCLKDIV)
216#define pSPORT1_TFSDIV      ((volatile uint16_t *)SPORT1_TFSDIV)
217#define pSPORT1_TX          ((volatile uint32_t *)SPORT1_TX)
218#define pSPORT1_RX          ((volatile uint32_t *)SPORT1_RX)
219#define pSPORT1_TX32        ((volatile uint32_t *)SPORT1_TX)
220#define pSPORT1_RX32        ((volatile uint32_t *)SPORT1_RX)
221#define pSPORT1_TX16        ((volatile uint16_t *)SPORT1_TX)
222#define pSPORT1_RX16        ((volatile uint16_t *)SPORT1_RX)
223#define pSPORT1_RCR1        ((volatile uint16_t *)SPORT1_RCR1)
224#define pSPORT1_RCR2        ((volatile uint16_t *)SPORT1_RCR2)
225#define pSPORT1_RCLKDIV     ((volatile uint16_t *)SPORT1_RCLKDIV)
226#define pSPORT1_RFSDIV      ((volatile uint16_t *)SPORT1_RFSDIV)
227#define pSPORT1_STAT        ((volatile uint16_t *)SPORT1_STAT)
228#define pSPORT1_CHNL        ((volatile uint16_t *)SPORT1_CHNL)
229#define pSPORT1_MCMC1       ((volatile uint16_t *)SPORT1_MCMC1)
230#define pSPORT1_MCMC2       ((volatile uint16_t *)SPORT1_MCMC2)
231#define pSPORT1_MTCS0       ((volatile uint32_t *)SPORT1_MTCS0)
232#define pSPORT1_MTCS1       ((volatile uint32_t *)SPORT1_MTCS1)
233#define pSPORT1_MTCS2       ((volatile uint32_t *)SPORT1_MTCS2)
234#define pSPORT1_MTCS3       ((volatile uint32_t *)SPORT1_MTCS3)
235#define pSPORT1_MRCS0       ((volatile uint32_t *)SPORT1_MRCS0)
236#define pSPORT1_MRCS1       ((volatile uint32_t *)SPORT1_MRCS1)
237#define pSPORT1_MRCS2       ((volatile uint32_t *)SPORT1_MRCS2)
238#define pSPORT1_MRCS3       ((volatile uint32_t *)SPORT1_MRCS3)
239
240
241/* External Bus Interface Unit (0xFFC00A00 - 0xFFC00AFF) */
242#define pEBIU_AMGCTL        ((volatile uint16_t *)EBIU_AMGCTL)
243#define pEBIU_AMBCTL        ((volatile uint32_t *)EBIU_AMBCTL)
244#define pEBIU_MODE          ((volatile uint16_t *)EBIU_MODE)
245#define pEBIU_FCTL          ((volatile uint16_t *)EBIU_FCTL)
246#define pEBIU_AMBCTL0       ((volatile uint32_t *)EBIU_AMBCTL)
247
248
249/* DMA Traffic Control Registers    (0xFFC00B00 - 0xFFC00BFF) */
250#define pDMA_TC_PER     ((volatile uint16_t *)DMA_TC_PER)
251#define pDMA_TC_CNT     ((volatile uint16_t *)DMA_TC_CNT)
252
253/* Alternate deprecated register names (below) provided for backwards code compatibility */
254#define pDMA_TCPER      ((volatile uint16_t *)DMA_TCPER)
255#define pDMA_TCCNT      ((volatile uint16_t *)DMA_TCCNT)
256
257/* DMA Controller           (0xFFC00C00 - FFC00FFF)*/
258#define pDMA0_CONFIG        ((volatile uint16_t *)DMA0_CONFIG)
259#define pDMA0_NEXT_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA0_NEXT_DESC_PTR)
260#define pDMA0_START_ADDR    (_PTR_TO_VOL_VOID_PTR DMA0_START_ADDR)
261#define pDMA0_X_COUNT       ((volatile uint16_t *)DMA0_X_COUNT)
262#define pDMA0_Y_COUNT       ((volatile uint16_t *)DMA0_Y_COUNT)
263#define pDMA0_X_MODIFY      ((volatile int16_t *)DMA0_X_MODIFY)
264#define pDMA0_Y_MODIFY      ((volatile int16_t *)DMA0_Y_MODIFY)
265#define pDMA0_CURR_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA0_CURR_DESC_PTR)
266#define pDMA0_CURR_ADDR     (_PTR_TO_VOL_VOID_PTR DMA0_CURR_ADDR)
267#define pDMA0_CURR_X_COUNT  ((volatile uint16_t *)DMA0_CURR_X_COUNT)
268#define pDMA0_CURR_Y_COUNT  ((volatile uint16_t *)DMA0_CURR_Y_COUNT)
269#define pDMA0_IRQ_STATUS    ((volatile uint16_t *)DMA0_IRQ_STATUS)
270#define pDMA0_PERIPHERAL_MAP    ((volatile uint16_t *)DMA0_PERIPHERAL_MAP)
271
272#define pDMA1_CONFIG        ((volatile uint16_t *)DMA1_CONFIG)
273#define pDMA1_NEXT_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA1_NEXT_DESC_PTR)
274#define pDMA1_START_ADDR    (_PTR_TO_VOL_VOID_PTR DMA1_START_ADDR)
275#define pDMA1_X_COUNT       ((volatile uint16_t *)DMA1_X_COUNT)
276#define pDMA1_Y_COUNT       ((volatile uint16_t *)DMA1_Y_COUNT)
277#define pDMA1_X_MODIFY      ((volatile int16_t *)DMA1_X_MODIFY)
278#define pDMA1_Y_MODIFY      ((volatile int16_t *)DMA1_Y_MODIFY)
279#define pDMA1_CURR_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA1_CURR_DESC_PTR)
280#define pDMA1_CURR_ADDR     (_PTR_TO_VOL_VOID_PTR DMA1_CURR_ADDR)
281#define pDMA1_CURR_X_COUNT  ((volatile uint16_t *)DMA1_CURR_X_COUNT)
282#define pDMA1_CURR_Y_COUNT  ((volatile uint16_t *)DMA1_CURR_Y_COUNT)
283#define pDMA1_IRQ_STATUS    ((volatile uint16_t *)DMA1_IRQ_STATUS)
284#define pDMA1_PERIPHERAL_MAP    ((volatile uint16_t *)DMA1_PERIPHERAL_MAP)
285
286#define pDMA2_CONFIG        ((volatile uint16_t *)DMA2_CONFIG)
287#define pDMA2_NEXT_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA2_NEXT_DESC_PTR)
288#define pDMA2_START_ADDR    (_PTR_TO_VOL_VOID_PTR DMA2_START_ADDR)
289#define pDMA2_X_COUNT       ((volatile uint16_t *)DMA2_X_COUNT)
290#define pDMA2_Y_COUNT       ((volatile uint16_t *)DMA2_Y_COUNT)
291#define pDMA2_X_MODIFY      ((volatile int16_t *)DMA2_X_MODIFY)
292#define pDMA2_Y_MODIFY      ((volatile int16_t *)DMA2_Y_MODIFY)
293#define pDMA2_CURR_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA2_CURR_DESC_PTR)
294#define pDMA2_CURR_ADDR     (_PTR_TO_VOL_VOID_PTR DMA2_CURR_ADDR)
295#define pDMA2_CURR_X_COUNT  ((volatile uint16_t *)DMA2_CURR_X_COUNT)
296#define pDMA2_CURR_Y_COUNT  ((volatile uint16_t *)DMA2_CURR_Y_COUNT)
297#define pDMA2_IRQ_STATUS    ((volatile uint16_t *)DMA2_IRQ_STATUS)
298#define pDMA2_PERIPHERAL_MAP    ((volatile uint16_t *)DMA2_PERIPHERAL_MAP)
299
300#define pDMA3_CONFIG        ((volatile uint16_t *)DMA3_CONFIG)
301#define pDMA3_NEXT_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA3_NEXT_DESC_PTR)
302#define pDMA3_START_ADDR    (_PTR_TO_VOL_VOID_PTR DMA3_START_ADDR)
303#define pDMA3_X_COUNT       ((volatile uint16_t *)DMA3_X_COUNT)
304#define pDMA3_Y_COUNT       ((volatile uint16_t *)DMA3_Y_COUNT)
305#define pDMA3_X_MODIFY      ((volatile int16_t *)DMA3_X_MODIFY)
306#define pDMA3_Y_MODIFY      ((volatile int16_t *)DMA3_Y_MODIFY)
307#define pDMA3_CURR_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA3_CURR_DESC_PTR)
308#define pDMA3_CURR_ADDR     (_PTR_TO_VOL_VOID_PTR DMA3_CURR_ADDR)
309#define pDMA3_CURR_X_COUNT  ((volatile uint16_t *)DMA3_CURR_X_COUNT)
310#define pDMA3_CURR_Y_COUNT  ((volatile uint16_t *)DMA3_CURR_Y_COUNT)
311#define pDMA3_IRQ_STATUS    ((volatile uint16_t *)DMA3_IRQ_STATUS)
312#define pDMA3_PERIPHERAL_MAP    ((volatile uint16_t *)DMA3_PERIPHERAL_MAP)
313
314#define pDMA4_CONFIG        ((volatile uint16_t *)DMA4_CONFIG)
315#define pDMA4_NEXT_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA4_NEXT_DESC_PTR)
316#define pDMA4_START_ADDR    (_PTR_TO_VOL_VOID_PTR DMA4_START_ADDR)
317#define pDMA4_X_COUNT       ((volatile uint16_t *)DMA4_X_COUNT)
318#define pDMA4_Y_COUNT       ((volatile uint16_t *)DMA4_Y_COUNT)
319#define pDMA4_X_MODIFY      ((volatile int16_t *)DMA4_X_MODIFY)
320#define pDMA4_Y_MODIFY      ((volatile int16_t *)DMA4_Y_MODIFY)
321#define pDMA4_CURR_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA4_CURR_DESC_PTR)
322#define pDMA4_CURR_ADDR     (_PTR_TO_VOL_VOID_PTR DMA4_CURR_ADDR)
323#define pDMA4_CURR_X_COUNT  ((volatile uint16_t *)DMA4_CURR_X_COUNT)
324#define pDMA4_CURR_Y_COUNT  ((volatile uint16_t *)DMA4_CURR_Y_COUNT)
325#define pDMA4_IRQ_STATUS    ((volatile uint16_t *)DMA4_IRQ_STATUS)
326#define pDMA4_PERIPHERAL_MAP    ((volatile uint16_t *)DMA4_PERIPHERAL_MAP)
327
328#define pDMA5_CONFIG        ((volatile uint16_t *)DMA5_CONFIG)
329#define pDMA5_NEXT_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA5_NEXT_DESC_PTR)
330#define pDMA5_START_ADDR    (_PTR_TO_VOL_VOID_PTR DMA5_START_ADDR)
331#define pDMA5_X_COUNT       ((volatile uint16_t *)DMA5_X_COUNT)
332#define pDMA5_Y_COUNT       ((volatile uint16_t *)DMA5_Y_COUNT)
333#define pDMA5_X_MODIFY      ((volatile int16_t *)DMA5_X_MODIFY)
334#define pDMA5_Y_MODIFY      ((volatile int16_t *)DMA5_Y_MODIFY)
335#define pDMA5_CURR_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA5_CURR_DESC_PTR)
336#define pDMA5_CURR_ADDR     (_PTR_TO_VOL_VOID_PTR DMA5_CURR_ADDR)
337#define pDMA5_CURR_X_COUNT  ((volatile uint16_t *)DMA5_CURR_X_COUNT)
338#define pDMA5_CURR_Y_COUNT  ((volatile uint16_t *)DMA5_CURR_Y_COUNT)
339#define pDMA5_IRQ_STATUS    ((volatile uint16_t *)DMA5_IRQ_STATUS)
340#define pDMA5_PERIPHERAL_MAP    ((volatile uint16_t *)DMA5_PERIPHERAL_MAP)
341
342#define pDMA6_CONFIG        ((volatile uint16_t *)DMA6_CONFIG)
343#define pDMA6_NEXT_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA6_NEXT_DESC_PTR)
344#define pDMA6_START_ADDR    (_PTR_TO_VOL_VOID_PTR DMA6_START_ADDR)
345#define pDMA6_X_COUNT       ((volatile uint16_t *)DMA6_X_COUNT)
346#define pDMA6_Y_COUNT       ((volatile uint16_t *)DMA6_Y_COUNT)
347#define pDMA6_X_MODIFY      ((volatile int16_t *)DMA6_X_MODIFY)
348#define pDMA6_Y_MODIFY      ((volatile int16_t *)DMA6_Y_MODIFY)
349#define pDMA6_CURR_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA6_CURR_DESC_PTR)
350#define pDMA6_CURR_ADDR     (_PTR_TO_VOL_VOID_PTR DMA6_CURR_ADDR)
351#define pDMA6_CURR_X_COUNT  ((volatile uint16_t *)DMA6_CURR_X_COUNT)
352#define pDMA6_CURR_Y_COUNT  ((volatile uint16_t *)DMA6_CURR_Y_COUNT)
353#define pDMA6_IRQ_STATUS    ((volatile uint16_t *)DMA6_IRQ_STATUS)
354#define pDMA6_PERIPHERAL_MAP    ((volatile uint16_t *)DMA6_PERIPHERAL_MAP)
355
356#define pDMA7_CONFIG        ((volatile uint16_t *)DMA7_CONFIG)
357#define pDMA7_NEXT_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA7_NEXT_DESC_PTR)
358#define pDMA7_START_ADDR    (_PTR_TO_VOL_VOID_PTR DMA7_START_ADDR)
359#define pDMA7_X_COUNT       ((volatile uint16_t *)DMA7_X_COUNT)
360#define pDMA7_Y_COUNT       ((volatile uint16_t *)DMA7_Y_COUNT)
361#define pDMA7_X_MODIFY      ((volatile int16_t *)DMA7_X_MODIFY)
362#define pDMA7_Y_MODIFY      ((volatile int16_t *)DMA7_Y_MODIFY)
363#define pDMA7_CURR_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA7_CURR_DESC_PTR)
364#define pDMA7_CURR_ADDR     (_PTR_TO_VOL_VOID_PTR DMA7_CURR_ADDR)
365#define pDMA7_CURR_X_COUNT  ((volatile uint16_t *)DMA7_CURR_X_COUNT)
366#define pDMA7_CURR_Y_COUNT  ((volatile uint16_t *)DMA7_CURR_Y_COUNT)
367#define pDMA7_IRQ_STATUS    ((volatile uint16_t *)DMA7_IRQ_STATUS)
368#define pDMA7_PERIPHERAL_MAP    ((volatile uint16_t *)DMA7_PERIPHERAL_MAP)
369
370#define pDMA8_CONFIG        ((volatile uint16_t *)DMA8_CONFIG)
371#define pDMA8_NEXT_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA8_NEXT_DESC_PTR)
372#define pDMA8_START_ADDR    (_PTR_TO_VOL_VOID_PTR DMA8_START_ADDR)
373#define pDMA8_X_COUNT       ((volatile uint16_t *)DMA8_X_COUNT)
374#define pDMA8_Y_COUNT       ((volatile uint16_t *)DMA8_Y_COUNT)
375#define pDMA8_X_MODIFY      ((volatile int16_t *)DMA8_X_MODIFY)
376#define pDMA8_Y_MODIFY      ((volatile int16_t *)DMA8_Y_MODIFY)
377#define pDMA8_CURR_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA8_CURR_DESC_PTR)
378#define pDMA8_CURR_ADDR     (_PTR_TO_VOL_VOID_PTR DMA8_CURR_ADDR)
379#define pDMA8_CURR_X_COUNT  ((volatile uint16_t *)DMA8_CURR_X_COUNT)
380#define pDMA8_CURR_Y_COUNT  ((volatile uint16_t *)DMA8_CURR_Y_COUNT)
381#define pDMA8_IRQ_STATUS    ((volatile uint16_t *)DMA8_IRQ_STATUS)
382#define pDMA8_PERIPHERAL_MAP    ((volatile uint16_t *)DMA8_PERIPHERAL_MAP)
383
384#define pDMA9_CONFIG        ((volatile uint16_t *)DMA9_CONFIG)
385#define pDMA9_NEXT_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA9_NEXT_DESC_PTR)
386#define pDMA9_START_ADDR    (_PTR_TO_VOL_VOID_PTR DMA9_START_ADDR)
387#define pDMA9_X_COUNT       ((volatile uint16_t *)DMA9_X_COUNT)
388#define pDMA9_Y_COUNT       ((volatile uint16_t *)DMA9_Y_COUNT)
389#define pDMA9_X_MODIFY      ((volatile int16_t *)DMA9_X_MODIFY)
390#define pDMA9_Y_MODIFY      ((volatile int16_t *)DMA9_Y_MODIFY)
391#define pDMA9_CURR_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA9_CURR_DESC_PTR)
392#define pDMA9_CURR_ADDR     (_PTR_TO_VOL_VOID_PTR DMA9_CURR_ADDR)
393#define pDMA9_CURR_X_COUNT  ((volatile uint16_t *)DMA9_CURR_X_COUNT)
394#define pDMA9_CURR_Y_COUNT  ((volatile uint16_t *)DMA9_CURR_Y_COUNT)
395#define pDMA9_IRQ_STATUS    ((volatile uint16_t *)DMA9_IRQ_STATUS)
396#define pDMA9_PERIPHERAL_MAP    ((volatile uint16_t *)DMA9_PERIPHERAL_MAP)
397
398#define pDMA10_CONFIG       ((volatile uint16_t *)DMA10_CONFIG)
399#define pDMA10_NEXT_DESC_PTR    (_PTR_TO_VOL_VOID_PTR DMA10_NEXT_DESC_PTR)
400#define pDMA10_START_ADDR   (_PTR_TO_VOL_VOID_PTR DMA10_START_ADDR)
401#define pDMA10_X_COUNT      ((volatile uint16_t *)DMA10_X_COUNT)
402#define pDMA10_Y_COUNT      ((volatile uint16_t *)DMA10_Y_COUNT)
403#define pDMA10_X_MODIFY     ((volatile int16_t *)DMA10_X_MODIFY)
404#define pDMA10_Y_MODIFY     ((volatile int16_t *)DMA10_Y_MODIFY)
405#define pDMA10_CURR_DESC_PTR    (_PTR_TO_VOL_VOID_PTR DMA10_CURR_DESC_PTR)
406#define pDMA10_CURR_ADDR    (_PTR_TO_VOL_VOID_PTR DMA10_CURR_ADDR)
407#define pDMA10_CURR_X_COUNT     ((volatile uint16_t *)DMA10_CURR_X_COUNT)
408#define pDMA10_CURR_Y_COUNT     ((volatile uint16_t *)DMA10_CURR_Y_COUNT)
409#define pDMA10_IRQ_STATUS   ((volatile uint16_t *)DMA10_IRQ_STATUS)
410#define pDMA10_PERIPHERAL_MAP ((volatile uint16_t *)DMA10_PERIPHERAL_MAP)
411
412#define pDMA11_CONFIG       ((volatile uint16_t *)DMA11_CONFIG)
413#define pDMA11_NEXT_DESC_PTR    (_PTR_TO_VOL_VOID_PTR DMA11_NEXT_DESC_PTR)
414#define pDMA11_START_ADDR   (_PTR_TO_VOL_VOID_PTR DMA11_START_ADDR)
415#define pDMA11_X_COUNT      ((volatile uint16_t *)DMA11_X_COUNT)
416#define pDMA11_Y_COUNT      ((volatile uint16_t *)DMA11_Y_COUNT)
417#define pDMA11_X_MODIFY     ((volatile int16_t *)DMA11_X_MODIFY)
418#define pDMA11_Y_MODIFY     ((volatile int16_t *)DMA11_Y_MODIFY)
419#define pDMA11_CURR_DESC_PTR    (_PTR_TO_VOL_VOID_PTR DMA11_CURR_DESC_PTR)
420#define pDMA11_CURR_ADDR    (_PTR_TO_VOL_VOID_PTR DMA11_CURR_ADDR)
421#define pDMA11_CURR_X_COUNT     ((volatile uint16_t *)DMA11_CURR_X_COUNT)
422#define pDMA11_CURR_Y_COUNT     ((volatile uint16_t *)DMA11_CURR_Y_COUNT)
423#define pDMA11_IRQ_STATUS   ((volatile uint16_t *)DMA11_IRQ_STATUS)
424#define pDMA11_PERIPHERAL_MAP ((volatile uint16_t *)DMA11_PERIPHERAL_MAP)
425
426#define pMDMA_D0_CONFIG     ((volatile uint16_t *)MDMA_D0_CONFIG)
427#define pMDMA_D0_NEXT_DESC_PTR  (_PTR_TO_VOL_VOID_PTR MDMA_D0_NEXT_DESC_PTR)
428#define pMDMA_D0_START_ADDR     (_PTR_TO_VOL_VOID_PTR MDMA_D0_START_ADDR)
429#define pMDMA_D0_X_COUNT    ((volatile uint16_t *)MDMA_D0_X_COUNT)
430#define pMDMA_D0_Y_COUNT    ((volatile uint16_t *)MDMA_D0_Y_COUNT)
431#define pMDMA_D0_X_MODIFY   ((volatile int16_t *)MDMA_D0_X_MODIFY)
432#define pMDMA_D0_Y_MODIFY   ((volatile int16_t *)MDMA_D0_Y_MODIFY)
433#define pMDMA_D0_CURR_DESC_PTR  (_PTR_TO_VOL_VOID_PTR MDMA_D0_CURR_DESC_PTR)
434#define pMDMA_D0_CURR_ADDR    (_PTR_TO_VOL_VOID_PTR MDMA_D0_CURR_ADDR)
435#define pMDMA_D0_CURR_X_COUNT ((volatile uint16_t *)MDMA_D0_CURR_X_COUNT)
436#define pMDMA_D0_CURR_Y_COUNT ((volatile uint16_t *)MDMA_D0_CURR_Y_COUNT)
437#define pMDMA_D0_IRQ_STATUS     ((volatile uint16_t *)MDMA_D0_IRQ_STATUS)
438#define pMDMA_D0_PERIPHERAL_MAP ((volatile uint16_t *)MDMA_D0_PERIPHERAL_MAP)
439
440#define pMDMA_S0_CONFIG     ((volatile uint16_t *)MDMA_S0_CONFIG)
441#define pMDMA_S0_NEXT_DESC_PTR  (_PTR_TO_VOL_VOID_PTR MDMA_S0_NEXT_DESC_PTR)
442#define pMDMA_S0_START_ADDR     (_PTR_TO_VOL_VOID_PTR MDMA_S0_START_ADDR)
443#define pMDMA_S0_X_COUNT    ((volatile uint16_t *)MDMA_S0_X_COUNT)
444#define pMDMA_S0_Y_COUNT    ((volatile uint16_t *)MDMA_S0_Y_COUNT)
445#define pMDMA_S0_X_MODIFY   ((volatile int16_t *)MDMA_S0_X_MODIFY)
446#define pMDMA_S0_Y_MODIFY   ((volatile int16_t *)MDMA_S0_Y_MODIFY)
447#define pMDMA_S0_CURR_DESC_PTR  (_PTR_TO_VOL_VOID_PTR MDMA_S0_CURR_DESC_PTR)
448#define pMDMA_S0_CURR_ADDR  (_PTR_TO_VOL_VOID_PTR MDMA_S0_CURR_ADDR)
449#define pMDMA_S0_CURR_X_COUNT ((volatile uint16_t *)MDMA_S0_CURR_X_COUNT)
450#define pMDMA_S0_CURR_Y_COUNT ((volatile uint16_t *)MDMA_S0_CURR_Y_COUNT)
451#define pMDMA_S0_IRQ_STATUS     ((volatile uint16_t *)MDMA_S0_IRQ_STATUS)
452#define pMDMA_S0_PERIPHERAL_MAP ((volatile uint16_t *)MDMA_S0_PERIPHERAL_MAP)
453
454#define pMDMA_D1_CONFIG     ((volatile uint16_t *)MDMA_D1_CONFIG)
455#define pMDMA_D1_NEXT_DESC_PTR  (_PTR_TO_VOL_VOID_PTR MDMA_D1_NEXT_DESC_PTR)
456#define pMDMA_D1_START_ADDR     (_PTR_TO_VOL_VOID_PTR MDMA_D1_START_ADDR)
457#define pMDMA_D1_X_COUNT    ((volatile uint16_t *)MDMA_D1_X_COUNT)
458#define pMDMA_D1_Y_COUNT    ((volatile uint16_t *)MDMA_D1_Y_COUNT)
459#define pMDMA_D1_X_MODIFY   ((volatile int16_t *)MDMA_D1_X_MODIFY)
460#define pMDMA_D1_Y_MODIFY   ((volatile int16_t *)MDMA_D1_Y_MODIFY)
461#define pMDMA_D1_CURR_DESC_PTR  (_PTR_TO_VOL_VOID_PTR MDMA_D1_CURR_DESC_PTR)
462#define pMDMA_D1_CURR_ADDR  (_PTR_TO_VOL_VOID_PTR MDMA_D1_CURR_ADDR)
463#define pMDMA_D1_CURR_X_COUNT ((volatile uint16_t *)MDMA_D1_CURR_X_COUNT)
464#define pMDMA_D1_CURR_Y_COUNT ((volatile uint16_t *)MDMA_D1_CURR_Y_COUNT)
465#define pMDMA_D1_IRQ_STATUS     ((volatile uint16_t *)MDMA_D1_IRQ_STATUS)
466#define pMDMA_D1_PERIPHERAL_MAP ((volatile uint16_t *)MDMA_D1_PERIPHERAL_MAP)
467
468#define pMDMA_S1_CONFIG     ((volatile uint16_t *)MDMA_S1_CONFIG)
469#define pMDMA_S1_NEXT_DESC_PTR  (_PTR_TO_VOL_VOID_PTR MDMA_S1_NEXT_DESC_PTR)
470#define pMDMA_S1_START_ADDR     (_PTR_TO_VOL_VOID_PTR MDMA_S1_START_ADDR)
471#define pMDMA_S1_X_COUNT    ((volatile uint16_t *)MDMA_S1_X_COUNT)
472#define pMDMA_S1_Y_COUNT    ((volatile uint16_t *)MDMA_S1_Y_COUNT)
473#define pMDMA_S1_X_MODIFY   ((volatile int16_t *)MDMA_S1_X_MODIFY)
474#define pMDMA_S1_Y_MODIFY   ((volatile int16_t *)MDMA_S1_Y_MODIFY)
475#define pMDMA_S1_CURR_DESC_PTR  (_PTR_TO_VOL_VOID_PTR MDMA_S1_CURR_DESC_PTR)
476#define pMDMA_S1_CURR_ADDR  (_PTR_TO_VOL_VOID_PTR MDMA_S1_CURR_ADDR)
477#define pMDMA_S1_CURR_X_COUNT ((volatile uint16_t *)MDMA_S1_CURR_X_COUNT)
478#define pMDMA_S1_CURR_Y_COUNT ((volatile uint16_t *)MDMA_S1_CURR_Y_COUNT)
479#define pMDMA_S1_IRQ_STATUS     ((volatile uint16_t *)MDMA_S1_IRQ_STATUS)
480#define pMDMA_S1_PERIPHERAL_MAP ((volatile uint16_t *)MDMA_S1_PERIPHERAL_MAP)
481
482
483/* Parallel Peripheral Interface (0xFFC01000 - 0xFFC010FF) */
484#define pPPI_CONTROL        ((volatile uint16_t *)PPI_CONTROL)
485#define pPPI_STATUS         ((volatile uint16_t *)PPI_STATUS)
486#define pPPI_DELAY      ((volatile uint16_t *)PPI_DELAY)
487#define pPPI_COUNT      ((volatile uint16_t *)PPI_COUNT)
488#define pPPI_FRAME      ((volatile uint16_t *)PPI_FRAME)
489
490
491/* Two-Wire Interface       (0xFFC01400 - 0xFFC014FF) */
492#define pTWI_CLKDIV     ((volatile uint16_t *)TWI_CLKDIV)
493#define pTWI_CONTROL        ((volatile uint16_t *)TWI_CONTROL)
494#define pTWI_SLAVE_CTL      ((volatile uint16_t *)TWI_SLAVE_CTL)
495#define pTWI_SLAVE_STAT     ((volatile uint16_t *)TWI_SLAVE_STAT)
496#define pTWI_SLAVE_ADDR     ((volatile uint16_t *)TWI_SLAVE_ADDR)
497#define pTWI_MASTER_CTL     ((volatile uint16_t *)TWI_MASTER_CTL)
498#define pTWI_MASTER_STAT    ((volatile uint16_t *)TWI_MASTER_STAT)
499#define pTWI_MASTER_ADDR    ((volatile uint16_t *)TWI_MASTER_ADDR)
500#define pTWI_INT_STAT       ((volatile uint16_t *)TWI_INT_STAT)
501#define pTWI_INT_MASK       ((volatile uint16_t *)TWI_INT_MASK)
502#define pTWI_FIFO_CTL       ((volatile uint16_t *)TWI_FIFO_CTL)
503#define pTWI_FIFO_STAT      ((volatile uint16_t *)TWI_FIFO_STAT)
504#define pTWI_XMT_DATA8      ((volatile uint16_t *)TWI_XMT_DATA8)
505#define pTWI_XMT_DATA16     ((volatile uint16_t *)TWI_XMT_DATA16)
506#define pTWI_RCV_DATA8      ((volatile uint16_t *)TWI_RCV_DATA8)
507#define pTWI_RCV_DATA16     ((volatile uint16_t *)TWI_RCV_DATA16)
508
509
510/* General Purpose I/O Port G (0xFFC01500 - 0xFFC015FF) */
511#define pPORTGIO            ((volatile uint16_t *)PORTGIO)
512#define pPORTGIO_CLEAR      ((volatile uint16_t *)PORTGIO_CLEAR)
513#define pPORTGIO_SET        ((volatile uint16_t *)PORTGIO_SET)
514#define pPORTGIO_TOGGLE     ((volatile uint16_t *)PORTGIO_TOGGLE)
515#define pPORTGIO_MASKA      ((volatile uint16_t *)PORTGIO_MASKA)
516#define pPORTGIO_MASKA_CLEAR    ((volatile uint16_t *)PORTGIO_MASKA_CLEAR)
517#define pPORTGIO_MASKA_SET  ((volatile uint16_t *)PORTGIO_MASKA_SET)
518#define pPORTGIO_MASKA_TOGGLE   ((volatile uint16_t *)PORTGIO_MASKA_TOGGLE)
519#define pPORTGIO_MASKB      ((volatile uint16_t *)PORTGIO_MASKB)
520#define pPORTGIO_MASKB_CLEAR    ((volatile uint16_t *)PORTGIO_MASKB_CLEAR)
521#define pPORTGIO_MASKB_SET  ((volatile uint16_t *)PORTGIO_MASKB_SET)
522#define pPORTGIO_MASKB_TOGGLE   ((volatile uint16_t *)PORTGIO_MASKB_TOGGLE)
523#define pPORTGIO_DIR        ((volatile uint16_t *)PORTGIO_DIR)
524#define pPORTGIO_POLAR      ((volatile uint16_t *)PORTGIO_POLAR)
525#define pPORTGIO_EDGE       ((volatile uint16_t *)PORTGIO_EDGE)
526#define pPORTGIO_BOTH       ((volatile uint16_t *)PORTGIO_BOTH)
527#define pPORTGIO_INEN       ((volatile uint16_t *)PORTGIO_INEN)
528
529
530/* General Purpose I/O Port H (0xFFC01700 - 0xFFC017FF) */
531#define pPORTHIO            ((volatile uint16_t *)PORTHIO)
532#define pPORTHIO_CLEAR      ((volatile uint16_t *)PORTHIO_CLEAR)
533#define pPORTHIO_SET        ((volatile uint16_t *)PORTHIO_SET)
534#define pPORTHIO_TOGGLE     ((volatile uint16_t *)PORTHIO_TOGGLE)
535#define pPORTHIO_MASKA      ((volatile uint16_t *)PORTHIO_MASKA)
536#define pPORTHIO_MASKA_CLEAR    ((volatile uint16_t *)PORTHIO_MASKA_CLEAR)
537#define pPORTHIO_MASKA_SET  ((volatile uint16_t *)PORTHIO_MASKA_SET)
538#define pPORTHIO_MASKA_TOGGLE   ((volatile uint16_t *)PORTHIO_MASKA_TOGGLE)
539#define pPORTHIO_MASKB      ((volatile uint16_t *)PORTHIO_MASKB)
540#define pPORTHIO_MASKB_CLEAR    ((volatile uint16_t *)PORTHIO_MASKB_CLEAR)
541#define pPORTHIO_MASKB_SET  ((volatile uint16_t *)PORTHIO_MASKB_SET)
542#define pPORTHIO_MASKB_TOGGLE   ((volatile uint16_t *)PORTHIO_MASKB_TOGGLE)
543#define pPORTHIO_DIR        ((volatile uint16_t *)PORTHIO_DIR)
544#define pPORTHIO_POLAR      ((volatile uint16_t *)PORTHIO_POLAR)
545#define pPORTHIO_EDGE       ((volatile uint16_t *)PORTHIO_EDGE)
546#define pPORTHIO_BOTH       ((volatile uint16_t *)PORTHIO_BOTH)
547#define pPORTHIO_INEN       ((volatile uint16_t *)PORTHIO_INEN)
548
549
550/* UART1 Controller         (0xFFC02000 - 0xFFC020FF) */
551#define pUART1_DLL      ((volatile uint16_t *)UART1_DLL)
552#define pUART1_DLH      ((volatile uint16_t *)UART1_DLH)
553#define pUART1_GCTL     ((volatile uint16_t *)UART1_GCTL)
554#define pUART1_LCR      ((volatile uint16_t *)UART1_LCR)
555#define pUART1_MCR      ((volatile uint16_t *)UART1_MCR)
556#define pUART1_LSR      ((volatile uint16_t *)UART1_LSR)
557#define pUART1_MSR      ((volatile uint16_t *)UART1_MSR)
558#define pUART1_SCR      ((volatile uint16_t *)UART1_SCR)
559#define pUART1_IER_SET  ((volatile uint16_t *)UART1_IER_SET)
560#define pUART1_IER_CLEAR    ((volatile uint16_t *)UART1_IER_CLEAR)
561#define pUART1_THR      ((volatile uint16_t *)UART1_THR)
562#define pUART1_RBR      ((volatile uint16_t *)UART1_RBR)
563
564
565/* CAN Controller           (0xFFC02A00 - 0xFFC02FFF) */
566/* For Mailboxes 0-15 */
567#define pCAN_MC1            ((volatile uint16_t *)CAN_MC1)
568#define pCAN_MD1            ((volatile uint16_t *)CAN_MD1)
569#define pCAN_TRS1           ((volatile uint16_t *)CAN_TRS1)
570#define pCAN_TRR1           ((volatile uint16_t *)CAN_TRR1)
571#define pCAN_TA1            ((volatile uint16_t *)CAN_TA1)
572#define pCAN_AA1            ((volatile uint16_t *)CAN_AA1)
573#define pCAN_RMP1           ((volatile uint16_t *)CAN_RMP1)
574#define pCAN_RML1           ((volatile uint16_t *)CAN_RML1)
575#define pCAN_MBTIF1         ((volatile uint16_t *)CAN_MBTIF1)
576#define pCAN_MBRIF1         ((volatile uint16_t *)CAN_MBRIF1)
577#define pCAN_MBIM1          ((volatile uint16_t *)CAN_MBIM1)
578#define pCAN_RFH1           ((volatile uint16_t *)CAN_RFH1)
579#define pCAN_OPSS1          ((volatile uint16_t *)CAN_OPSS1)
580
581/* For Mailboxes 16-31 */
582#define pCAN_MC2            ((volatile uint16_t *)CAN_MC2)
583#define pCAN_MD2            ((volatile uint16_t *)CAN_MD2)
584#define pCAN_TRS2           ((volatile uint16_t *)CAN_TRS2)
585#define pCAN_TRR2           ((volatile uint16_t *)CAN_TRR2)
586#define pCAN_TA2            ((volatile uint16_t *)CAN_TA2)
587#define pCAN_AA2            ((volatile uint16_t *)CAN_AA2)
588#define pCAN_RMP2           ((volatile uint16_t *)CAN_RMP2)
589#define pCAN_RML2           ((volatile uint16_t *)CAN_RML2)
590#define pCAN_MBTIF2         ((volatile uint16_t *)CAN_MBTIF2)
591#define pCAN_MBRIF2         ((volatile uint16_t *)CAN_MBRIF2)
592#define pCAN_MBIM2          ((volatile uint16_t *)CAN_MBIM2)
593#define pCAN_RFH2           ((volatile uint16_t *)CAN_RFH2)
594#define pCAN_OPSS2          ((volatile uint16_t *)CAN_OPSS2)
595
596#define pCAN_CLOCK          ((volatile uint16_t *)CAN_CLOCK)
597#define pCAN_TIMING         ((volatile uint16_t *)CAN_TIMING)
598#define pCAN_DEBUG          ((volatile uint16_t *)CAN_DEBUG)
599#define pCAN_STATUS         ((volatile uint16_t *)CAN_STATUS)
600#define pCAN_CEC            ((volatile uint16_t *)CAN_CEC)
601#define pCAN_GIS            ((volatile uint16_t *)CAN_GIS)
602#define pCAN_GIM            ((volatile uint16_t *)CAN_GIM)
603#define pCAN_GIF            ((volatile uint16_t *)CAN_GIF)
604#define pCAN_CONTROL        ((volatile uint16_t *)CAN_CONTROL)
605#define pCAN_INTR           ((volatile uint16_t *)CAN_INTR)
606#define pCAN_MBTD           ((volatile uint16_t *)CAN_MBTD)
607#define pCAN_EWR            ((volatile uint16_t *)CAN_EWR)
608#define pCAN_ESR            ((volatile uint16_t *)CAN_ESR)
609#define pCAN_UCCNT          ((volatile uint16_t *)CAN_UCCNT)
610#define pCAN_UCRC           ((volatile uint16_t *)CAN_UCRC)
611#define pCAN_UCCNF          ((volatile uint16_t *)CAN_UCCNF)
612
613/* Mailbox Acceptance Masks                                             */
614#define pCAN_AM00L          ((volatile uint16_t *)CAN_AM00L)
615#define pCAN_AM00H          ((volatile uint16_t *)CAN_AM00H)
616#define pCAN_AM01L          ((volatile uint16_t *)CAN_AM01L)
617#define pCAN_AM01H          ((volatile uint16_t *)CAN_AM01H)
618#define pCAN_AM02L          ((volatile uint16_t *)CAN_AM02L)
619#define pCAN_AM02H          ((volatile uint16_t *)CAN_AM02H)
620#define pCAN_AM03L          ((volatile uint16_t *)CAN_AM03L)
621#define pCAN_AM03H          ((volatile uint16_t *)CAN_AM03H)
622#define pCAN_AM04L          ((volatile uint16_t *)CAN_AM04L)
623#define pCAN_AM04H          ((volatile uint16_t *)CAN_AM04H)
624#define pCAN_AM05L          ((volatile uint16_t *)CAN_AM05L)
625#define pCAN_AM05H          ((volatile uint16_t *)CAN_AM05H)
626#define pCAN_AM06L          ((volatile uint16_t *)CAN_AM06L)
627#define pCAN_AM06H          ((volatile uint16_t *)CAN_AM06H)
628#define pCAN_AM07L          ((volatile uint16_t *)CAN_AM07L)
629#define pCAN_AM07H          ((volatile uint16_t *)CAN_AM07H)
630#define pCAN_AM08L          ((volatile uint16_t *)CAN_AM08L)
631#define pCAN_AM08H          ((volatile uint16_t *)CAN_AM08H)
632#define pCAN_AM09L          ((volatile uint16_t *)CAN_AM09L)
633#define pCAN_AM09H          ((volatile uint16_t *)CAN_AM09H)
634#define pCAN_AM10L          ((volatile uint16_t *)CAN_AM10L)
635#define pCAN_AM10H          ((volatile uint16_t *)CAN_AM10H)
636#define pCAN_AM11L          ((volatile uint16_t *)CAN_AM11L)
637#define pCAN_AM11H          ((volatile uint16_t *)CAN_AM11H)
638#define pCAN_AM12L          ((volatile uint16_t *)CAN_AM12L)
639#define pCAN_AM12H          ((volatile uint16_t *)CAN_AM12H)
640#define pCAN_AM13L          ((volatile uint16_t *)CAN_AM13L)
641#define pCAN_AM13H          ((volatile uint16_t *)CAN_AM13H)
642#define pCAN_AM14L          ((volatile uint16_t *)CAN_AM14L)
643#define pCAN_AM14H          ((volatile uint16_t *)CAN_AM14H)
644#define pCAN_AM15L          ((volatile uint16_t *)CAN_AM15L)
645#define pCAN_AM15H          ((volatile uint16_t *)CAN_AM15H)
646
647#define pCAN_AM16L          ((volatile uint16_t *)CAN_AM16L)
648#define pCAN_AM16H          ((volatile uint16_t *)CAN_AM16H)
649#define pCAN_AM17L          ((volatile uint16_t *)CAN_AM17L)
650#define pCAN_AM17H          ((volatile uint16_t *)CAN_AM17H)
651#define pCAN_AM18L          ((volatile uint16_t *)CAN_AM18L)
652#define pCAN_AM18H          ((volatile uint16_t *)CAN_AM18H)
653#define pCAN_AM19L          ((volatile uint16_t *)CAN_AM19L)
654#define pCAN_AM19H          ((volatile uint16_t *)CAN_AM19H)
655#define pCAN_AM20L          ((volatile uint16_t *)CAN_AM20L)
656#define pCAN_AM20H          ((volatile uint16_t *)CAN_AM20H)
657#define pCAN_AM21L          ((volatile uint16_t *)CAN_AM21L)
658#define pCAN_AM21H          ((volatile uint16_t *)CAN_AM21H)
659#define pCAN_AM22L          ((volatile uint16_t *)CAN_AM22L)
660#define pCAN_AM22H          ((volatile uint16_t *)CAN_AM22H)
661#define pCAN_AM23L          ((volatile uint16_t *)CAN_AM23L)
662#define pCAN_AM23H          ((volatile uint16_t *)CAN_AM23H)
663#define pCAN_AM24L          ((volatile uint16_t *)CAN_AM24L)
664#define pCAN_AM24H          ((volatile uint16_t *)CAN_AM24H)
665#define pCAN_AM25L          ((volatile uint16_t *)CAN_AM25L)
666#define pCAN_AM25H          ((volatile uint16_t *)CAN_AM25H)
667#define pCAN_AM26L          ((volatile uint16_t *)CAN_AM26L)
668#define pCAN_AM26H          ((volatile uint16_t *)CAN_AM26H)
669#define pCAN_AM27L          ((volatile uint16_t *)CAN_AM27L)
670#define pCAN_AM27H          ((volatile uint16_t *)CAN_AM27H)
671#define pCAN_AM28L          ((volatile uint16_t *)CAN_AM28L)
672#define pCAN_AM28H          ((volatile uint16_t *)CAN_AM28H)
673#define pCAN_AM29L          ((volatile uint16_t *)CAN_AM29L)
674#define pCAN_AM29H          ((volatile uint16_t *)CAN_AM29H)
675#define pCAN_AM30L          ((volatile uint16_t *)CAN_AM30L)
676#define pCAN_AM30H          ((volatile uint16_t *)CAN_AM30H)
677#define pCAN_AM31L          ((volatile uint16_t *)CAN_AM31L)
678#define pCAN_AM31H          ((volatile uint16_t *)CAN_AM31H)
679
680/* CAN Acceptance Mask Area Macros  */
681#define pCAN_AM_L(x)        ((volatile uint16_t *)CAN_AM_L(x))
682#define pCAN_AM_H(x)        ((volatile uint16_t *)CAN_AM_H(x))
683
684/* Mailbox Registers                                                        */
685#define pCAN_MB00_DATA0     ((volatile uint16_t *)CAN_MB00_DATA0)
686#define pCAN_MB00_DATA1     ((volatile uint16_t *)CAN_MB00_DATA1)
687#define pCAN_MB00_DATA2     ((volatile uint16_t *)CAN_MB00_DATA2)
688#define pCAN_MB00_DATA3     ((volatile uint16_t *)CAN_MB00_DATA3)
689#define pCAN_MB00_LENGTH    ((volatile uint16_t *)CAN_MB00_LENGTH)
690#define pCAN_MB00_TIMESTAMP ((volatile uint16_t *)CAN_MB00_TIMESTAMP)
691#define pCAN_MB00_ID0       ((volatile uint16_t *)CAN_MB00_ID0)
692#define pCAN_MB00_ID1       ((volatile uint16_t *)CAN_MB00_ID1)
693
694#define pCAN_MB01_DATA0     ((volatile uint16_t *)CAN_MB01_DATA0)
695#define pCAN_MB01_DATA1     ((volatile uint16_t *)CAN_MB01_DATA1)
696#define pCAN_MB01_DATA2     ((volatile uint16_t *)CAN_MB01_DATA2)
697#define pCAN_MB01_DATA3     ((volatile uint16_t *)CAN_MB01_DATA3)
698#define pCAN_MB01_LENGTH    ((volatile uint16_t *)CAN_MB01_LENGTH)
699#define pCAN_MB01_TIMESTAMP ((volatile uint16_t *)CAN_MB01_TIMESTAMP)
700#define pCAN_MB01_ID0       ((volatile uint16_t *)CAN_MB01_ID0)
701#define pCAN_MB01_ID1       ((volatile uint16_t *)CAN_MB01_ID1)
702
703#define pCAN_MB02_DATA0     ((volatile uint16_t *)CAN_MB02_DATA0)
704#define pCAN_MB02_DATA1     ((volatile uint16_t *)CAN_MB02_DATA1)
705#define pCAN_MB02_DATA2     ((volatile uint16_t *)CAN_MB02_DATA2)
706#define pCAN_MB02_DATA3     ((volatile uint16_t *)CAN_MB02_DATA3)
707#define pCAN_MB02_LENGTH    ((volatile uint16_t *)CAN_MB02_LENGTH)
708#define pCAN_MB02_TIMESTAMP ((volatile uint16_t *)CAN_MB02_TIMESTAMP)
709#define pCAN_MB02_ID0       ((volatile uint16_t *)CAN_MB02_ID0)
710#define pCAN_MB02_ID1       ((volatile uint16_t *)CAN_MB02_ID1)
711
712#define pCAN_MB03_DATA0     ((volatile uint16_t *)CAN_MB03_DATA0)
713#define pCAN_MB03_DATA1     ((volatile uint16_t *)CAN_MB03_DATA1)
714#define pCAN_MB03_DATA2     ((volatile uint16_t *)CAN_MB03_DATA2)
715#define pCAN_MB03_DATA3     ((volatile uint16_t *)CAN_MB03_DATA3)
716#define pCAN_MB03_LENGTH    ((volatile uint16_t *)CAN_MB03_LENGTH)
717#define pCAN_MB03_TIMESTAMP ((volatile uint16_t *)CAN_MB03_TIMESTAMP)
718#define pCAN_MB03_ID0       ((volatile uint16_t *)CAN_MB03_ID0)
719#define pCAN_MB03_ID1       ((volatile uint16_t *)CAN_MB03_ID1)
720
721#define pCAN_MB04_DATA0     ((volatile uint16_t *)CAN_MB04_DATA0)
722#define pCAN_MB04_DATA1     ((volatile uint16_t *)CAN_MB04_DATA1)
723#define pCAN_MB04_DATA2     ((volatile uint16_t *)CAN_MB04_DATA2)
724#define pCAN_MB04_DATA3     ((volatile uint16_t *)CAN_MB04_DATA3)
725#define pCAN_MB04_LENGTH    ((volatile uint16_t *)CAN_MB04_LENGTH)
726#define pCAN_MB04_TIMESTAMP ((volatile uint16_t *)CAN_MB04_TIMESTAMP)
727#define pCAN_MB04_ID0       ((volatile uint16_t *)CAN_MB04_ID0)
728#define pCAN_MB04_ID1       ((volatile uint16_t *)CAN_MB04_ID1)
729
730#define pCAN_MB05_DATA0     ((volatile uint16_t *)CAN_MB05_DATA0)
731#define pCAN_MB05_DATA1     ((volatile uint16_t *)CAN_MB05_DATA1)
732#define pCAN_MB05_DATA2     ((volatile uint16_t *)CAN_MB05_DATA2)
733#define pCAN_MB05_DATA3     ((volatile uint16_t *)CAN_MB05_DATA3)
734#define pCAN_MB05_LENGTH    ((volatile uint16_t *)CAN_MB05_LENGTH)
735#define pCAN_MB05_TIMESTAMP ((volatile uint16_t *)CAN_MB05_TIMESTAMP)
736#define pCAN_MB05_ID0       ((volatile uint16_t *)CAN_MB05_ID0)
737#define pCAN_MB05_ID1       ((volatile uint16_t *)CAN_MB05_ID1)
738
739#define pCAN_MB06_DATA0     ((volatile uint16_t *)CAN_MB06_DATA0)
740#define pCAN_MB06_DATA1     ((volatile uint16_t *)CAN_MB06_DATA1)
741#define pCAN_MB06_DATA2     ((volatile uint16_t *)CAN_MB06_DATA2)
742#define pCAN_MB06_DATA3     ((volatile uint16_t *)CAN_MB06_DATA3)
743#define pCAN_MB06_LENGTH    ((volatile uint16_t *)CAN_MB06_LENGTH)
744#define pCAN_MB06_TIMESTAMP ((volatile uint16_t *)CAN_MB06_TIMESTAMP)
745#define pCAN_MB06_ID0       ((volatile uint16_t *)CAN_MB06_ID0)
746#define pCAN_MB06_ID1       ((volatile uint16_t *)CAN_MB06_ID1)
747
748#define pCAN_MB07_DATA0     ((volatile uint16_t *)CAN_MB07_DATA0)
749#define pCAN_MB07_DATA1     ((volatile uint16_t *)CAN_MB07_DATA1)
750#define pCAN_MB07_DATA2     ((volatile uint16_t *)CAN_MB07_DATA2)
751#define pCAN_MB07_DATA3     ((volatile uint16_t *)CAN_MB07_DATA3)
752#define pCAN_MB07_LENGTH    ((volatile uint16_t *)CAN_MB07_LENGTH)
753#define pCAN_MB07_TIMESTAMP ((volatile uint16_t *)CAN_MB07_TIMESTAMP)
754#define pCAN_MB07_ID0       ((volatile uint16_t *)CAN_MB07_ID0)
755#define pCAN_MB07_ID1       ((volatile uint16_t *)CAN_MB07_ID1)
756
757#define pCAN_MB08_DATA0     ((volatile uint16_t *)CAN_MB08_DATA0)
758#define pCAN_MB08_DATA1     ((volatile uint16_t *)CAN_MB08_DATA1)
759#define pCAN_MB08_DATA2     ((volatile uint16_t *)CAN_MB08_DATA2)
760#define pCAN_MB08_DATA3     ((volatile uint16_t *)CAN_MB08_DATA3)
761#define pCAN_MB08_LENGTH    ((volatile uint16_t *)CAN_MB08_LENGTH)
762#define pCAN_MB08_TIMESTAMP ((volatile uint16_t *)CAN_MB08_TIMESTAMP)
763#define pCAN_MB08_ID0       ((volatile uint16_t *)CAN_MB08_ID0)
764#define pCAN_MB08_ID1       ((volatile uint16_t *)CAN_MB08_ID1)
765
766#define pCAN_MB09_DATA0     ((volatile uint16_t *)CAN_MB09_DATA0)
767#define pCAN_MB09_DATA1     ((volatile uint16_t *)CAN_MB09_DATA1)
768#define pCAN_MB09_DATA2     ((volatile uint16_t *)CAN_MB09_DATA2)
769#define pCAN_MB09_DATA3     ((volatile uint16_t *)CAN_MB09_DATA3)
770#define pCAN_MB09_LENGTH    ((volatile uint16_t *)CAN_MB09_LENGTH)
771#define pCAN_MB09_TIMESTAMP ((volatile uint16_t *)CAN_MB09_TIMESTAMP)
772#define pCAN_MB09_ID0       ((volatile uint16_t *)CAN_MB09_ID0)
773#define pCAN_MB09_ID1       ((volatile uint16_t *)CAN_MB09_ID1)
774
775#define pCAN_MB10_DATA0     ((volatile uint16_t *)CAN_MB10_DATA0)
776#define pCAN_MB10_DATA1     ((volatile uint16_t *)CAN_MB10_DATA1)
777#define pCAN_MB10_DATA2     ((volatile uint16_t *)CAN_MB10_DATA2)
778#define pCAN_MB10_DATA3     ((volatile uint16_t *)CAN_MB10_DATA3)
779#define pCAN_MB10_LENGTH    ((volatile uint16_t *)CAN_MB10_LENGTH)
780#define pCAN_MB10_TIMESTAMP ((volatile uint16_t *)CAN_MB10_TIMESTAMP)
781#define pCAN_MB10_ID0       ((volatile uint16_t *)CAN_MB10_ID0)
782#define pCAN_MB10_ID1       ((volatile uint16_t *)CAN_MB10_ID1)
783
784#define pCAN_MB11_DATA0     ((volatile uint16_t *)CAN_MB11_DATA0)
785#define pCAN_MB11_DATA1     ((volatile uint16_t *)CAN_MB11_DATA1)
786#define pCAN_MB11_DATA2     ((volatile uint16_t *)CAN_MB11_DATA2)
787#define pCAN_MB11_DATA3     ((volatile uint16_t *)CAN_MB11_DATA3)
788#define pCAN_MB11_LENGTH    ((volatile uint16_t *)CAN_MB11_LENGTH)
789#define pCAN_MB11_TIMESTAMP ((volatile uint16_t *)CAN_MB11_TIMESTAMP)
790#define pCAN_MB11_ID0       ((volatile uint16_t *)CAN_MB11_ID0)
791#define pCAN_MB11_ID1       ((volatile uint16_t *)CAN_MB11_ID1)
792
793#define pCAN_MB12_DATA0     ((volatile uint16_t *)CAN_MB12_DATA0)
794#define pCAN_MB12_DATA1     ((volatile uint16_t *)CAN_MB12_DATA1)
795#define pCAN_MB12_DATA2     ((volatile uint16_t *)CAN_MB12_DATA2)
796#define pCAN_MB12_DATA3     ((volatile uint16_t *)CAN_MB12_DATA3)
797#define pCAN_MB12_LENGTH    ((volatile uint16_t *)CAN_MB12_LENGTH)
798#define pCAN_MB12_TIMESTAMP ((volatile uint16_t *)CAN_MB12_TIMESTAMP)
799#define pCAN_MB12_ID0       ((volatile uint16_t *)CAN_MB12_ID0)
800#define pCAN_MB12_ID1       ((volatile uint16_t *)CAN_MB12_ID1)
801
802#define pCAN_MB13_DATA0     ((volatile uint16_t *)CAN_MB13_DATA0)
803#define pCAN_MB13_DATA1     ((volatile uint16_t *)CAN_MB13_DATA1)
804#define pCAN_MB13_DATA2     ((volatile uint16_t *)CAN_MB13_DATA2)
805#define pCAN_MB13_DATA3     ((volatile uint16_t *)CAN_MB13_DATA3)
806#define pCAN_MB13_LENGTH    ((volatile uint16_t *)CAN_MB13_LENGTH)
807#define pCAN_MB13_TIMESTAMP ((volatile uint16_t *)CAN_MB13_TIMESTAMP)
808#define pCAN_MB13_ID0       ((volatile uint16_t *)CAN_MB13_ID0)
809#define pCAN_MB13_ID1       ((volatile uint16_t *)CAN_MB13_ID1)
810
811#define pCAN_MB14_DATA0     ((volatile uint16_t *)CAN_MB14_DATA0)
812#define pCAN_MB14_DATA1     ((volatile uint16_t *)CAN_MB14_DATA1)
813#define pCAN_MB14_DATA2     ((volatile uint16_t *)CAN_MB14_DATA2)
814#define pCAN_MB14_DATA3     ((volatile uint16_t *)CAN_MB14_DATA3)
815#define pCAN_MB14_LENGTH    ((volatile uint16_t *)CAN_MB14_LENGTH)
816#define pCAN_MB14_TIMESTAMP ((volatile uint16_t *)CAN_MB14_TIMESTAMP)
817#define pCAN_MB14_ID0       ((volatile uint16_t *)CAN_MB14_ID0)
818#define pCAN_MB14_ID1       ((volatile uint16_t *)CAN_MB14_ID1)
819
820#define pCAN_MB15_DATA0     ((volatile uint16_t *)CAN_MB15_DATA0)
821#define pCAN_MB15_DATA1     ((volatile uint16_t *)CAN_MB15_DATA1)
822#define pCAN_MB15_DATA2     ((volatile uint16_t *)CAN_MB15_DATA2)
823#define pCAN_MB15_DATA3     ((volatile uint16_t *)CAN_MB15_DATA3)
824#define pCAN_MB15_LENGTH    ((volatile uint16_t *)CAN_MB15_LENGTH)
825#define pCAN_MB15_TIMESTAMP ((volatile uint16_t *)CAN_MB15_TIMESTAMP)
826#define pCAN_MB15_ID0       ((volatile uint16_t *)CAN_MB15_ID0)
827#define pCAN_MB15_ID1       ((volatile uint16_t *)CAN_MB15_ID1)
828
829#define pCAN_MB16_DATA0     ((volatile uint16_t *)CAN_MB16_DATA0)
830#define pCAN_MB16_DATA1     ((volatile uint16_t *)CAN_MB16_DATA1)
831#define pCAN_MB16_DATA2     ((volatile uint16_t *)CAN_MB16_DATA2)
832#define pCAN_MB16_DATA3     ((volatile uint16_t *)CAN_MB16_DATA3)
833#define pCAN_MB16_LENGTH    ((volatile uint16_t *)CAN_MB16_LENGTH)
834#define pCAN_MB16_TIMESTAMP ((volatile uint16_t *)CAN_MB16_TIMESTAMP)
835#define pCAN_MB16_ID0       ((volatile uint16_t *)CAN_MB16_ID0)
836#define pCAN_MB16_ID1       ((volatile uint16_t *)CAN_MB16_ID1)
837
838#define pCAN_MB17_DATA0     ((volatile uint16_t *)CAN_MB17_DATA0)
839#define pCAN_MB17_DATA1     ((volatile uint16_t *)CAN_MB17_DATA1)
840#define pCAN_MB17_DATA2     ((volatile uint16_t *)CAN_MB17_DATA2)
841#define pCAN_MB17_DATA3     ((volatile uint16_t *)CAN_MB17_DATA3)
842#define pCAN_MB17_LENGTH    ((volatile uint16_t *)CAN_MB17_LENGTH)
843#define pCAN_MB17_TIMESTAMP ((volatile uint16_t *)CAN_MB17_TIMESTAMP)
844#define pCAN_MB17_ID0       ((volatile uint16_t *)CAN_MB17_ID0)
845#define pCAN_MB17_ID1       ((volatile uint16_t *)CAN_MB17_ID1)
846
847#define pCAN_MB18_DATA0     ((volatile uint16_t *)CAN_MB18_DATA0)
848#define pCAN_MB18_DATA1     ((volatile uint16_t *)CAN_MB18_DATA1)
849#define pCAN_MB18_DATA2     ((volatile uint16_t *)CAN_MB18_DATA2)
850#define pCAN_MB18_DATA3     ((volatile uint16_t *)CAN_MB18_DATA3)
851#define pCAN_MB18_LENGTH    ((volatile uint16_t *)CAN_MB18_LENGTH)
852#define pCAN_MB18_TIMESTAMP ((volatile uint16_t *)CAN_MB18_TIMESTAMP)
853#define pCAN_MB18_ID0       ((volatile uint16_t *)CAN_MB18_ID0)
854#define pCAN_MB18_ID1       ((volatile uint16_t *)CAN_MB18_ID1)
855
856#define pCAN_MB19_DATA0     ((volatile uint16_t *)CAN_MB19_DATA0)
857#define pCAN_MB19_DATA1     ((volatile uint16_t *)CAN_MB19_DATA1)
858#define pCAN_MB19_DATA2     ((volatile uint16_t *)CAN_MB19_DATA2)
859#define pCAN_MB19_DATA3     ((volatile uint16_t *)CAN_MB19_DATA3)
860#define pCAN_MB19_LENGTH    ((volatile uint16_t *)CAN_MB19_LENGTH)
861#define pCAN_MB19_TIMESTAMP ((volatile uint16_t *)CAN_MB19_TIMESTAMP)
862#define pCAN_MB19_ID0       ((volatile uint16_t *)CAN_MB19_ID0)
863#define pCAN_MB19_ID1       ((volatile uint16_t *)CAN_MB19_ID1)
864
865#define pCAN_MB20_DATA0     ((volatile uint16_t *)CAN_MB20_DATA0)
866#define pCAN_MB20_DATA1     ((volatile uint16_t *)CAN_MB20_DATA1)
867#define pCAN_MB20_DATA2     ((volatile uint16_t *)CAN_MB20_DATA2)
868#define pCAN_MB20_DATA3     ((volatile uint16_t *)CAN_MB20_DATA3)
869#define pCAN_MB20_LENGTH    ((volatile uint16_t *)CAN_MB20_LENGTH)
870#define pCAN_MB20_TIMESTAMP ((volatile uint16_t *)CAN_MB20_TIMESTAMP)
871#define pCAN_MB20_ID0       ((volatile uint16_t *)CAN_MB20_ID0)
872#define pCAN_MB20_ID1       ((volatile uint16_t *)CAN_MB20_ID1)
873
874#define pCAN_MB21_DATA0     ((volatile uint16_t *)CAN_MB21_DATA0)
875#define pCAN_MB21_DATA1     ((volatile uint16_t *)CAN_MB21_DATA1)
876#define pCAN_MB21_DATA2     ((volatile uint16_t *)CAN_MB21_DATA2)
877#define pCAN_MB21_DATA3     ((volatile uint16_t *)CAN_MB21_DATA3)
878#define pCAN_MB21_LENGTH    ((volatile uint16_t *)CAN_MB21_LENGTH)
879#define pCAN_MB21_TIMESTAMP ((volatile uint16_t *)CAN_MB21_TIMESTAMP)
880#define pCAN_MB21_ID0       ((volatile uint16_t *)CAN_MB21_ID0)
881#define pCAN_MB21_ID1       ((volatile uint16_t *)CAN_MB21_ID1)
882
883#define pCAN_MB22_DATA0     ((volatile uint16_t *)CAN_MB22_DATA0)
884#define pCAN_MB22_DATA1     ((volatile uint16_t *)CAN_MB22_DATA1)
885#define pCAN_MB22_DATA2     ((volatile uint16_t *)CAN_MB22_DATA2)
886#define pCAN_MB22_DATA3     ((volatile uint16_t *)CAN_MB22_DATA3)
887#define pCAN_MB22_LENGTH    ((volatile uint16_t *)CAN_MB22_LENGTH)
888#define pCAN_MB22_TIMESTAMP ((volatile uint16_t *)CAN_MB22_TIMESTAMP)
889#define pCAN_MB22_ID0       ((volatile uint16_t *)CAN_MB22_ID0)
890#define pCAN_MB22_ID1       ((volatile uint16_t *)CAN_MB22_ID1)
891
892#define pCAN_MB23_DATA0     ((volatile uint16_t *)CAN_MB23_DATA0)
893#define pCAN_MB23_DATA1     ((volatile uint16_t *)CAN_MB23_DATA1)
894#define pCAN_MB23_DATA2     ((volatile uint16_t *)CAN_MB23_DATA2)
895#define pCAN_MB23_DATA3     ((volatile uint16_t *)CAN_MB23_DATA3)
896#define pCAN_MB23_LENGTH    ((volatile uint16_t *)CAN_MB23_LENGTH)
897#define pCAN_MB23_TIMESTAMP ((volatile uint16_t *)CAN_MB23_TIMESTAMP)
898#define pCAN_MB23_ID0       ((volatile uint16_t *)CAN_MB23_ID0)
899#define pCAN_MB23_ID1       ((volatile uint16_t *)CAN_MB23_ID1)
900
901#define pCAN_MB24_DATA0     ((volatile uint16_t *)CAN_MB24_DATA0)
902#define pCAN_MB24_DATA1     ((volatile uint16_t *)CAN_MB24_DATA1)
903#define pCAN_MB24_DATA2     ((volatile uint16_t *)CAN_MB24_DATA2)
904#define pCAN_MB24_DATA3     ((volatile uint16_t *)CAN_MB24_DATA3)
905#define pCAN_MB24_LENGTH    ((volatile uint16_t *)CAN_MB24_LENGTH)
906#define pCAN_MB24_TIMESTAMP ((volatile uint16_t *)CAN_MB24_TIMESTAMP)
907#define pCAN_MB24_ID0       ((volatile uint16_t *)CAN_MB24_ID0)
908#define pCAN_MB24_ID1       ((volatile uint16_t *)CAN_MB24_ID1)
909
910#define pCAN_MB25_DATA0     ((volatile uint16_t *)CAN_MB25_DATA0)
911#define pCAN_MB25_DATA1     ((volatile uint16_t *)CAN_MB25_DATA1)
912#define pCAN_MB25_DATA2     ((volatile uint16_t *)CAN_MB25_DATA2)
913#define pCAN_MB25_DATA3     ((volatile uint16_t *)CAN_MB25_DATA3)
914#define pCAN_MB25_LENGTH    ((volatile uint16_t *)CAN_MB25_LENGTH)
915#define pCAN_MB25_TIMESTAMP ((volatile uint16_t *)CAN_MB25_TIMESTAMP)
916#define pCAN_MB25_ID0       ((volatile uint16_t *)CAN_MB25_ID0)
917#define pCAN_MB25_ID1       ((volatile uint16_t *)CAN_MB25_ID1)
918
919#define pCAN_MB26_DATA0     ((volatile uint16_t *)CAN_MB26_DATA0)
920#define pCAN_MB26_DATA1     ((volatile uint16_t *)CAN_MB26_DATA1)
921#define pCAN_MB26_DATA2     ((volatile uint16_t *)CAN_MB26_DATA2)
922#define pCAN_MB26_DATA3     ((volatile uint16_t *)CAN_MB26_DATA3)
923#define pCAN_MB26_LENGTH    ((volatile uint16_t *)CAN_MB26_LENGTH)
924#define pCAN_MB26_TIMESTAMP ((volatile uint16_t *)CAN_MB26_TIMESTAMP)
925#define pCAN_MB26_ID0       ((volatile uint16_t *)CAN_MB26_ID0)
926#define pCAN_MB26_ID1       ((volatile uint16_t *)CAN_MB26_ID1)
927
928#define pCAN_MB27_DATA0     ((volatile uint16_t *)CAN_MB27_DATA0)
929#define pCAN_MB27_DATA1     ((volatile uint16_t *)CAN_MB27_DATA1)
930#define pCAN_MB27_DATA2     ((volatile uint16_t *)CAN_MB27_DATA2)
931#define pCAN_MB27_DATA3     ((volatile uint16_t *)CAN_MB27_DATA3)
932#define pCAN_MB27_LENGTH    ((volatile uint16_t *)CAN_MB27_LENGTH)
933#define pCAN_MB27_TIMESTAMP ((volatile uint16_t *)CAN_MB27_TIMESTAMP)
934#define pCAN_MB27_ID0       ((volatile uint16_t *)CAN_MB27_ID0)
935#define pCAN_MB27_ID1       ((volatile uint16_t *)CAN_MB27_ID1)
936
937#define pCAN_MB28_DATA0     ((volatile uint16_t *)CAN_MB28_DATA0)
938#define pCAN_MB28_DATA1     ((volatile uint16_t *)CAN_MB28_DATA1)
939#define pCAN_MB28_DATA2     ((volatile uint16_t *)CAN_MB28_DATA2)
940#define pCAN_MB28_DATA3     ((volatile uint16_t *)CAN_MB28_DATA3)
941#define pCAN_MB28_LENGTH    ((volatile uint16_t *)CAN_MB28_LENGTH)
942#define pCAN_MB28_TIMESTAMP ((volatile uint16_t *)CAN_MB28_TIMESTAMP)
943#define pCAN_MB28_ID0       ((volatile uint16_t *)CAN_MB28_ID0)
944#define pCAN_MB28_ID1       ((volatile uint16_t *)CAN_MB28_ID1)
945
946#define pCAN_MB29_DATA0     ((volatile uint16_t *)CAN_MB29_DATA0)
947#define pCAN_MB29_DATA1     ((volatile uint16_t *)CAN_MB29_DATA1)
948#define pCAN_MB29_DATA2     ((volatile uint16_t *)CAN_MB29_DATA2)
949#define pCAN_MB29_DATA3     ((volatile uint16_t *)CAN_MB29_DATA3)
950#define pCAN_MB29_LENGTH    ((volatile uint16_t *)CAN_MB29_LENGTH)
951#define pCAN_MB29_TIMESTAMP ((volatile uint16_t *)CAN_MB29_TIMESTAMP)
952#define pCAN_MB29_ID0       ((volatile uint16_t *)CAN_MB29_ID0)
953#define pCAN_MB29_ID1       ((volatile uint16_t *)CAN_MB29_ID1)
954
955#define pCAN_MB30_DATA0     ((volatile uint16_t *)CAN_MB30_DATA0)
956#define pCAN_MB30_DATA1     ((volatile uint16_t *)CAN_MB30_DATA1)
957#define pCAN_MB30_DATA2     ((volatile uint16_t *)CAN_MB30_DATA2)
958#define pCAN_MB30_DATA3     ((volatile uint16_t *)CAN_MB30_DATA3)
959#define pCAN_MB30_LENGTH    ((volatile uint16_t *)CAN_MB30_LENGTH)
960#define pCAN_MB30_TIMESTAMP ((volatile uint16_t *)CAN_MB30_TIMESTAMP)
961#define pCAN_MB30_ID0       ((volatile uint16_t *)CAN_MB30_ID0)
962#define pCAN_MB30_ID1       ((volatile uint16_t *)CAN_MB30_ID1)
963
964#define pCAN_MB31_DATA0     ((volatile uint16_t *)CAN_MB31_DATA0)
965#define pCAN_MB31_DATA1     ((volatile uint16_t *)CAN_MB31_DATA1)
966#define pCAN_MB31_DATA2     ((volatile uint16_t *)CAN_MB31_DATA2)
967#define pCAN_MB31_DATA3     ((volatile uint16_t *)CAN_MB31_DATA3)
968#define pCAN_MB31_LENGTH    ((volatile uint16_t *)CAN_MB31_LENGTH)
969#define pCAN_MB31_TIMESTAMP ((volatile uint16_t *)CAN_MB31_TIMESTAMP)
970#define pCAN_MB31_ID0       ((volatile uint16_t *)CAN_MB31_ID0)
971#define pCAN_MB31_ID1       ((volatile uint16_t *)CAN_MB31_ID1)
972
973
974/* CAN Mailbox Area Macros      */
975#define pCAN_MB_ID1(x)          ((volatile uint16_t *)CAN_MB_ID1(x))
976#define pCAN_MB_ID0(x)          ((volatile uint16_t *)CAN_MB_ID0(x))
977#define pCAN_MB_TIMESTAMP(x)    ((volatile uint16_t *)CAN_MB_TIMESTAMP(x))
978#define pCAN_MB_LENGTH(x)       ((volatile uint16_t *)CAN_MB_LENGTH(x))
979#define pCAN_MB_DATA3(x)        ((volatile uint16_t *)CAN_MB_DATA3(x))
980#define pCAN_MB_DATA2(x)        ((volatile uint16_t *)CAN_MB_DATA2(x))
981#define pCAN_MB_DATA1(x)        ((volatile uint16_t *)CAN_MB_DATA1(x))
982#define pCAN_MB_DATA0(x)        ((volatile uint16_t *)CAN_MB_DATA0(x))
983
984
985/* Motor Control PWM1 Registers (0xFFC03000 - 0xFFC030FF) */
986#define pPWM1_CTRL     ((volatile uint16_t *)PWM1_CTRL)
987#define pPWM1_STAT     ((volatile uint16_t *)PWM1_STAT)
988#define pPWM1_TM       ((volatile uint16_t *)PWM1_TM)
989#define pPWM1_DT       ((volatile uint16_t *)PWM1_DT)
990#define pPWM1_GATE     ((volatile uint16_t *)PWM1_GATE)
991#define pPWM1_CHA      ((volatile uint16_t *)PWM1_CHA)
992#define pPWM1_CHB      ((volatile uint16_t *)PWM1_CHB)
993#define pPWM1_CHC      ((volatile uint16_t *)PWM1_CHC)
994#define pPWM1_SEG      ((volatile uint16_t *)PWM1_SEG)
995#define pPWM1_SYNCWT   ((volatile uint16_t *)PWM1_SYNCWT)
996#define pPWM1_CHAL     ((volatile uint16_t *)PWM1_CHAL)
997#define pPWM1_CHBL     ((volatile uint16_t *)PWM1_CHBL)
998#define pPWM1_CHCL     ((volatile uint16_t *)PWM1_CHCL)
999#define pPWM1_LSI      ((volatile uint16_t *)PWM1_LSI)
1000#define pPWM1_STAT2    ((volatile uint16_t *)PWM1_STAT2)
1001
1002
1003/* ADC Controller Module Registers (0xFFC03100 - 0xFFC031FF) */
1004#define pACM_CTL        ((volatile uint16_t *)ACM_CTL)
1005#define pACM_TC0        ((volatile uint16_t *)ACM_TC0)
1006#define pACM_TC1        ((volatile uint16_t *)ACM_TC1)
1007#define pACM_STAT       ((volatile uint16_t *)ACM_STAT)
1008#define pACM_ES         ((volatile uint16_t *)ACM_ES)
1009#define pACM_IMSK       ((volatile uint16_t *)ACM_IMSK)
1010#define pACM_MS         ((volatile uint16_t *)ACM_MS)
1011#define pACM_EMSK       ((volatile uint16_t *)ACM_EMSK)
1012
1013#define pACM_ER0        ((volatile uint16_t *)ACM_ER0)
1014#define pACM_ER1        ((volatile uint16_t *)ACM_ER1)
1015#define pACM_ER2        ((volatile uint16_t *)ACM_ER2)
1016#define pACM_ER3        ((volatile uint16_t *)ACM_ER3)
1017#define pACM_ER4        ((volatile uint16_t *)ACM_ER4)
1018#define pACM_ER5        ((volatile uint16_t *)ACM_ER5)
1019#define pACM_ER6        ((volatile uint16_t *)ACM_ER6)
1020#define pACM_ER7        ((volatile uint16_t *)ACM_ER7)
1021#define pACM_ER8        ((volatile uint16_t *)ACM_ER8)
1022#define pACM_ER9        ((volatile uint16_t *)ACM_ER9)
1023#define pACM_ER10       ((volatile uint16_t *)ACM_ER10)
1024#define pACM_ER11       ((volatile uint16_t *)ACM_ER11)
1025#define pACM_ER12       ((volatile uint16_t *)ACM_ER12)
1026#define pACM_ER13       ((volatile uint16_t *)ACM_ER13)
1027#define pACM_ER14       ((volatile uint16_t *)ACM_ER14)
1028#define pACM_ER15       ((volatile uint16_t *)ACM_ER15)
1029
1030#define pACM_ET0        ((volatile uint32_t *)ACM_ET0)
1031#define pACM_ET1        ((volatile uint32_t *)ACM_ET1)
1032#define pACM_ET2        ((volatile uint32_t *)ACM_ET2)
1033#define pACM_ET3        ((volatile uint32_t *)ACM_ET3)
1034#define pACM_ET4        ((volatile uint32_t *)ACM_ET4)
1035#define pACM_ET5        ((volatile uint32_t *)ACM_ET5)
1036#define pACM_ET6        ((volatile uint32_t *)ACM_ET6)
1037#define pACM_ET7        ((volatile uint32_t *)ACM_ET7)
1038#define pACM_ET8        ((volatile uint32_t *)ACM_ET8)
1039#define pACM_ET9        ((volatile uint32_t *)ACM_ET9)
1040#define pACM_ET10       ((volatile uint32_t *)ACM_ET10)
1041#define pACM_ET11       ((volatile uint32_t *)ACM_ET11)
1042#define pACM_ET12       ((volatile uint32_t *)ACM_ET12)
1043#define pACM_ET13       ((volatile uint32_t *)ACM_ET13)
1044#define pACM_ET14       ((volatile uint32_t *)ACM_ET14)
1045#define pACM_ET15       ((volatile uint32_t *)ACM_ET15)
1046
1047#define pACM_TMR0       ((volatile uint32_t *)ACM_TMR0)
1048#define pACM_TMR1       ((volatile uint32_t *)ACM_TMR1)
1049
1050
1051/* Pin Control Registers (0xFFC03200 - 0xFFC032FF) */
1052#define pPORTF_FER      ((volatile uint16_t *)PORTF_FER)
1053#define pPORTG_FER      ((volatile uint16_t *)PORTG_FER)
1054#define pPORTH_FER      ((volatile uint16_t *)PORTH_FER)
1055
1056/* GPIO PIN mux (0xFFC03210 - OxFFC03288) */
1057
1058#define pPORTF_MUX        ((volatile uint16_t *)PORTF_MUX)
1059#define pPORTG_MUX        ((volatile uint16_t *)PORTG_MUX)
1060#define pPORTH_MUX        ((volatile uint16_t *)PORTH_MUX)
1061#define pPORTF_HYSTERESIS ((volatile uint16_t *)PORTF_HYSTERESIS)
1062#define pPORTG_HYSTERESIS ((volatile uint16_t *)PORTG_HYSTERESIS)
1063#define pPORTH_HYSTERESIS ((volatile uint16_t *)PORTH_HYSTERESIS)
1064
1065#define pNONGPIO_DRIVE      ((volatile uint16_t *)NONGPIO_DRIVE)
1066#define pNONGPIO_HYSTERESIS ((volatile uint16_t *)NONGPIO_HYSTERESIS)
1067
1068#define pFLASH_CONTROL        ((volatile uint16_t *)FLASH_CONTROL)
1069#define pFLASH_CONTROL_SET    ((volatile uint16_t *)FLASH_CONTROL_SET)
1070#define pFLASH_CONTROL_CLEAR  ((volatile uint16_t *)FLASH_CONTROL_CLEAR)
1071
1072
1073/* Counter 1 Registers      (0xFFC03300 - 0xFFC033FF)*/
1074#define pCNT1_CONFIG        ((volatile uint16_t *)CNT1_CONFIG)
1075#define pCNT1_IMASK         ((volatile uint16_t *)CNT1_IMASK)
1076#define pCNT1_STATUS        ((volatile uint16_t *)CNT1_STATUS)
1077#define pCNT1_COMMAND       ((volatile uint16_t *)CNT1_COMMAND)
1078#define pCNT1_DEBOUNCE      ((volatile uint16_t *)CNT1_DEBOUNCE)
1079#define pCNT1_COUNTER       ((volatile uint32_t *)CNT1_COUNTER)
1080#define pCNT1_MAX           ((volatile uint32_t *)CNT1_MAX)
1081#define pCNT1_MIN           ((volatile uint32_t *)CNT1_MIN)
1082
1083
1084/* SPI1 Controller      (0xFFC03400 - 0xFFC034FF)*/
1085#define pSPI1_CTL       ((volatile uint16_t *)SPI1_CTL)
1086#define pSPI1_FLG       ((volatile uint16_t *)SPI1_FLG)
1087#define pSPI1_STAT      ((volatile uint16_t *)SPI1_STAT)
1088#define pSPI1_TDBR      ((volatile uint16_t *)SPI1_TDBR)
1089#define pSPI1_RDBR      ((volatile uint16_t *)SPI1_RDBR)
1090#define pSPI1_BAUD      ((volatile uint16_t *)SPI1_BAUD)
1091#define pSPI1_SHADOW        ((volatile uint16_t *)SPI1_SHADOW)
1092
1093
1094/* Counter 0 Registers      (0xFFC03500 - 0xFFC035FF)*/
1095#define pCNT0_CONFIG        ((volatile uint16_t *)CNT0_CONFIG)
1096#define pCNT0_IMASK         ((volatile uint16_t *)CNT0_IMASK)
1097#define pCNT0_STATUS        ((volatile uint16_t *)CNT0_STATUS)
1098#define pCNT0_COMMAND       ((volatile uint16_t *)CNT0_COMMAND)
1099#define pCNT0_DEBOUNCE      ((volatile uint16_t *)CNT0_DEBOUNCE)
1100#define pCNT0_COUNTER       ((volatile uint32_t *)CNT0_COUNTER)
1101#define pCNT0_MAX           ((volatile uint32_t *)CNT0_MAX)
1102#define pCNT0_MIN           ((volatile uint32_t *)CNT0_MIN)
1103
1104
1105/* Motor Control PWM0 Registers (0xFFC03700 - 0xFFC037FF) */
1106#define pPWM0_CTRL     ((volatile uint16_t *)PWM0_CTRL)
1107#define pPWM0_STAT     ((volatile uint16_t *)PWM0_STAT)
1108#define pPWM0_TM       ((volatile uint16_t *)PWM0_TM)
1109#define pPWM0_DT       ((volatile uint16_t *)PWM0_DT)
1110#define pPWM0_GATE     ((volatile uint16_t *)PWM0_GATE)
1111#define pPWM0_CHA      ((volatile uint16_t *)PWM0_CHA)
1112#define pPWM0_CHB      ((volatile uint16_t *)PWM0_CHB)
1113#define pPWM0_CHC      ((volatile uint16_t *)PWM0_CHC)
1114#define pPWM0_SEG      ((volatile uint16_t *)PWM0_SEG)
1115#define pPWM0_SYNCWT   ((volatile uint16_t *)PWM0_SYNCWT)
1116#define pPWM0_CHAL     ((volatile uint16_t *)PWM0_CHAL)
1117#define pPWM0_CHBL     ((volatile uint16_t *)PWM0_CHBL)
1118#define pPWM0_CHCL     ((volatile uint16_t *)PWM0_CHCL)
1119#define pPWM0_LSI      ((volatile uint16_t *)PWM0_LSI)
1120#define pPWM0_STAT2    ((volatile uint16_t *)PWM0_STAT2)
1121
1122
1123/* RSI Registers (0xFFC03800 - 0xFFC03CFF) */
1124#define pRSI_PWR_CONTROL        ((volatile uint16_t *)RSI_PWR_CONTROL)
1125#define pRSI_CLK_CONTROL        ((volatile uint16_t *)RSI_CLK_CONTROL)
1126#define pRSI_ARGUMENT           ((volatile uint32_t *)RSI_ARGUMENT)
1127#define pRSI_COMMAND            ((volatile uint16_t *)RSI_COMMAND)
1128#define pRSI_RESP_CMD           ((volatile uint16_t *)RSI_RESP_CMD)
1129#define pRSI_RESPONSE0          ((volatile uint32_t *)RSI_RESPONSE0)
1130#define pRSI_RESPONSE1          ((volatile uint32_t *)RSI_RESPONSE1)
1131#define pRSI_RESPONSE2          ((volatile uint32_t *)RSI_RESPONSE2)
1132#define pRSI_RESPONSE3          ((volatile uint32_t *)RSI_RESPONSE3)
1133#define pRSI_DATA_TIMER         ((volatile uint32_t *)RSI_DATA_TIMER)
1134#define pRSI_DATA_LGTH          ((volatile uint16_t *)RSI_DATA_LGTH)
1135#define pRSI_DATA_CONTROL       ((volatile uint16_t *)RSI_DATA_CONTROL)
1136#define pRSI_DATA_CNT           ((volatile uint16_t *)RSI_DATA_CNT)
1137#define pRSI_STATUS         ((volatile uint32_t *)RSI_STATUS)
1138#define pRSI_STATUSCL           ((volatile uint16_t *)RSI_STATUSCL)
1139#define pRSI_MASK0          ((volatile uint32_t *)RSI_MASK0)
1140#define pRSI_MASK1          ((volatile uint32_t *)RSI_MASK1)
1141#define pRSI_FIFO_CNT           ((volatile uint16_t *)RSI_FIFO_CNT)
1142#define pRSI_CEATA_CONTROL      ((volatile uint16_t *)RSI_CEATA_CONTROL)
1143#define pRSI_FIFO               ((volatile uint32_t *)RSI_FIFO)
1144#define pRSI_ESTAT          ((volatile uint16_t *)RSI_ESTAT)
1145#define pRSI_EMASK          ((volatile uint16_t *)RSI_EMASK)
1146#define pRSI_CONFIG         ((volatile uint16_t *)RSI_CONFIG)
1147#define pRSI_RD_WAIT_EN         ((volatile uint16_t *)RSI_RD_WAIT_EN)
1148#define pRSI_PID0               ((volatile uint16_t *)RSI_PID0)
1149#define pRSI_PID1               ((volatile uint16_t *)RSI_PID1)
1150#define pRSI_PID2               ((volatile uint16_t *)RSI_PID2)
1151#define pRSI_PID3               ((volatile uint16_t *)RSI_PID3)
1152
1153
1154
1155#ifdef _MISRA_RULES
1156#pragma diag(pop)
1157#endif /* _MISRA_RULES */
1158
1159#endif  /*_CDEF_BF50X_H*/
Note: See TracBrowser for help on using the repository browser.