source: trunk/libs/newlib/src/libgloss/bfin/include/cdefBF532.h @ 534

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

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

File size: 21.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 *
15 * cdefBF532.h
16 *
17 * (c) Copyright 2001-2009 Analog Devices, Inc.  All rights reserved.
18 *
19 ************************************************************************/
20
21#ifndef _CDEF_BF532_H
22#define _CDEF_BF532_H
23
24#if !defined(__ADSPLPBLACKFIN__)
25#warning cdefBF532.h should only be included for 532 compatible chips.
26#endif
27/* include all Core registers and bit definitions */
28#include <defBF532.h>
29
30/* include core specific register pointer definitions */
31#include <cdef_LPBlackfin.h>
32
33/* include built-in mneumonic macros */
34#include <ccblkfn.h>
35
36#ifndef _PTR_TO_VOL_VOID_PTR
37#ifndef _USE_LEGACY_CDEF_BEHAVIOUR
38#define _PTR_TO_VOL_VOID_PTR (void * volatile *)
39#else
40#define _PTR_TO_VOL_VOID_PTR (volatile void **)
41#endif
42#endif
43
44/* Clock/Regulator Control */
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 */
54#define pSWRST                  ((volatile unsigned short *)SWRST)
55#define pSYSCR                  ((volatile unsigned short *)SYSCR)
56#define pSIC_IMASK              ((volatile unsigned long *)SIC_IMASK)
57#define pSIC_IAR0               ((volatile unsigned long *)SIC_IAR0)
58#define pSIC_IAR1               ((volatile unsigned long *)SIC_IAR1)
59#define pSIC_IAR2               ((volatile unsigned long *)SIC_IAR2)
60#define pSIC_ISR                ((volatile unsigned long *)SIC_ISR)
61#define pSIC_IWR                ((volatile unsigned long *)SIC_IWR)
62
63
64/* Watchdog Timer */
65#define pWDOG_CTL               ((volatile unsigned short *)WDOG_CTL)
66#define pWDOG_CNT               ((volatile unsigned long *)WDOG_CNT)
67#define pWDOG_STAT              ((volatile unsigned long *)WDOG_STAT)
68
69
70/* Real Time Clock */
71#define pRTC_STAT               ((volatile unsigned long *)RTC_STAT)
72#define pRTC_ICTL               ((volatile unsigned short *)RTC_ICTL)
73#define pRTC_ISTAT              ((volatile unsigned short *)RTC_ISTAT)
74#define pRTC_SWCNT              ((volatile unsigned short *)RTC_SWCNT)
75#define pRTC_ALARM              ((volatile unsigned long *)RTC_ALARM)
76#define pRTC_FAST               ((volatile unsigned short *)RTC_FAST)
77#define pRTC_PREN               ((volatile unsigned short *)RTC_PREN)
78
79
80/* UART Controller */
81#define pUART_THR               ((volatile unsigned short *)UART_THR)
82#define pUART_RBR               ((volatile unsigned short *)UART_RBR)
83#define pUART_DLL               ((volatile unsigned short *)UART_DLL)
84#define pUART_IER               ((volatile unsigned short *)UART_IER)
85#define pUART_DLH               ((volatile unsigned short *)UART_DLH)
86#define pUART_IIR               ((volatile unsigned short *)UART_IIR)
87#define pUART_LCR               ((volatile unsigned short *)UART_LCR)
88#define pUART_MCR               ((volatile unsigned short *)UART_MCR)
89#define pUART_LSR               ((volatile unsigned short *)UART_LSR)
90#define pUART_SCR               ((volatile unsigned short *)UART_SCR)
91#define pUART_GCTL              ((volatile unsigned short *)UART_GCTL)
92
93
94/* SPI Controller */
95#define pSPI_CTL                ((volatile unsigned short *)SPI_CTL)
96#define pSPI_FLG                ((volatile unsigned short *)SPI_FLG)
97#define pSPI_STAT               ((volatile unsigned short *)SPI_STAT)
98#define pSPI_TDBR               ((volatile unsigned short *)SPI_TDBR)
99#define pSPI_RDBR               ((volatile unsigned short *)SPI_RDBR)
100#define pSPI_BAUD               ((volatile unsigned short *)SPI_BAUD)
101#define pSPI_SHADOW     ((volatile unsigned short *)SPI_SHADOW)
102
103
104/* TIMER 0, 1, 2 Registers */
105#define pTIMER0_CONFIG  ((volatile unsigned short *)TIMER0_CONFIG)
106#define pTIMER0_COUNTER ((volatile unsigned long *)TIMER0_COUNTER)
107#define pTIMER0_PERIOD  ((volatile unsigned long *)TIMER0_PERIOD)
108#define pTIMER0_WIDTH   ((volatile unsigned long *)TIMER0_WIDTH)
109
110#define pTIMER1_CONFIG  ((volatile unsigned short *)TIMER1_CONFIG)
111#define pTIMER1_COUNTER ((volatile unsigned long *)TIMER1_COUNTER)
112#define pTIMER1_PERIOD  ((volatile unsigned long *)TIMER1_PERIOD)
113#define pTIMER1_WIDTH   ((volatile unsigned long *)TIMER1_WIDTH)
114
115#define pTIMER2_CONFIG  ((volatile unsigned short *)TIMER2_CONFIG)
116#define pTIMER2_COUNTER ((volatile unsigned long *)TIMER2_COUNTER)
117#define pTIMER2_PERIOD  ((volatile unsigned long *)TIMER2_PERIOD)
118#define pTIMER2_WIDTH   ((volatile unsigned long *)TIMER2_WIDTH)
119
120#define pTIMER_ENABLE   ((volatile unsigned short *)TIMER_ENABLE)
121#define pTIMER_DISABLE  ((volatile unsigned short *)TIMER_DISABLE)
122#define pTIMER_STATUS   ((volatile unsigned short *)TIMER_STATUS)
123
124
125/* General Purpose IO */
126#define pFIO_FLAG_D     ((volatile unsigned short *)FIO_FLAG_D)
127#define pFIO_FLAG_C     ((volatile unsigned short *)FIO_FLAG_C)
128#define pFIO_FLAG_S     ((volatile unsigned short *)FIO_FLAG_S)
129#define pFIO_FLAG_T     ((volatile unsigned short *)FIO_FLAG_T)
130#define pFIO_MASKA_D    ((volatile unsigned short *)FIO_MASKA_D)
131#define pFIO_MASKA_C    ((volatile unsigned short *)FIO_MASKA_C)
132#define pFIO_MASKA_S    ((volatile unsigned short *)FIO_MASKA_S)
133#define pFIO_MASKA_T    ((volatile unsigned short *)FIO_MASKA_T)
134#define pFIO_MASKB_D    ((volatile unsigned short *)FIO_MASKB_D)
135#define pFIO_MASKB_C    ((volatile unsigned short *)FIO_MASKB_C)
136#define pFIO_MASKB_S    ((volatile unsigned short *)FIO_MASKB_S)
137#define pFIO_MASKB_T    ((volatile unsigned short *)FIO_MASKB_T)
138#define pFIO_DIR                ((volatile unsigned short *)FIO_DIR)
139#define pFIO_POLAR              ((volatile unsigned short *)FIO_POLAR)
140#define pFIO_EDGE               ((volatile unsigned short *)FIO_EDGE)
141#define pFIO_BOTH               ((volatile unsigned short *)FIO_BOTH)
142#define pFIO_INEN               ((volatile unsigned short *)FIO_INEN)
143
144
145/* SPORT0 Controller */
146#define pSPORT0_TCR1    ((volatile unsigned short *)SPORT0_TCR1)
147#define pSPORT0_TCR2    ((volatile unsigned short *)SPORT0_TCR2)
148#define pSPORT0_TCLKDIV ((volatile unsigned short *)SPORT0_TCLKDIV)
149#define pSPORT0_TFSDIV  ((volatile unsigned short *)SPORT0_TFSDIV)
150#define pSPORT0_TX              ((volatile long *)SPORT0_TX)
151#define pSPORT0_RX              ((volatile long *)SPORT0_RX)
152#define pSPORT0_TX32    ((volatile long *)SPORT0_TX)
153#define pSPORT0_RX32    ((volatile long *)SPORT0_RX)
154#define pSPORT0_TX16    ((volatile unsigned short *)SPORT0_TX)
155#define pSPORT0_RX16    ((volatile unsigned short *)SPORT0_RX)
156#define pSPORT0_RCR1    ((volatile unsigned short *)SPORT0_RCR1)
157#define pSPORT0_RCR2    ((volatile unsigned short *)SPORT0_RCR2)
158#define pSPORT0_RCLKDIV ((volatile unsigned short *)SPORT0_RCLKDIV)
159#define pSPORT0_RFSDIV  ((volatile unsigned short *)SPORT0_RFSDIV)
160#define pSPORT0_STAT    ((volatile unsigned short *)SPORT0_STAT)
161#define pSPORT0_CHNL    ((volatile unsigned short *)SPORT0_CHNL)
162#define pSPORT0_MCMC1   ((volatile unsigned short *)SPORT0_MCMC1)
163#define pSPORT0_MCMC2   ((volatile unsigned short *)SPORT0_MCMC2)
164#define pSPORT0_MTCS0   ((volatile unsigned long *)SPORT0_MTCS0)
165#define pSPORT0_MTCS1   ((volatile unsigned long *)SPORT0_MTCS1)
166#define pSPORT0_MTCS2   ((volatile unsigned long *)SPORT0_MTCS2)
167#define pSPORT0_MTCS3   ((volatile unsigned long *)SPORT0_MTCS3)
168#define pSPORT0_MRCS0   ((volatile unsigned long *)SPORT0_MRCS0)
169#define pSPORT0_MRCS1   ((volatile unsigned long *)SPORT0_MRCS1)
170#define pSPORT0_MRCS2   ((volatile unsigned long *)SPORT0_MRCS2)
171#define pSPORT0_MRCS3   ((volatile unsigned long *)SPORT0_MRCS3)
172
173
174/* SPORT1 Controller */
175#define pSPORT1_TCR1    ((volatile unsigned short *)SPORT1_TCR1)
176#define pSPORT1_TCR2    ((volatile unsigned short *)SPORT1_TCR2)
177#define pSPORT1_TCLKDIV ((volatile unsigned short *)SPORT1_TCLKDIV)
178#define pSPORT1_TFSDIV  ((volatile unsigned short *)SPORT1_TFSDIV)
179#define pSPORT1_TX              ((volatile long *)SPORT1_TX)
180#define pSPORT1_RX              ((volatile long *)SPORT1_RX)
181#define pSPORT1_TX32    ((volatile long *)SPORT1_TX)
182#define pSPORT1_RX32    ((volatile long *)SPORT1_RX)
183#define pSPORT1_TX16    ((volatile unsigned short *)SPORT1_TX)
184#define pSPORT1_RX16    ((volatile unsigned short *)SPORT1_RX)
185#define pSPORT1_RCR1    ((volatile unsigned short *)SPORT1_RCR1)
186#define pSPORT1_RCR2    ((volatile unsigned short *)SPORT1_RCR2)
187#define pSPORT1_RCLKDIV ((volatile unsigned short *)SPORT1_RCLKDIV)
188#define pSPORT1_RFSDIV  ((volatile unsigned short *)SPORT1_RFSDIV)
189#define pSPORT1_STAT    ((volatile unsigned short *)SPORT1_STAT)
190#define pSPORT1_CHNL    ((volatile unsigned short *)SPORT1_CHNL)
191#define pSPORT1_MCMC1   ((volatile unsigned short *)SPORT1_MCMC1)
192#define pSPORT1_MCMC2   ((volatile unsigned short *)SPORT1_MCMC2)
193#define pSPORT1_MTCS0   ((volatile unsigned long *)SPORT1_MTCS0)
194#define pSPORT1_MTCS1   ((volatile unsigned long *)SPORT1_MTCS1)
195#define pSPORT1_MTCS2   ((volatile unsigned long *)SPORT1_MTCS2)
196#define pSPORT1_MTCS3   ((volatile unsigned long *)SPORT1_MTCS3)
197#define pSPORT1_MRCS0   ((volatile unsigned long *)SPORT1_MRCS0)
198#define pSPORT1_MRCS1   ((volatile unsigned long *)SPORT1_MRCS1)
199#define pSPORT1_MRCS2   ((volatile unsigned long *)SPORT1_MRCS2)
200#define pSPORT1_MRCS3   ((volatile unsigned long *)SPORT1_MRCS3)
201
202
203/* External Bus Interface Unit */
204/* Aysnchronous Memory Controller */
205#define pEBIU_AMGCTL    ((volatile unsigned short *)EBIU_AMGCTL)
206#define pEBIU_AMBCTL0   ((volatile unsigned long *)EBIU_AMBCTL0)
207#define pEBIU_AMBCTL1   ((volatile unsigned long *)EBIU_AMBCTL1)
208
209/* SDRAM Controller */
210#define pEBIU_SDGCTL    ((volatile unsigned long *)EBIU_SDGCTL)
211#define pEBIU_SDBCTL    ((volatile unsigned short *)EBIU_SDBCTL)
212#define pEBIU_SDRRC     ((volatile unsigned short *)EBIU_SDRRC)
213#define pEBIU_SDSTAT    ((volatile unsigned short *)EBIU_SDSTAT)
214
215
216/* DMA Traffic controls */
217#define pDMA_TC_PER     ((volatile unsigned short *)DMA_TC_PER)
218#define pDMA_TC_CNT     ((volatile unsigned short *)DMA_TC_CNT)
219
220/* Alternate deprecated register names (below) provided for backwards code compatibility */
221#define pDMA_TCPER              ((volatile unsigned short *)DMA_TCPER)
222#define pDMA_TCCNT              ((volatile unsigned short *)DMA_TCCNT)
223
224
225/* DMA Controller */
226#define pDMA0_CONFIG                    ((volatile unsigned short *)DMA0_CONFIG)
227#define pDMA0_NEXT_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA0_NEXT_DESC_PTR)
228#define pDMA0_START_ADDR                (_PTR_TO_VOL_VOID_PTR DMA0_START_ADDR)
229#define pDMA0_X_COUNT                   ((volatile unsigned short *)DMA0_X_COUNT)
230#define pDMA0_Y_COUNT                   ((volatile unsigned short *)DMA0_Y_COUNT)
231#define pDMA0_X_MODIFY                  ((volatile signed short *)DMA0_X_MODIFY)
232#define pDMA0_Y_MODIFY                  ((volatile signed short *)DMA0_Y_MODIFY)
233#define pDMA0_CURR_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA0_CURR_DESC_PTR)
234#define pDMA0_CURR_ADDR                 (_PTR_TO_VOL_VOID_PTR DMA0_CURR_ADDR)
235#define pDMA0_CURR_X_COUNT              ((volatile unsigned short *)DMA0_CURR_X_COUNT)
236#define pDMA0_CURR_Y_COUNT              ((volatile unsigned short *)DMA0_CURR_Y_COUNT)
237#define pDMA0_IRQ_STATUS                ((volatile unsigned short *)DMA0_IRQ_STATUS)
238#define pDMA0_PERIPHERAL_MAP    ((volatile unsigned short *)DMA0_PERIPHERAL_MAP)
239
240#define pDMA1_CONFIG                    ((volatile unsigned short *)DMA1_CONFIG)
241#define pDMA1_NEXT_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA1_NEXT_DESC_PTR)
242#define pDMA1_START_ADDR                (_PTR_TO_VOL_VOID_PTR DMA1_START_ADDR)
243#define pDMA1_X_COUNT                   ((volatile unsigned short *)DMA1_X_COUNT)
244#define pDMA1_Y_COUNT                   ((volatile unsigned short *)DMA1_Y_COUNT)
245#define pDMA1_X_MODIFY                  ((volatile signed short *)DMA1_X_MODIFY)
246#define pDMA1_Y_MODIFY                  ((volatile signed short *)DMA1_Y_MODIFY)
247#define pDMA1_CURR_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA1_CURR_DESC_PTR)
248#define pDMA1_CURR_ADDR                 (_PTR_TO_VOL_VOID_PTR DMA1_CURR_ADDR)
249#define pDMA1_CURR_X_COUNT              ((volatile unsigned short *)DMA1_CURR_X_COUNT)
250#define pDMA1_CURR_Y_COUNT              ((volatile unsigned short *)DMA1_CURR_Y_COUNT)
251#define pDMA1_IRQ_STATUS                ((volatile unsigned short *)DMA1_IRQ_STATUS)
252#define pDMA1_PERIPHERAL_MAP    ((volatile unsigned short *)DMA1_PERIPHERAL_MAP)
253
254#define pDMA2_CONFIG                    ((volatile unsigned short *)DMA2_CONFIG)
255#define pDMA2_NEXT_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA2_NEXT_DESC_PTR)
256#define pDMA2_START_ADDR                (_PTR_TO_VOL_VOID_PTR DMA2_START_ADDR)
257#define pDMA2_X_COUNT                   ((volatile unsigned short *)DMA2_X_COUNT)
258#define pDMA2_Y_COUNT                   ((volatile unsigned short *)DMA2_Y_COUNT)
259#define pDMA2_X_MODIFY                  ((volatile signed short *)DMA2_X_MODIFY)
260#define pDMA2_Y_MODIFY                  ((volatile signed short *)DMA2_Y_MODIFY)
261#define pDMA2_CURR_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA2_CURR_DESC_PTR)
262#define pDMA2_CURR_ADDR                 (_PTR_TO_VOL_VOID_PTR DMA2_CURR_ADDR)
263#define pDMA2_CURR_X_COUNT              ((volatile unsigned short *)DMA2_CURR_X_COUNT)
264#define pDMA2_CURR_Y_COUNT              ((volatile unsigned short *)DMA2_CURR_Y_COUNT)
265#define pDMA2_IRQ_STATUS                ((volatile unsigned short *)DMA2_IRQ_STATUS)
266#define pDMA2_PERIPHERAL_MAP    ((volatile unsigned short *)DMA2_PERIPHERAL_MAP)
267
268#define pDMA3_CONFIG                    ((volatile unsigned short *)DMA3_CONFIG)
269#define pDMA3_NEXT_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA3_NEXT_DESC_PTR)
270#define pDMA3_START_ADDR                (_PTR_TO_VOL_VOID_PTR DMA3_START_ADDR)
271#define pDMA3_X_COUNT                   ((volatile unsigned short *)DMA3_X_COUNT)
272#define pDMA3_Y_COUNT                   ((volatile unsigned short *)DMA3_Y_COUNT)
273#define pDMA3_X_MODIFY                  ((volatile signed short *)DMA3_X_MODIFY)
274#define pDMA3_Y_MODIFY                  ((volatile signed short *)DMA3_Y_MODIFY)
275#define pDMA3_CURR_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA3_CURR_DESC_PTR)
276#define pDMA3_CURR_ADDR                 (_PTR_TO_VOL_VOID_PTR DMA3_CURR_ADDR)
277#define pDMA3_CURR_X_COUNT              ((volatile unsigned short *)DMA3_CURR_X_COUNT)
278#define pDMA3_CURR_Y_COUNT              ((volatile unsigned short *)DMA3_CURR_Y_COUNT)
279#define pDMA3_IRQ_STATUS                ((volatile unsigned short *)DMA3_IRQ_STATUS)
280#define pDMA3_PERIPHERAL_MAP    ((volatile unsigned short *)DMA3_PERIPHERAL_MAP)
281
282#define pDMA4_CONFIG                    ((volatile unsigned short *)DMA4_CONFIG)
283#define pDMA4_NEXT_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA4_NEXT_DESC_PTR)
284#define pDMA4_START_ADDR                (_PTR_TO_VOL_VOID_PTR DMA4_START_ADDR)
285#define pDMA4_X_COUNT                   ((volatile unsigned short *)DMA4_X_COUNT)
286#define pDMA4_Y_COUNT                   ((volatile unsigned short *)DMA4_Y_COUNT)
287#define pDMA4_X_MODIFY                  ((volatile signed short *)DMA4_X_MODIFY)
288#define pDMA4_Y_MODIFY                  ((volatile signed short *)DMA4_Y_MODIFY)
289#define pDMA4_CURR_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA4_CURR_DESC_PTR)
290#define pDMA4_CURR_ADDR                 (_PTR_TO_VOL_VOID_PTR DMA4_CURR_ADDR)
291#define pDMA4_CURR_X_COUNT              ((volatile unsigned short *)DMA4_CURR_X_COUNT)
292#define pDMA4_CURR_Y_COUNT              ((volatile unsigned short *)DMA4_CURR_Y_COUNT)
293#define pDMA4_IRQ_STATUS                ((volatile unsigned short *)DMA4_IRQ_STATUS)
294#define pDMA4_PERIPHERAL_MAP    ((volatile unsigned short *)DMA4_PERIPHERAL_MAP)
295
296#define pDMA5_CONFIG                    ((volatile unsigned short *)DMA5_CONFIG)
297#define pDMA5_NEXT_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA5_NEXT_DESC_PTR)
298#define pDMA5_START_ADDR                (_PTR_TO_VOL_VOID_PTR DMA5_START_ADDR)
299#define pDMA5_X_COUNT                   ((volatile unsigned short *)DMA5_X_COUNT)
300#define pDMA5_Y_COUNT                   ((volatile unsigned short *)DMA5_Y_COUNT)
301#define pDMA5_X_MODIFY                  ((volatile signed short *)DMA5_X_MODIFY)
302#define pDMA5_Y_MODIFY                  ((volatile signed short *)DMA5_Y_MODIFY)
303#define pDMA5_CURR_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA5_CURR_DESC_PTR)
304#define pDMA5_CURR_ADDR                 (_PTR_TO_VOL_VOID_PTR DMA5_CURR_ADDR)
305#define pDMA5_CURR_X_COUNT              ((volatile unsigned short *)DMA5_CURR_X_COUNT)
306#define pDMA5_CURR_Y_COUNT              ((volatile unsigned short *)DMA5_CURR_Y_COUNT)
307#define pDMA5_IRQ_STATUS                ((volatile unsigned short *)DMA5_IRQ_STATUS)
308#define pDMA5_PERIPHERAL_MAP    ((volatile unsigned short *)DMA5_PERIPHERAL_MAP)
309
310#define pDMA6_CONFIG                    ((volatile unsigned short *)DMA6_CONFIG)
311#define pDMA6_NEXT_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA6_NEXT_DESC_PTR)
312#define pDMA6_START_ADDR                (_PTR_TO_VOL_VOID_PTR DMA6_START_ADDR)
313#define pDMA6_X_COUNT                   ((volatile unsigned short *)DMA6_X_COUNT)
314#define pDMA6_Y_COUNT                   ((volatile unsigned short *)DMA6_Y_COUNT)
315#define pDMA6_X_MODIFY                  ((volatile signed short *)DMA6_X_MODIFY)
316#define pDMA6_Y_MODIFY                  ((volatile signed short *)DMA6_Y_MODIFY)
317#define pDMA6_CURR_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA6_CURR_DESC_PTR)
318#define pDMA6_CURR_ADDR                 (_PTR_TO_VOL_VOID_PTR DMA6_CURR_ADDR)
319#define pDMA6_CURR_X_COUNT              ((volatile unsigned short *)DMA6_CURR_X_COUNT)
320#define pDMA6_CURR_Y_COUNT              ((volatile unsigned short *)DMA6_CURR_Y_COUNT)
321#define pDMA6_IRQ_STATUS                ((volatile unsigned short *)DMA6_IRQ_STATUS)
322#define pDMA6_PERIPHERAL_MAP    ((volatile unsigned short *)DMA6_PERIPHERAL_MAP)
323
324#define pDMA7_CONFIG                    ((volatile unsigned short *)DMA7_CONFIG)
325#define pDMA7_NEXT_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA7_NEXT_DESC_PTR)
326#define pDMA7_START_ADDR                (_PTR_TO_VOL_VOID_PTR DMA7_START_ADDR)
327#define pDMA7_X_COUNT                   ((volatile unsigned short *)DMA7_X_COUNT)
328#define pDMA7_Y_COUNT                   ((volatile unsigned short *)DMA7_Y_COUNT)
329#define pDMA7_X_MODIFY                  ((volatile signed short *)DMA7_X_MODIFY)
330#define pDMA7_Y_MODIFY                  ((volatile signed short *)DMA7_Y_MODIFY)
331#define pDMA7_CURR_DESC_PTR     (_PTR_TO_VOL_VOID_PTR DMA7_CURR_DESC_PTR)
332#define pDMA7_CURR_ADDR                 (_PTR_TO_VOL_VOID_PTR DMA7_CURR_ADDR)
333#define pDMA7_CURR_X_COUNT              ((volatile unsigned short *)DMA7_CURR_X_COUNT)
334#define pDMA7_CURR_Y_COUNT              ((volatile unsigned short *)DMA7_CURR_Y_COUNT)
335#define pDMA7_IRQ_STATUS                ((volatile unsigned short *)DMA7_IRQ_STATUS)
336#define pDMA7_PERIPHERAL_MAP    ((volatile unsigned short *)DMA7_PERIPHERAL_MAP)
337
338#define pMDMA_D1_CONFIG                 ((volatile unsigned short *)MDMA_D1_CONFIG)
339#define pMDMA_D1_NEXT_DESC_PTR  (_PTR_TO_VOL_VOID_PTR MDMA_D1_NEXT_DESC_PTR)
340#define pMDMA_D1_START_ADDR     (_PTR_TO_VOL_VOID_PTR MDMA_D1_START_ADDR)
341#define pMDMA_D1_X_COUNT                ((volatile unsigned short *)MDMA_D1_X_COUNT)
342#define pMDMA_D1_Y_COUNT                ((volatile unsigned short *)MDMA_D1_Y_COUNT)
343#define pMDMA_D1_X_MODIFY               ((volatile signed short *)MDMA_D1_X_MODIFY)
344#define pMDMA_D1_Y_MODIFY               ((volatile signed short *)MDMA_D1_Y_MODIFY)
345#define pMDMA_D1_CURR_DESC_PTR  (_PTR_TO_VOL_VOID_PTR MDMA_D1_CURR_DESC_PTR)
346#define pMDMA_D1_CURR_ADDR              (_PTR_TO_VOL_VOID_PTR MDMA_D1_CURR_ADDR)
347#define pMDMA_D1_CURR_X_COUNT   ((volatile unsigned short *)MDMA_D1_CURR_X_COUNT)
348#define pMDMA_D1_CURR_Y_COUNT   ((volatile unsigned short *)MDMA_D1_CURR_Y_COUNT)
349#define pMDMA_D1_IRQ_STATUS     ((volatile unsigned short *)MDMA_D1_IRQ_STATUS)
350#define pMDMA_D1_PERIPHERAL_MAP ((volatile unsigned short *)MDMA_D1_PERIPHERAL_MAP)
351
352#define pMDMA_S1_CONFIG                 ((volatile unsigned short *)MDMA_S1_CONFIG)
353#define pMDMA_S1_NEXT_DESC_PTR  (_PTR_TO_VOL_VOID_PTR MDMA_S1_NEXT_DESC_PTR)
354#define pMDMA_S1_START_ADDR     (_PTR_TO_VOL_VOID_PTR MDMA_S1_START_ADDR)
355#define pMDMA_S1_X_COUNT                ((volatile unsigned short *)MDMA_S1_X_COUNT)
356#define pMDMA_S1_Y_COUNT                ((volatile unsigned short *)MDMA_S1_Y_COUNT)
357#define pMDMA_S1_X_MODIFY               ((volatile signed short *)MDMA_S1_X_MODIFY)
358#define pMDMA_S1_Y_MODIFY               ((volatile signed short *)MDMA_S1_Y_MODIFY)
359#define pMDMA_S1_CURR_DESC_PTR  (_PTR_TO_VOL_VOID_PTR MDMA_S1_CURR_DESC_PTR)
360#define pMDMA_S1_CURR_ADDR              (_PTR_TO_VOL_VOID_PTR MDMA_S1_CURR_ADDR)
361#define pMDMA_S1_CURR_X_COUNT   ((volatile unsigned short *)MDMA_S1_CURR_X_COUNT)
362#define pMDMA_S1_CURR_Y_COUNT   ((volatile unsigned short *)MDMA_S1_CURR_Y_COUNT)
363#define pMDMA_S1_IRQ_STATUS     ((volatile unsigned short *)MDMA_S1_IRQ_STATUS)
364#define pMDMA_S1_PERIPHERAL_MAP ((volatile unsigned short *)MDMA_S1_PERIPHERAL_MAP)
365
366#define pMDMA_D0_CONFIG                 ((volatile unsigned short *)MDMA_D0_CONFIG)
367#define pMDMA_D0_NEXT_DESC_PTR  (_PTR_TO_VOL_VOID_PTR MDMA_D0_NEXT_DESC_PTR)
368#define pMDMA_D0_START_ADDR     (_PTR_TO_VOL_VOID_PTR MDMA_D0_START_ADDR)
369#define pMDMA_D0_X_COUNT                ((volatile unsigned short *)MDMA_D0_X_COUNT)
370#define pMDMA_D0_Y_COUNT                ((volatile unsigned short *)MDMA_D0_Y_COUNT)
371#define pMDMA_D0_X_MODIFY               ((volatile signed short *)MDMA_D0_X_MODIFY)
372#define pMDMA_D0_Y_MODIFY               ((volatile signed short *)MDMA_D0_Y_MODIFY)
373#define pMDMA_D0_CURR_DESC_PTR  (_PTR_TO_VOL_VOID_PTR MDMA_D0_CURR_DESC_PTR)
374#define pMDMA_D0_CURR_ADDR              (_PTR_TO_VOL_VOID_PTR MDMA_D0_CURR_ADDR)
375#define pMDMA_D0_CURR_X_COUNT   ((volatile unsigned short *)MDMA_D0_CURR_X_COUNT)
376#define pMDMA_D0_CURR_Y_COUNT   ((volatile unsigned short *)MDMA_D0_CURR_Y_COUNT)
377#define pMDMA_D0_IRQ_STATUS     ((volatile unsigned short *)MDMA_D0_IRQ_STATUS)
378#define pMDMA_D0_PERIPHERAL_MAP ((volatile unsigned short *)MDMA_D0_PERIPHERAL_MAP)
379
380#define pMDMA_S0_CONFIG                 ((volatile unsigned short *)MDMA_S0_CONFIG)
381#define pMDMA_S0_NEXT_DESC_PTR  (_PTR_TO_VOL_VOID_PTR MDMA_S0_NEXT_DESC_PTR)
382#define pMDMA_S0_START_ADDR     (_PTR_TO_VOL_VOID_PTR MDMA_S0_START_ADDR)
383#define pMDMA_S0_X_COUNT                ((volatile unsigned short *)MDMA_S0_X_COUNT)
384#define pMDMA_S0_Y_COUNT                ((volatile unsigned short *)MDMA_S0_Y_COUNT)
385#define pMDMA_S0_X_MODIFY               ((volatile signed short *)MDMA_S0_X_MODIFY)
386#define pMDMA_S0_Y_MODIFY               ((volatile signed short *)MDMA_S0_Y_MODIFY)
387#define pMDMA_S0_CURR_DESC_PTR  (_PTR_TO_VOL_VOID_PTR MDMA_S0_CURR_DESC_PTR)
388#define pMDMA_S0_CURR_ADDR              (_PTR_TO_VOL_VOID_PTR MDMA_S0_CURR_ADDR)
389#define pMDMA_S0_CURR_X_COUNT   ((volatile unsigned short *)MDMA_S0_CURR_X_COUNT)
390#define pMDMA_S0_CURR_Y_COUNT   ((volatile unsigned short *)MDMA_S0_CURR_Y_COUNT)
391#define pMDMA_S0_IRQ_STATUS     ((volatile unsigned short *)MDMA_S0_IRQ_STATUS)
392#define pMDMA_S0_PERIPHERAL_MAP ((volatile unsigned short *)MDMA_S0_PERIPHERAL_MAP)
393
394
395
396/* Parallel Peripheral Interface (PPI) */
397#define pPPI_CONTROL    ((volatile unsigned short *)PPI_CONTROL)
398#define pPPI_STATUS     ((volatile unsigned short *)PPI_STATUS)
399#define pPPI_COUNT              ((volatile unsigned short *)PPI_COUNT)
400#define pPPI_DELAY              ((volatile unsigned short *)PPI_DELAY)
401#define pPPI_FRAME              ((volatile unsigned short *)PPI_FRAME)
402
403#endif /* _CDEF_BF532_H */
Note: See TracBrowser for help on using the repository browser.