source: trunk/libs/newlib/src/libgloss/bfin/include/cdefBF51x_base.h @ 558

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

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

File size: 37.2 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** cdefBF51x_base.h
15**
16** Copyright (C) 2007-2009 Analog Devices Inc., All Rights Reserved.
17**
18************************************************************************************
19**
20** This include file contains a list of macro "defines" to enable the programmer
21** to use symbolic names for the registers common to the ADSP-BF51x peripherals.
22**
23***************************************************************/
24
25#ifndef _CDEF_BF51X_H
26#define _CDEF_BF51X_H
27
28#include <defBF51x_base.h>
29
30#ifdef _MISRA_RULES
31#pragma diag(push)
32#pragma diag(suppress:misra_rule_19_4:"some macro definitions not MISRA compliant")
33#endif /* _MISRA_RULES */
34
35#ifndef _PTR_TO_VOL_VOID_PTR
36#ifndef _USE_LEGACY_CDEF_BEHAVIOUR
37#define _PTR_TO_VOL_VOID_PTR (void * volatile *)
38#else
39#define _PTR_TO_VOL_VOID_PTR (volatile void **)
40#endif
41#endif
42
43
44/* Clock and System Control     (0xFFC00000 - 0xFFC000FF) */
45#define pPLL_CTL                        ((volatile unsigned short *)PLL_CTL)
46#define pPLL_DIV                        ((volatile unsigned short *)PLL_DIV)
47#define pVR_CTL                         ((volatile unsigned short *)VR_CTL)
48#define pPLL_STAT               ((volatile unsigned short *)PLL_STAT)
49#define pPLL_LOCKCNT            ((volatile unsigned short *)PLL_LOCKCNT)
50#define pCHIPID                 ((volatile unsigned long  *)CHIPID)
51
52
53/* System Interrupt Controller(0xFFC00100 - 0xFFC001FF) */
54#define pSWRST                  ((volatile unsigned short *)SWRST)
55#define pSYSCR                  ((volatile unsigned short *)SYSCR)
56
57#define pSIC_IMASK0             ((volatile unsigned long  *)SIC_IMASK0)                 /* legacy register name (below) provided for backwards code compatibility */
58#define pSIC_IMASK              ((volatile unsigned long  *)SIC_IMASK0)
59#define pSIC_IAR0               ((volatile unsigned long  *)SIC_IAR0)
60#define pSIC_IAR1               ((volatile unsigned long  *)SIC_IAR1)
61#define pSIC_IAR2               ((volatile unsigned long  *)SIC_IAR2)
62#define pSIC_IAR3               ((volatile unsigned long  *)SIC_IAR3)
63#define pSIC_ISR0               ((volatile unsigned long  *)SIC_ISR0)                   /* legacy register name (below) provided for backwards code compatibility */
64#define pSIC_ISR                        ((volatile unsigned long  *)SIC_ISR0)
65#define pSIC_IWR0               ((volatile unsigned long  *)SIC_IWR0)                   /* legacy register name (below) provided for backwards code compatibility */
66#define pSIC_IWR                        ((volatile unsigned long  *)SIC_IWR0)
67
68/* SIC Additions to ADSP-BF51x(0xFFC0014C - 0xFFC00162) */
69#define pSIC_IMASK1             ((volatile unsigned long  *)SIC_IMASK1)
70#define pSIC_IAR4                       ((volatile unsigned long  *)SIC_IAR4)
71#define pSIC_IAR5                       ((volatile unsigned long  *)SIC_IAR5)
72#define pSIC_IAR6                       ((volatile unsigned long  *)SIC_IAR6)
73#define pSIC_IAR7                       ((volatile unsigned long  *)SIC_IAR7)
74#define pSIC_ISR1                       ((volatile unsigned long  *)SIC_ISR1)
75#define pSIC_IWR1                       ((volatile unsigned long  *)SIC_IWR1)
76
77/* Watchdog Timer               (0xFFC00200 - 0xFFC002FF) */
78#define pWDOG_CTL               ((volatile unsigned short *)WDOG_CTL)
79#define pWDOG_CNT               ((volatile unsigned long  *)WDOG_CNT)
80#define pWDOG_STAT              ((volatile unsigned long  *)WDOG_STAT)
81
82
83/* Real Time Clock              (0xFFC00300 - 0xFFC003FF) */
84#define pRTC_STAT               ((volatile unsigned long  *)RTC_STAT)
85#define pRTC_ICTL               ((volatile unsigned short *)RTC_ICTL)
86#define pRTC_ISTAT              ((volatile unsigned short *)RTC_ISTAT)
87#define pRTC_SWCNT              ((volatile unsigned short *)RTC_SWCNT)
88#define pRTC_ALARM              ((volatile unsigned long  *)RTC_ALARM)
89#define pRTC_FAST               ((volatile unsigned short *)RTC_FAST)
90#define pRTC_PREN               ((volatile unsigned short *)RTC_PREN)
91
92
93/* UART0 Controller             (0xFFC00400 - 0xFFC004FF) */
94#define pUART0_THR              ((volatile unsigned short *)UART0_THR)
95#define pUART0_RBR              ((volatile unsigned short *)UART0_RBR)
96#define pUART0_DLL              ((volatile unsigned short *)UART0_DLL)
97#define pUART0_IER              ((volatile unsigned short *)UART0_IER)
98#define pUART0_DLH              ((volatile unsigned short *)UART0_DLH)
99#define pUART0_IIR              ((volatile unsigned short *)UART0_IIR)
100#define pUART0_LCR              ((volatile unsigned short *)UART0_LCR)
101#define pUART0_MCR              ((volatile unsigned short *)UART0_MCR)
102#define pUART0_LSR              ((volatile unsigned short *)UART0_LSR)
103#define pUART0_SCR              ((volatile unsigned short *)UART0_SCR)
104#define pUART0_GCTL             ((volatile unsigned short *)UART0_GCTL)
105
106
107/* SPI0 Controller              (0xFFC00500 - 0xFFC005FF)*/
108#define pSPI0_CTL               ((volatile unsigned short *)SPI0_CTL)
109/* legacy register name (below) provided for backwards code compatibility */
110#define pSPI_CTL                        pSPI0_CTL
111#define pSPI0_FLG               ((volatile unsigned short *)SPI0_FLG)
112/* legacy register name (below) provided for backwards code compatibility */
113#define pSPI_FLG                        pSPI0_FLG
114#define pSPI0_STAT              ((volatile unsigned short *)SPI0_STAT)
115/* legacy register name (below) provided for backwards code compatibility */
116#define pSPI_STAT                       pSPI0_STAT
117#define pSPI0_TDBR              ((volatile unsigned short *)SPI0_TDBR)
118/* legacy register name (below) provided for backwards code compatibility */
119#define pSPI_TDBR                       pSPI0_TDBR
120#define pSPI0_RDBR              ((volatile unsigned short *)SPI0_RDBR)
121/* legacy register name (below) provided for backwards code compatibility */
122#define pSPI_RDBR                       pSPI0_RDBR
123#define pSPI0_BAUD              ((volatile unsigned short *)SPI0_BAUD)
124/* legacy register name (below) provided for backwards code compatibility */
125#define pSPI_BAUD                       pSPI0_BAUD
126#define pSPI0_SHADOW            ((volatile unsigned short *)SPI0_SHADOW)
127/* legacy register name (below) provided for backwards code compatibility */
128#define pSPI_SHADOW             pSPI0_SHADOW
129
130
131/* TIMER0-7 Registers           (0xFFC00600 - 0xFFC006FF) */
132#define pTIMER0_CONFIG          ((volatile unsigned short *)TIMER0_CONFIG)
133#define pTIMER0_COUNTER         ((volatile unsigned long  *)TIMER0_COUNTER)
134#define pTIMER0_PERIOD          ((volatile unsigned long  *)TIMER0_PERIOD)
135#define pTIMER0_WIDTH           ((volatile unsigned long  *)TIMER0_WIDTH)
136
137#define pTIMER1_CONFIG          ((volatile unsigned short *)TIMER1_CONFIG)
138#define pTIMER1_COUNTER         ((volatile unsigned long  *)TIMER1_COUNTER)
139#define pTIMER1_PERIOD          ((volatile unsigned long  *)TIMER1_PERIOD)
140#define pTIMER1_WIDTH           ((volatile unsigned long  *)TIMER1_WIDTH)
141
142#define pTIMER2_CONFIG          ((volatile unsigned short *)TIMER2_CONFIG)
143#define pTIMER2_COUNTER         ((volatile unsigned long  *)TIMER2_COUNTER)
144#define pTIMER2_PERIOD          ((volatile unsigned long  *)TIMER2_PERIOD)
145#define pTIMER2_WIDTH           ((volatile unsigned long  *)TIMER2_WIDTH)
146
147#define pTIMER3_CONFIG          ((volatile unsigned short *)TIMER3_CONFIG)
148#define pTIMER3_COUNTER         ((volatile unsigned long  *)TIMER3_COUNTER)
149#define pTIMER3_PERIOD          ((volatile unsigned long  *)TIMER3_PERIOD)
150#define pTIMER3_WIDTH           ((volatile unsigned long  *)TIMER3_WIDTH)
151
152#define pTIMER4_CONFIG          ((volatile unsigned short *)TIMER4_CONFIG)
153#define pTIMER4_COUNTER         ((volatile unsigned long  *)TIMER4_COUNTER)
154#define pTIMER4_PERIOD          ((volatile unsigned long  *)TIMER4_PERIOD)
155#define pTIMER4_WIDTH           ((volatile unsigned long  *)TIMER4_WIDTH)
156
157#define pTIMER5_CONFIG          ((volatile unsigned short *)TIMER5_CONFIG)
158#define pTIMER5_COUNTER         ((volatile unsigned long  *)TIMER5_COUNTER)
159#define pTIMER5_PERIOD          ((volatile unsigned long  *)TIMER5_PERIOD)
160#define pTIMER5_WIDTH           ((volatile unsigned long  *)TIMER5_WIDTH)
161
162#define pTIMER6_CONFIG          ((volatile unsigned short *)TIMER6_CONFIG)
163#define pTIMER6_COUNTER         ((volatile unsigned long  *)TIMER6_COUNTER)
164#define pTIMER6_PERIOD          ((volatile unsigned long  *)TIMER6_PERIOD)
165#define pTIMER6_WIDTH           ((volatile unsigned long  *)TIMER6_WIDTH)
166
167#define pTIMER7_CONFIG          ((volatile unsigned short *)TIMER7_CONFIG)
168#define pTIMER7_COUNTER         ((volatile unsigned long  *)TIMER7_COUNTER)
169#define pTIMER7_PERIOD          ((volatile unsigned long  *)TIMER7_PERIOD)
170#define pTIMER7_WIDTH           ((volatile unsigned long  *)TIMER7_WIDTH)
171
172#define pTIMER_ENABLE           ((volatile unsigned short *)TIMER_ENABLE)
173#define pTIMER_DISABLE          ((volatile unsigned short *)TIMER_DISABLE)
174#define pTIMER_STATUS           ((volatile unsigned long  *)TIMER_STATUS)
175
176
177/* General Purpose I/O Port F (0xFFC00700 - 0xFFC007FF) */
178#define pPORTFIO                        ((volatile unsigned short *)PORTFIO)
179#define pPORTFIO_CLEAR          ((volatile unsigned short *)PORTFIO_CLEAR)
180#define pPORTFIO_SET            ((volatile unsigned short *)PORTFIO_SET)
181#define pPORTFIO_TOGGLE         ((volatile unsigned short *)PORTFIO_TOGGLE)
182#define pPORTFIO_MASKA          ((volatile unsigned short *)PORTFIO_MASKA)
183#define pPORTFIO_MASKA_CLEAR    ((volatile unsigned short *)PORTFIO_MASKA_CLEAR)
184#define pPORTFIO_MASKA_SET      ((volatile unsigned short *)PORTFIO_MASKA_SET)
185#define pPORTFIO_MASKA_TOGGLE ((volatile unsigned short *)PORTFIO_MASKA_TOGGLE)
186#define pPORTFIO_MASKB          ((volatile unsigned short *)PORTFIO_MASKB)
187#define pPORTFIO_MASKB_CLEAR    ((volatile unsigned short *)PORTFIO_MASKB_CLEAR)
188#define pPORTFIO_MASKB_SET      ((volatile unsigned short *)PORTFIO_MASKB_SET)
189#define pPORTFIO_MASKB_TOGGLE ((volatile unsigned short *)PORTFIO_MASKB_TOGGLE)
190#define pPORTFIO_DIR            ((volatile unsigned short *)PORTFIO_DIR)
191#define pPORTFIO_POLAR          ((volatile unsigned short *)PORTFIO_POLAR)
192#define pPORTFIO_EDGE           ((volatile unsigned short *)PORTFIO_EDGE)
193#define pPORTFIO_BOTH           ((volatile unsigned short *)PORTFIO_BOTH)
194#define pPORTFIO_INEN           ((volatile unsigned short *)PORTFIO_INEN)
195
196
197/* SPORT0 Controller            (0xFFC00800 - 0xFFC008FF) */
198#define pSPORT0_TCR1            ((volatile unsigned short *)SPORT0_TCR1)
199#define pSPORT0_TCR2            ((volatile unsigned short *)SPORT0_TCR2)
200#define pSPORT0_TCLKDIV         ((volatile unsigned short *)SPORT0_TCLKDIV)
201#define pSPORT0_TFSDIV          ((volatile unsigned short *)SPORT0_TFSDIV)
202#define pSPORT0_TX              ((volatile unsigned long  *)SPORT0_TX)
203#define pSPORT0_RX              ((volatile unsigned long  *)SPORT0_RX)
204#define pSPORT0_TX32            ((volatile unsigned long  *)SPORT0_TX)
205#define pSPORT0_RX32            ((volatile unsigned long  *)SPORT0_RX)
206#define pSPORT0_TX16            ((volatile unsigned short *)SPORT0_TX)
207#define pSPORT0_RX16            ((volatile unsigned short *)SPORT0_RX)
208#define pSPORT0_RCR1            ((volatile unsigned short *)SPORT0_RCR1)
209#define pSPORT0_RCR2            ((volatile unsigned short *)SPORT0_RCR2)
210#define pSPORT0_RCLKDIV         ((volatile unsigned short *)SPORT0_RCLKDIV)
211#define pSPORT0_RFSDIV          ((volatile unsigned short *)SPORT0_RFSDIV)
212#define pSPORT0_STAT            ((volatile unsigned short *)SPORT0_STAT)
213#define pSPORT0_CHNL            ((volatile unsigned short *)SPORT0_CHNL)
214#define pSPORT0_MCMC1           ((volatile unsigned short *)SPORT0_MCMC1)
215#define pSPORT0_MCMC2           ((volatile unsigned short *)SPORT0_MCMC2)
216#define pSPORT0_MTCS0           ((volatile unsigned long  *)SPORT0_MTCS0)
217#define pSPORT0_MTCS1           ((volatile unsigned long  *)SPORT0_MTCS1)
218#define pSPORT0_MTCS2           ((volatile unsigned long  *)SPORT0_MTCS2)
219#define pSPORT0_MTCS3           ((volatile unsigned long  *)SPORT0_MTCS3)
220#define pSPORT0_MRCS0           ((volatile unsigned long  *)SPORT0_MRCS0)
221#define pSPORT0_MRCS1           ((volatile unsigned long  *)SPORT0_MRCS1)
222#define pSPORT0_MRCS2           ((volatile unsigned long  *)SPORT0_MRCS2)
223#define pSPORT0_MRCS3           ((volatile unsigned long  *)SPORT0_MRCS3)
224
225
226/* SPORT1 Controller            (0xFFC00900 - 0xFFC009FF) */
227#define pSPORT1_TCR1            ((volatile unsigned short *)SPORT1_TCR1)
228#define pSPORT1_TCR2            ((volatile unsigned short *)SPORT1_TCR2)
229#define pSPORT1_TCLKDIV         ((volatile unsigned short *)SPORT1_TCLKDIV)
230#define pSPORT1_TFSDIV          ((volatile unsigned short *)SPORT1_TFSDIV)
231#define pSPORT1_TX              ((volatile unsigned long  *)SPORT1_TX)
232#define pSPORT1_RX              ((volatile unsigned long  *)SPORT1_RX)
233#define pSPORT1_TX32            ((volatile unsigned long  *)SPORT1_TX)
234#define pSPORT1_RX32            ((volatile unsigned long  *)SPORT1_RX)
235#define pSPORT1_TX16            ((volatile unsigned short *)SPORT1_TX)
236#define pSPORT1_RX16            ((volatile unsigned short *)SPORT1_RX)
237#define pSPORT1_RCR1            ((volatile unsigned short *)SPORT1_RCR1)
238#define pSPORT1_RCR2            ((volatile unsigned short *)SPORT1_RCR2)
239#define pSPORT1_RCLKDIV         ((volatile unsigned short *)SPORT1_RCLKDIV)
240#define pSPORT1_RFSDIV          ((volatile unsigned short *)SPORT1_RFSDIV)
241#define pSPORT1_STAT            ((volatile unsigned short *)SPORT1_STAT)
242#define pSPORT1_CHNL            ((volatile unsigned short *)SPORT1_CHNL)
243#define pSPORT1_MCMC1           ((volatile unsigned short *)SPORT1_MCMC1)
244#define pSPORT1_MCMC2           ((volatile unsigned short *)SPORT1_MCMC2)
245#define pSPORT1_MTCS0           ((volatile unsigned long  *)SPORT1_MTCS0)
246#define pSPORT1_MTCS1           ((volatile unsigned long  *)SPORT1_MTCS1)
247#define pSPORT1_MTCS2           ((volatile unsigned long  *)SPORT1_MTCS2)
248#define pSPORT1_MTCS3           ((volatile unsigned long  *)SPORT1_MTCS3)
249#define pSPORT1_MRCS0           ((volatile unsigned long  *)SPORT1_MRCS0)
250#define pSPORT1_MRCS1           ((volatile unsigned long  *)SPORT1_MRCS1)
251#define pSPORT1_MRCS2           ((volatile unsigned long  *)SPORT1_MRCS2)
252#define pSPORT1_MRCS3           ((volatile unsigned long  *)SPORT1_MRCS3)
253
254
255/* External Bus Interface Unit (0xFFC00A00 - 0xFFC00AFF) */
256#define pEBIU_AMGCTL            ((volatile unsigned short *)EBIU_AMGCTL)
257#define pEBIU_AMBCTL0           ((volatile unsigned long  *)EBIU_AMBCTL0)
258#define pEBIU_AMBCTL1           ((volatile unsigned long  *)EBIU_AMBCTL1)
259#define pEBIU_SDGCTL            ((volatile unsigned long  *)EBIU_SDGCTL)
260#define pEBIU_SDBCTL            ((volatile unsigned short *)EBIU_SDBCTL)
261#define pEBIU_SDRRC             ((volatile unsigned short *)EBIU_SDRRC)
262#define pEBIU_SDSTAT            ((volatile unsigned short *)EBIU_SDSTAT)
263
264
265/* DMA Traffic Control Registers        (0xFFC00B00 - 0xFFC00BFF) */
266#define pDMA_TC_PER             ((volatile unsigned short *)DMA_TC_PER)
267#define pDMA_TC_CNT             ((volatile unsigned short *)DMA_TC_CNT)
268
269/* Alternate deprecated register names (below) provided for backwards code compatibility */
270#define pDMA_TCPER              ((volatile unsigned short *)DMA_TCPER)
271#define pDMA_TCCNT              ((volatile unsigned short *)DMA_TCCNT)
272
273/* DMA Controller                       (0xFFC00C00 - FFC00FFF)*/
274#define pDMA0_CONFIG            ((volatile unsigned short *)DMA0_CONFIG)
275#define pDMA0_NEXT_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA0_NEXT_DESC_PTR)
276#define pDMA0_START_ADDR        (_PTR_TO_VOL_VOID_PTR DMA0_START_ADDR)
277#define pDMA0_X_COUNT           ((volatile unsigned short *)DMA0_X_COUNT)
278#define pDMA0_Y_COUNT           ((volatile unsigned short *)DMA0_Y_COUNT)
279#define pDMA0_X_MODIFY          ((volatile signed   short *)DMA0_X_MODIFY)
280#define pDMA0_Y_MODIFY          ((volatile signed   short *)DMA0_Y_MODIFY)
281#define pDMA0_CURR_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA0_CURR_DESC_PTR)
282#define pDMA0_CURR_ADDR         (_PTR_TO_VOL_VOID_PTR DMA0_CURR_ADDR)
283#define pDMA0_CURR_X_COUNT      ((volatile unsigned short *)DMA0_CURR_X_COUNT)
284#define pDMA0_CURR_Y_COUNT      ((volatile unsigned short *)DMA0_CURR_Y_COUNT)
285#define pDMA0_IRQ_STATUS        ((volatile unsigned short *)DMA0_IRQ_STATUS)
286#define pDMA0_PERIPHERAL_MAP    ((volatile unsigned short *)DMA0_PERIPHERAL_MAP)
287
288#define pDMA1_CONFIG            ((volatile unsigned short *)DMA1_CONFIG)
289#define pDMA1_NEXT_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA1_NEXT_DESC_PTR)
290#define pDMA1_START_ADDR        (_PTR_TO_VOL_VOID_PTR DMA1_START_ADDR)
291#define pDMA1_X_COUNT           ((volatile unsigned short *)DMA1_X_COUNT)
292#define pDMA1_Y_COUNT           ((volatile unsigned short *)DMA1_Y_COUNT)
293#define pDMA1_X_MODIFY          ((volatile signed   short *)DMA1_X_MODIFY)
294#define pDMA1_Y_MODIFY          ((volatile signed   short *)DMA1_Y_MODIFY)
295#define pDMA1_CURR_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA1_CURR_DESC_PTR)
296#define pDMA1_CURR_ADDR         (_PTR_TO_VOL_VOID_PTR DMA1_CURR_ADDR)
297#define pDMA1_CURR_X_COUNT      ((volatile unsigned short *)DMA1_CURR_X_COUNT)
298#define pDMA1_CURR_Y_COUNT      ((volatile unsigned short *)DMA1_CURR_Y_COUNT)
299#define pDMA1_IRQ_STATUS        ((volatile unsigned short *)DMA1_IRQ_STATUS)
300#define pDMA1_PERIPHERAL_MAP    ((volatile unsigned short *)DMA1_PERIPHERAL_MAP)
301
302#define pDMA2_CONFIG            ((volatile unsigned short *)DMA2_CONFIG)
303#define pDMA2_NEXT_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA2_NEXT_DESC_PTR)
304#define pDMA2_START_ADDR        (_PTR_TO_VOL_VOID_PTR DMA2_START_ADDR)
305#define pDMA2_X_COUNT           ((volatile unsigned short *)DMA2_X_COUNT)
306#define pDMA2_Y_COUNT           ((volatile unsigned short *)DMA2_Y_COUNT)
307#define pDMA2_X_MODIFY          ((volatile signed   short *)DMA2_X_MODIFY)
308#define pDMA2_Y_MODIFY          ((volatile signed   short *)DMA2_Y_MODIFY)
309#define pDMA2_CURR_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA2_CURR_DESC_PTR)
310#define pDMA2_CURR_ADDR         (_PTR_TO_VOL_VOID_PTR DMA2_CURR_ADDR)
311#define pDMA2_CURR_X_COUNT      ((volatile unsigned short *)DMA2_CURR_X_COUNT)
312#define pDMA2_CURR_Y_COUNT      ((volatile unsigned short *)DMA2_CURR_Y_COUNT)
313#define pDMA2_IRQ_STATUS        ((volatile unsigned short *)DMA2_IRQ_STATUS)
314#define pDMA2_PERIPHERAL_MAP    ((volatile unsigned short *)DMA2_PERIPHERAL_MAP)
315
316#define pDMA3_CONFIG            ((volatile unsigned short *)DMA3_CONFIG)
317#define pDMA3_NEXT_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA3_NEXT_DESC_PTR)
318#define pDMA3_START_ADDR        (_PTR_TO_VOL_VOID_PTR DMA3_START_ADDR)
319#define pDMA3_X_COUNT           ((volatile unsigned short *)DMA3_X_COUNT)
320#define pDMA3_Y_COUNT           ((volatile unsigned short *)DMA3_Y_COUNT)
321#define pDMA3_X_MODIFY          ((volatile signed   short *)DMA3_X_MODIFY)
322#define pDMA3_Y_MODIFY          ((volatile signed   short *)DMA3_Y_MODIFY)
323#define pDMA3_CURR_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA3_CURR_DESC_PTR)
324#define pDMA3_CURR_ADDR         (_PTR_TO_VOL_VOID_PTR DMA3_CURR_ADDR)
325#define pDMA3_CURR_X_COUNT      ((volatile unsigned short *)DMA3_CURR_X_COUNT)
326#define pDMA3_CURR_Y_COUNT      ((volatile unsigned short *)DMA3_CURR_Y_COUNT)
327#define pDMA3_IRQ_STATUS        ((volatile unsigned short *)DMA3_IRQ_STATUS)
328#define pDMA3_PERIPHERAL_MAP    ((volatile unsigned short *)DMA3_PERIPHERAL_MAP)
329
330#define pDMA4_CONFIG            ((volatile unsigned short *)DMA4_CONFIG)
331#define pDMA4_NEXT_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA4_NEXT_DESC_PTR)
332#define pDMA4_START_ADDR        (_PTR_TO_VOL_VOID_PTR DMA4_START_ADDR)
333#define pDMA4_X_COUNT           ((volatile unsigned short *)DMA4_X_COUNT)
334#define pDMA4_Y_COUNT           ((volatile unsigned short *)DMA4_Y_COUNT)
335#define pDMA4_X_MODIFY          ((volatile signed   short *)DMA4_X_MODIFY)
336#define pDMA4_Y_MODIFY          ((volatile signed   short *)DMA4_Y_MODIFY)
337#define pDMA4_CURR_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA4_CURR_DESC_PTR)
338#define pDMA4_CURR_ADDR         (_PTR_TO_VOL_VOID_PTR DMA4_CURR_ADDR)
339#define pDMA4_CURR_X_COUNT      ((volatile unsigned short *)DMA4_CURR_X_COUNT)
340#define pDMA4_CURR_Y_COUNT      ((volatile unsigned short *)DMA4_CURR_Y_COUNT)
341#define pDMA4_IRQ_STATUS        ((volatile unsigned short *)DMA4_IRQ_STATUS)
342#define pDMA4_PERIPHERAL_MAP    ((volatile unsigned short *)DMA4_PERIPHERAL_MAP)
343
344#define pDMA5_CONFIG            ((volatile unsigned short *)DMA5_CONFIG)
345#define pDMA5_NEXT_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA5_NEXT_DESC_PTR)
346#define pDMA5_START_ADDR        (_PTR_TO_VOL_VOID_PTR DMA5_START_ADDR)
347#define pDMA5_X_COUNT           ((volatile unsigned short *)DMA5_X_COUNT)
348#define pDMA5_Y_COUNT           ((volatile unsigned short *)DMA5_Y_COUNT)
349#define pDMA5_X_MODIFY          ((volatile signed   short *)DMA5_X_MODIFY)
350#define pDMA5_Y_MODIFY          ((volatile signed   short *)DMA5_Y_MODIFY)
351#define pDMA5_CURR_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA5_CURR_DESC_PTR)
352#define pDMA5_CURR_ADDR         (_PTR_TO_VOL_VOID_PTR DMA5_CURR_ADDR)
353#define pDMA5_CURR_X_COUNT      ((volatile unsigned short *)DMA5_CURR_X_COUNT)
354#define pDMA5_CURR_Y_COUNT      ((volatile unsigned short *)DMA5_CURR_Y_COUNT)
355#define pDMA5_IRQ_STATUS        ((volatile unsigned short *)DMA5_IRQ_STATUS)
356#define pDMA5_PERIPHERAL_MAP    ((volatile unsigned short *)DMA5_PERIPHERAL_MAP)
357
358#define pDMA6_CONFIG            ((volatile unsigned short *)DMA6_CONFIG)
359#define pDMA6_NEXT_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA6_NEXT_DESC_PTR)
360#define pDMA6_START_ADDR        (_PTR_TO_VOL_VOID_PTR DMA6_START_ADDR)
361#define pDMA6_X_COUNT           ((volatile unsigned short *)DMA6_X_COUNT)
362#define pDMA6_Y_COUNT           ((volatile unsigned short *)DMA6_Y_COUNT)
363#define pDMA6_X_MODIFY          ((volatile signed   short *)DMA6_X_MODIFY)
364#define pDMA6_Y_MODIFY          ((volatile signed   short *)DMA6_Y_MODIFY)
365#define pDMA6_CURR_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA6_CURR_DESC_PTR)
366#define pDMA6_CURR_ADDR         (_PTR_TO_VOL_VOID_PTR DMA6_CURR_ADDR)
367#define pDMA6_CURR_X_COUNT      ((volatile unsigned short *)DMA6_CURR_X_COUNT)
368#define pDMA6_CURR_Y_COUNT      ((volatile unsigned short *)DMA6_CURR_Y_COUNT)
369#define pDMA6_IRQ_STATUS        ((volatile unsigned short *)DMA6_IRQ_STATUS)
370#define pDMA6_PERIPHERAL_MAP    ((volatile unsigned short *)DMA6_PERIPHERAL_MAP)
371
372#define pDMA7_CONFIG            ((volatile unsigned short *)DMA7_CONFIG)
373#define pDMA7_NEXT_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA7_NEXT_DESC_PTR)
374#define pDMA7_START_ADDR        (_PTR_TO_VOL_VOID_PTR DMA7_START_ADDR)
375#define pDMA7_X_COUNT           ((volatile unsigned short *)DMA7_X_COUNT)
376#define pDMA7_Y_COUNT           ((volatile unsigned short *)DMA7_Y_COUNT)
377#define pDMA7_X_MODIFY          ((volatile signed   short *)DMA7_X_MODIFY)
378#define pDMA7_Y_MODIFY          ((volatile signed   short *)DMA7_Y_MODIFY)
379#define pDMA7_CURR_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA7_CURR_DESC_PTR)
380#define pDMA7_CURR_ADDR         (_PTR_TO_VOL_VOID_PTR DMA7_CURR_ADDR)
381#define pDMA7_CURR_X_COUNT      ((volatile unsigned short *)DMA7_CURR_X_COUNT)
382#define pDMA7_CURR_Y_COUNT      ((volatile unsigned short *)DMA7_CURR_Y_COUNT)
383#define pDMA7_IRQ_STATUS        ((volatile unsigned short *)DMA7_IRQ_STATUS)
384#define pDMA7_PERIPHERAL_MAP    ((volatile unsigned short *)DMA7_PERIPHERAL_MAP)
385
386#define pDMA8_CONFIG            ((volatile unsigned short *)DMA8_CONFIG)
387#define pDMA8_NEXT_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA8_NEXT_DESC_PTR)
388#define pDMA8_START_ADDR        (_PTR_TO_VOL_VOID_PTR DMA8_START_ADDR)
389#define pDMA8_X_COUNT           ((volatile unsigned short *)DMA8_X_COUNT)
390#define pDMA8_Y_COUNT           ((volatile unsigned short *)DMA8_Y_COUNT)
391#define pDMA8_X_MODIFY          ((volatile signed   short *)DMA8_X_MODIFY)
392#define pDMA8_Y_MODIFY          ((volatile signed   short *)DMA8_Y_MODIFY)
393#define pDMA8_CURR_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA8_CURR_DESC_PTR)
394#define pDMA8_CURR_ADDR         (_PTR_TO_VOL_VOID_PTR DMA8_CURR_ADDR)
395#define pDMA8_CURR_X_COUNT      ((volatile unsigned short *)DMA8_CURR_X_COUNT)
396#define pDMA8_CURR_Y_COUNT      ((volatile unsigned short *)DMA8_CURR_Y_COUNT)
397#define pDMA8_IRQ_STATUS        ((volatile unsigned short *)DMA8_IRQ_STATUS)
398#define pDMA8_PERIPHERAL_MAP    ((volatile unsigned short *)DMA8_PERIPHERAL_MAP)
399
400#define pDMA9_CONFIG            ((volatile unsigned short *)DMA9_CONFIG)
401#define pDMA9_NEXT_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA9_NEXT_DESC_PTR)
402#define pDMA9_START_ADDR        (_PTR_TO_VOL_VOID_PTR DMA9_START_ADDR)
403#define pDMA9_X_COUNT           ((volatile unsigned short *)DMA9_X_COUNT)
404#define pDMA9_Y_COUNT           ((volatile unsigned short *)DMA9_Y_COUNT)
405#define pDMA9_X_MODIFY          ((volatile signed   short *)DMA9_X_MODIFY)
406#define pDMA9_Y_MODIFY          ((volatile signed   short *)DMA9_Y_MODIFY)
407#define pDMA9_CURR_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA9_CURR_DESC_PTR)
408#define pDMA9_CURR_ADDR         (_PTR_TO_VOL_VOID_PTR DMA9_CURR_ADDR)
409#define pDMA9_CURR_X_COUNT      ((volatile unsigned short *)DMA9_CURR_X_COUNT)
410#define pDMA9_CURR_Y_COUNT      ((volatile unsigned short *)DMA9_CURR_Y_COUNT)
411#define pDMA9_IRQ_STATUS        ((volatile unsigned short *)DMA9_IRQ_STATUS)
412#define pDMA9_PERIPHERAL_MAP    ((volatile unsigned short *)DMA9_PERIPHERAL_MAP)
413
414#define pDMA10_CONFIG           ((volatile unsigned short *)DMA10_CONFIG)
415#define pDMA10_NEXT_DESC_PTR    (_PTR_TO_VOL_VOID_PTR DMA10_NEXT_DESC_PTR)
416#define pDMA10_START_ADDR       (_PTR_TO_VOL_VOID_PTR DMA10_START_ADDR)
417#define pDMA10_X_COUNT          ((volatile unsigned short *)DMA10_X_COUNT)
418#define pDMA10_Y_COUNT          ((volatile unsigned short *)DMA10_Y_COUNT)
419#define pDMA10_X_MODIFY         ((volatile signed   short *)DMA10_X_MODIFY)
420#define pDMA10_Y_MODIFY         ((volatile signed   short *)DMA10_Y_MODIFY)
421#define pDMA10_CURR_DESC_PTR    (_PTR_TO_VOL_VOID_PTR DMA10_CURR_DESC_PTR)
422#define pDMA10_CURR_ADDR        (_PTR_TO_VOL_VOID_PTR DMA10_CURR_ADDR)
423#define pDMA10_CURR_X_COUNT     ((volatile unsigned short *)DMA10_CURR_X_COUNT)
424#define pDMA10_CURR_Y_COUNT     ((volatile unsigned short *)DMA10_CURR_Y_COUNT)
425#define pDMA10_IRQ_STATUS       ((volatile unsigned short *)DMA10_IRQ_STATUS)
426#define pDMA10_PERIPHERAL_MAP ((volatile unsigned short *)DMA10_PERIPHERAL_MAP)
427
428#define pDMA11_CONFIG           ((volatile unsigned short *)DMA11_CONFIG)
429#define pDMA11_NEXT_DESC_PTR    (_PTR_TO_VOL_VOID_PTR DMA11_NEXT_DESC_PTR)
430#define pDMA11_START_ADDR       (_PTR_TO_VOL_VOID_PTR DMA11_START_ADDR)
431#define pDMA11_X_COUNT          ((volatile unsigned short *)DMA11_X_COUNT)
432#define pDMA11_Y_COUNT          ((volatile unsigned short *)DMA11_Y_COUNT)
433#define pDMA11_X_MODIFY         ((volatile signed   short *)DMA11_X_MODIFY)
434#define pDMA11_Y_MODIFY         ((volatile signed   short *)DMA11_Y_MODIFY)
435#define pDMA11_CURR_DESC_PTR    (_PTR_TO_VOL_VOID_PTR DMA11_CURR_DESC_PTR)
436#define pDMA11_CURR_ADDR        (_PTR_TO_VOL_VOID_PTR DMA11_CURR_ADDR)
437#define pDMA11_CURR_X_COUNT     ((volatile unsigned short *)DMA11_CURR_X_COUNT)
438#define pDMA11_CURR_Y_COUNT     ((volatile unsigned short *)DMA11_CURR_Y_COUNT)
439#define pDMA11_IRQ_STATUS       ((volatile unsigned short *)DMA11_IRQ_STATUS)
440#define pDMA11_PERIPHERAL_MAP ((volatile unsigned short *)DMA11_PERIPHERAL_MAP)
441
442#define pMDMA_D0_CONFIG         ((volatile unsigned short *)MDMA_D0_CONFIG)
443#define pMDMA_D0_NEXT_DESC_PTR  (_PTR_TO_VOL_VOID_PTR MDMA_D0_NEXT_DESC_PTR)
444#define pMDMA_D0_START_ADDR     (_PTR_TO_VOL_VOID_PTR MDMA_D0_START_ADDR)
445#define pMDMA_D0_X_COUNT        ((volatile unsigned short *)MDMA_D0_X_COUNT)
446#define pMDMA_D0_Y_COUNT        ((volatile unsigned short *)MDMA_D0_Y_COUNT)
447#define pMDMA_D0_X_MODIFY       ((volatile signed   short *)MDMA_D0_X_MODIFY)
448#define pMDMA_D0_Y_MODIFY       ((volatile signed   short *)MDMA_D0_Y_MODIFY)
449#define pMDMA_D0_CURR_DESC_PTR  (_PTR_TO_VOL_VOID_PTR MDMA_D0_CURR_DESC_PTR)
450#define pMDMA_D0_CURR_ADDR        (_PTR_TO_VOL_VOID_PTR MDMA_D0_CURR_ADDR)
451#define pMDMA_D0_CURR_X_COUNT ((volatile unsigned short *)MDMA_D0_CURR_X_COUNT)
452#define pMDMA_D0_CURR_Y_COUNT ((volatile unsigned short *)MDMA_D0_CURR_Y_COUNT)
453#define pMDMA_D0_IRQ_STATUS     ((volatile unsigned short *)MDMA_D0_IRQ_STATUS)
454#define pMDMA_D0_PERIPHERAL_MAP ((volatile unsigned short *)MDMA_D0_PERIPHERAL_MAP)
455
456#define pMDMA_S0_CONFIG         ((volatile unsigned short *)MDMA_S0_CONFIG)
457#define pMDMA_S0_NEXT_DESC_PTR  (_PTR_TO_VOL_VOID_PTR MDMA_S0_NEXT_DESC_PTR)
458#define pMDMA_S0_START_ADDR     (_PTR_TO_VOL_VOID_PTR MDMA_S0_START_ADDR)
459#define pMDMA_S0_X_COUNT        ((volatile unsigned short *)MDMA_S0_X_COUNT)
460#define pMDMA_S0_Y_COUNT        ((volatile unsigned short *)MDMA_S0_Y_COUNT)
461#define pMDMA_S0_X_MODIFY       ((volatile signed   short *)MDMA_S0_X_MODIFY)
462#define pMDMA_S0_Y_MODIFY       ((volatile signed   short *)MDMA_S0_Y_MODIFY)
463#define pMDMA_S0_CURR_DESC_PTR  (_PTR_TO_VOL_VOID_PTR MDMA_S0_CURR_DESC_PTR)
464#define pMDMA_S0_CURR_ADDR      (_PTR_TO_VOL_VOID_PTR MDMA_S0_CURR_ADDR)
465#define pMDMA_S0_CURR_X_COUNT ((volatile unsigned short *)MDMA_S0_CURR_X_COUNT)
466#define pMDMA_S0_CURR_Y_COUNT ((volatile unsigned short *)MDMA_S0_CURR_Y_COUNT)
467#define pMDMA_S0_IRQ_STATUS     ((volatile unsigned short *)MDMA_S0_IRQ_STATUS)
468#define pMDMA_S0_PERIPHERAL_MAP ((volatile unsigned short *)MDMA_S0_PERIPHERAL_MAP)
469
470#define pMDMA_D1_CONFIG         ((volatile unsigned short *)MDMA_D1_CONFIG)
471#define pMDMA_D1_NEXT_DESC_PTR  (_PTR_TO_VOL_VOID_PTR MDMA_D1_NEXT_DESC_PTR)
472#define pMDMA_D1_START_ADDR     (_PTR_TO_VOL_VOID_PTR MDMA_D1_START_ADDR)
473#define pMDMA_D1_X_COUNT        ((volatile unsigned short *)MDMA_D1_X_COUNT)
474#define pMDMA_D1_Y_COUNT        ((volatile unsigned short *)MDMA_D1_Y_COUNT)
475#define pMDMA_D1_X_MODIFY       ((volatile signed   short *)MDMA_D1_X_MODIFY)
476#define pMDMA_D1_Y_MODIFY       ((volatile signed   short *)MDMA_D1_Y_MODIFY)
477#define pMDMA_D1_CURR_DESC_PTR  (_PTR_TO_VOL_VOID_PTR MDMA_D1_CURR_DESC_PTR)
478#define pMDMA_D1_CURR_ADDR      (_PTR_TO_VOL_VOID_PTR MDMA_D1_CURR_ADDR)
479#define pMDMA_D1_CURR_X_COUNT ((volatile unsigned short *)MDMA_D1_CURR_X_COUNT)
480#define pMDMA_D1_CURR_Y_COUNT ((volatile unsigned short *)MDMA_D1_CURR_Y_COUNT)
481#define pMDMA_D1_IRQ_STATUS     ((volatile unsigned short *)MDMA_D1_IRQ_STATUS)
482#define pMDMA_D1_PERIPHERAL_MAP ((volatile unsigned short *)MDMA_D1_PERIPHERAL_MAP)
483
484#define pMDMA_S1_CONFIG         ((volatile unsigned short *)MDMA_S1_CONFIG)
485#define pMDMA_S1_NEXT_DESC_PTR  (_PTR_TO_VOL_VOID_PTR MDMA_S1_NEXT_DESC_PTR)
486#define pMDMA_S1_START_ADDR     (_PTR_TO_VOL_VOID_PTR MDMA_S1_START_ADDR)
487#define pMDMA_S1_X_COUNT        ((volatile unsigned short *)MDMA_S1_X_COUNT)
488#define pMDMA_S1_Y_COUNT        ((volatile unsigned short *)MDMA_S1_Y_COUNT)
489#define pMDMA_S1_X_MODIFY       ((volatile signed   short *)MDMA_S1_X_MODIFY)
490#define pMDMA_S1_Y_MODIFY       ((volatile signed   short *)MDMA_S1_Y_MODIFY)
491#define pMDMA_S1_CURR_DESC_PTR  (_PTR_TO_VOL_VOID_PTR MDMA_S1_CURR_DESC_PTR)
492#define pMDMA_S1_CURR_ADDR      (_PTR_TO_VOL_VOID_PTR MDMA_S1_CURR_ADDR)
493#define pMDMA_S1_CURR_X_COUNT ((volatile unsigned short *)MDMA_S1_CURR_X_COUNT)
494#define pMDMA_S1_CURR_Y_COUNT ((volatile unsigned short *)MDMA_S1_CURR_Y_COUNT)
495#define pMDMA_S1_IRQ_STATUS     ((volatile unsigned short *)MDMA_S1_IRQ_STATUS)
496#define pMDMA_S1_PERIPHERAL_MAP ((volatile unsigned short *)MDMA_S1_PERIPHERAL_MAP)
497
498
499/* Parallel Peripheral Interface (0xFFC01000 - 0xFFC010FF) */
500#define pPPI_CONTROL            ((volatile unsigned short *)PPI_CONTROL)
501#define pPPI_STATUS             ((volatile unsigned short *)PPI_STATUS)
502#define pPPI_DELAY              ((volatile unsigned short *)PPI_DELAY)
503#define pPPI_COUNT              ((volatile unsigned short *)PPI_COUNT)
504#define pPPI_FRAME              ((volatile unsigned short *)PPI_FRAME)
505
506
507/* Two-Wire Interface           (0xFFC01400 - 0xFFC014FF) */
508#define pTWI_CLKDIV             ((volatile unsigned short *)TWI_CLKDIV)
509#define pTWI_CONTROL            ((volatile unsigned short *)TWI_CONTROL)
510#define pTWI_SLAVE_CTL          ((volatile unsigned short *)TWI_SLAVE_CTL)
511#define pTWI_SLAVE_STAT         ((volatile unsigned short *)TWI_SLAVE_STAT)
512#define pTWI_SLAVE_ADDR         ((volatile unsigned short *)TWI_SLAVE_ADDR)
513#define pTWI_MASTER_CTL         ((volatile unsigned short *)TWI_MASTER_CTL)
514#define pTWI_MASTER_STAT        ((volatile unsigned short *)TWI_MASTER_STAT)
515#define pTWI_MASTER_ADDR        ((volatile unsigned short *)TWI_MASTER_ADDR)
516#define pTWI_INT_STAT           ((volatile unsigned short *)TWI_INT_STAT)
517#define pTWI_INT_MASK           ((volatile unsigned short *)TWI_INT_MASK)
518#define pTWI_FIFO_CTL           ((volatile unsigned short *)TWI_FIFO_CTL)
519#define pTWI_FIFO_STAT          ((volatile unsigned short *)TWI_FIFO_STAT)
520#define pTWI_XMT_DATA8          ((volatile unsigned short *)TWI_XMT_DATA8)
521#define pTWI_XMT_DATA16         ((volatile unsigned short *)TWI_XMT_DATA16)
522#define pTWI_RCV_DATA8          ((volatile unsigned short *)TWI_RCV_DATA8)
523#define pTWI_RCV_DATA16         ((volatile unsigned short *)TWI_RCV_DATA16)
524
525
526/* General Purpose I/O Port G (0xFFC01500 - 0xFFC015FF) */
527#define pPORTGIO                        ((volatile unsigned short *)PORTGIO)
528#define pPORTGIO_CLEAR          ((volatile unsigned short *)PORTGIO_CLEAR)
529#define pPORTGIO_SET            ((volatile unsigned short *)PORTGIO_SET)
530#define pPORTGIO_TOGGLE         ((volatile unsigned short *)PORTGIO_TOGGLE)
531#define pPORTGIO_MASKA          ((volatile unsigned short *)PORTGIO_MASKA)
532#define pPORTGIO_MASKA_CLEAR    ((volatile unsigned short *)PORTGIO_MASKA_CLEAR)
533#define pPORTGIO_MASKA_SET      ((volatile unsigned short *)PORTGIO_MASKA_SET)
534#define pPORTGIO_MASKA_TOGGLE   ((volatile unsigned short *)PORTGIO_MASKA_TOGGLE)
535#define pPORTGIO_MASKB          ((volatile unsigned short *)PORTGIO_MASKB)
536#define pPORTGIO_MASKB_CLEAR    ((volatile unsigned short *)PORTGIO_MASKB_CLEAR)
537#define pPORTGIO_MASKB_SET      ((volatile unsigned short *)PORTGIO_MASKB_SET)
538#define pPORTGIO_MASKB_TOGGLE   ((volatile unsigned short *)PORTGIO_MASKB_TOGGLE)
539#define pPORTGIO_DIR            ((volatile unsigned short *)PORTGIO_DIR)
540#define pPORTGIO_POLAR          ((volatile unsigned short *)PORTGIO_POLAR)
541#define pPORTGIO_EDGE           ((volatile unsigned short *)PORTGIO_EDGE)
542#define pPORTGIO_BOTH           ((volatile unsigned short *)PORTGIO_BOTH)
543#define pPORTGIO_INEN           ((volatile unsigned short *)PORTGIO_INEN)
544
545
546/* General Purpose I/O Port H (0xFFC01700 - 0xFFC017FF) */
547#define pPORTHIO                        ((volatile unsigned short *)PORTHIO)
548#define pPORTHIO_CLEAR          ((volatile unsigned short *)PORTHIO_CLEAR)
549#define pPORTHIO_SET            ((volatile unsigned short *)PORTHIO_SET)
550#define pPORTHIO_TOGGLE         ((volatile unsigned short *)PORTHIO_TOGGLE)
551#define pPORTHIO_MASKA          ((volatile unsigned short *)PORTHIO_MASKA)
552#define pPORTHIO_MASKA_CLEAR    ((volatile unsigned short *)PORTHIO_MASKA_CLEAR)
553#define pPORTHIO_MASKA_SET      ((volatile unsigned short *)PORTHIO_MASKA_SET)
554#define pPORTHIO_MASKA_TOGGLE   ((volatile unsigned short *)PORTHIO_MASKA_TOGGLE)
555#define pPORTHIO_MASKB          ((volatile unsigned short *)PORTHIO_MASKB)
556#define pPORTHIO_MASKB_CLEAR    ((volatile unsigned short *)PORTHIO_MASKB_CLEAR)
557#define pPORTHIO_MASKB_SET      ((volatile unsigned short *)PORTHIO_MASKB_SET)
558#define pPORTHIO_MASKB_TOGGLE   ((volatile unsigned short *)PORTHIO_MASKB_TOGGLE)
559#define pPORTHIO_DIR            ((volatile unsigned short *)PORTHIO_DIR)
560#define pPORTHIO_POLAR          ((volatile unsigned short *)PORTHIO_POLAR)
561#define pPORTHIO_EDGE           ((volatile unsigned short *)PORTHIO_EDGE)
562#define pPORTHIO_BOTH           ((volatile unsigned short *)PORTHIO_BOTH)
563#define pPORTHIO_INEN           ((volatile unsigned short *)PORTHIO_INEN)
564
565
566/* UART1 Controller             (0xFFC02000 - 0xFFC020FF) */
567#define pUART1_THR              ((volatile unsigned short *)UART1_THR)
568#define pUART1_RBR              ((volatile unsigned short *)UART1_RBR)
569#define pUART1_DLL              ((volatile unsigned short *)UART1_DLL)
570#define pUART1_IER              ((volatile unsigned short *)UART1_IER)
571#define pUART1_DLH              ((volatile unsigned short *)UART1_DLH)
572#define pUART1_IIR              ((volatile unsigned short *)UART1_IIR)
573#define pUART1_LCR              ((volatile unsigned short *)UART1_LCR)
574#define pUART1_MCR              ((volatile unsigned short *)UART1_MCR)
575#define pUART1_LSR              ((volatile unsigned short *)UART1_LSR)
576#define pUART1_SCR              ((volatile unsigned short *)UART1_SCR)
577#define pUART1_GCTL             ((volatile unsigned short *)UART1_GCTL)
578
579
580/* Pin Control Registers        (0xFFC03200 - 0xFFC032FF) */
581#define pPORTF_FER              ((volatile unsigned short *)PORTF_FER)
582#define pPORTG_FER              ((volatile unsigned short *)PORTG_FER)
583#define pPORTH_FER              ((volatile unsigned short *)PORTH_FER)
584
585
586/* Handshake MDMA Registers     (0xFFC03300 - 0xFFC033FF) */
587#define pHMDMA0_CONTROL         ((volatile unsigned short *)HMDMA0_CONTROL)
588#define pHMDMA0_ECINIT          ((volatile unsigned short *)HMDMA0_ECINIT)
589#define pHMDMA0_BCINIT          ((volatile unsigned short *)HMDMA0_BCINIT)
590#define pHMDMA0_ECURGENT        ((volatile unsigned short *)HMDMA0_ECURGENT)
591#define pHMDMA0_ECOVERFLOW      ((volatile unsigned short *)HMDMA0_ECOVERFLOW)
592#define pHMDMA0_ECOUNT          ((volatile unsigned short *)HMDMA0_ECOUNT)
593#define pHMDMA0_BCOUNT          ((volatile unsigned short *)HMDMA0_BCOUNT)
594
595#define pHMDMA1_CONTROL         ((volatile unsigned short *)HMDMA1_CONTROL)
596#define pHMDMA1_ECINIT          ((volatile unsigned short *)HMDMA1_ECINIT)
597#define pHMDMA1_BCINIT          ((volatile unsigned short *)HMDMA1_BCINIT)
598#define pHMDMA1_ECURGENT        ((volatile unsigned short *)HMDMA1_ECURGENT)
599#define pHMDMA1_ECOVERFLOW      ((volatile unsigned short *)HMDMA1_ECOVERFLOW)
600#define pHMDMA1_ECOUNT          ((volatile unsigned short *)HMDMA1_ECOUNT)
601#define pHMDMA1_BCOUNT          ((volatile unsigned short *)HMDMA1_BCOUNT)
602
603
604/* GPIO PIN mux                         (0xFFC03210 - OxFFC03288) */
605#define pPORTF_MUX              ((volatile unsigned short *)PORTF_MUX)
606#define pPORTG_MUX              ((volatile unsigned short *)PORTG_MUX)
607#define pPORTH_MUX              ((volatile unsigned short *)PORTH_MUX)
608#define pPORTF_DRIVE            ((volatile unsigned short *)PORTF_DRIVE)
609#define pPORTG_DRIVE            ((volatile unsigned short *)PORTG_DRIVE)
610#define pPORTH_DRIVE            ((volatile unsigned short *)PORTH_DRIVE)
611#define pPORTF_HYSTERESIS       ((volatile unsigned short *)PORTF_HYSTERESIS)
612#define pPORTG_HYSTERESIS       ((volatile unsigned short *)PORTG_HYSTERESIS)
613#define pPORTH_HYSTERESIS       ((volatile unsigned short *)PORTH_HYSTERESIS)
614#define pNONGPIO_DRIVE          ((volatile unsigned short *)NONGPIO_DRIVE)
615#define pNONGPIO_HYSTERESIS     ((volatile unsigned short *)NONGPIO_HYSTERESIS)
616
617
618/* SPI1 Controller              (0xFFC03400 - 0xFFC034FF)*/
619#define pSPI1_CTL               ((volatile unsigned short *)SPI1_CTL)
620#define pSPI1_FLG               ((volatile unsigned short *)SPI1_FLG)
621#define pSPI1_STAT              ((volatile unsigned short *)SPI1_STAT)
622#define pSPI1_TDBR              ((volatile unsigned short *)SPI1_TDBR)
623#define pSPI1_RDBR              ((volatile unsigned short *)SPI1_RDBR)
624#define pSPI1_BAUD              ((volatile unsigned short *)SPI1_BAUD)
625#define pSPI1_SHADOW            ((volatile unsigned short *)SPI1_SHADOW)
626
627
628/* Counter Registers            (0xFFC03500 - 0xFFC035FF)*/
629#define pCNT_CONFIG             ((volatile unsigned short *)CNT_CONFIG)
630#define pCNT_IMASK              ((volatile unsigned short *)CNT_IMASK)
631#define pCNT_STATUS             ((volatile unsigned short *)CNT_STATUS)
632#define pCNT_COMMAND            ((volatile unsigned short *)CNT_COMMAND)
633#define pCNT_DEBOUNCE           ((volatile unsigned short *)CNT_DEBOUNCE)
634#define pCNT_COUNTER            ((volatile unsigned long *)CNT_COUNTER)
635#define pCNT_MAX                        ((volatile unsigned long *)CNT_MAX)
636#define pCNT_MIN                        ((volatile unsigned long *)CNT_MIN)
637
638
639/* OTP Registers                        (0xFFC03600 - 0xFFC036FF) */
640/* Security Registers */
641#define pSECURE_SYSSWT          ((volatile unsigned long *)SECURE_SYSSWT)
642#define pSECURE_CONTROL         ((volatile unsigned short *)SECURE_CONTROL)
643#define pSECURE_STATUS          ((volatile unsigned short *)SECURE_STATUS)
644
645/* OTP Read/Write Data Buffer Registers */
646#define pOTP_DATA0              ((volatile unsigned long *)OTP_DATA0)
647#define pOTP_DATA1              ((volatile unsigned long *)OTP_DATA1)
648#define pOTP_DATA2              ((volatile unsigned long *)OTP_DATA2)
649#define pOTP_DATA3              ((volatile unsigned long *)OTP_DATA3)
650
651
652/* PWM 3PHASE                   (0xFFC03700 - 0xFFC037FF)*/
653#define pPWM_CTRL                       ((volatile unsigned short *)PWM_CTRL)
654#define pPWM_STAT                       ((volatile unsigned short *)PWM_STAT)
655#define pPWM_TM                 ((volatile unsigned short *)PWM_TM)
656#define pPWM_DT                 ((volatile unsigned short *)PWM_DT)
657#define pPWM_GATE                       ((volatile unsigned short *)PWM_GATE)
658#define pPWM_CHA                        ((volatile unsigned short *)PWM_CHA)
659#define pPWM_CHB                        ((volatile unsigned short *)PWM_CHB)
660#define pPWM_CHC                        ((volatile unsigned short *)PWM_CHC)
661#define pPWM_SEG                        ((volatile unsigned short *)PWM_SEG)
662#define pPWM_SYNCWT             ((volatile unsigned short *)PWM_SYNCWT)
663#define pPWM_CHAL                       ((volatile unsigned short *)PWM_CHAL)
664#define pPWM_CHBL                       ((volatile unsigned short *)PWM_CHBL)
665#define pPWM_CHCL                       ((volatile unsigned short *)PWM_CHCL)
666#define pPWM_LSI                        ((volatile unsigned short *)PWM_LSI)
667#define pPWM_STAT2              ((volatile unsigned short *)PWM_STAT2)
668
669#ifdef _MISRA_RULES
670#pragma diag(pop)
671#endif /* _MISRA_RULES */
672
673
674#endif  /*_CDEF_BF51X_H*/
Note: See TracBrowser for help on using the repository browser.