1 /* Coldfire C Header File
\r
2 * Copyright Freescale Semiconductor Inc
\r
3 * All rights reserved.
\r
5 * 2007/03/19 Revision: 0.91
\r
8 #ifndef __MCF52235_GIACR_H__
\r
9 #define __MCF52235_GIACR_H__
\r
12 /*********************************************************************
\r
14 * Global Interrupt Acknowledge Control Registers Module (GIACR)
\r
16 *********************************************************************/
\r
18 /* Register read/write macros */
\r
19 #define MCF_GIACR_GSWIACK (*(vuint8 *)(&__IPSBAR[0xFE0]))
\r
20 #define MCF_GIACR_GL1IACK (*(vuint8 *)(&__IPSBAR[0xFE4]))
\r
21 #define MCF_GIACR_GL2IACK (*(vuint8 *)(&__IPSBAR[0xFE8]))
\r
22 #define MCF_GIACR_GL3IACK (*(vuint8 *)(&__IPSBAR[0xFEC]))
\r
23 #define MCF_GIACR_GL4IACK (*(vuint8 *)(&__IPSBAR[0xFF0]))
\r
24 #define MCF_GIACR_GL5IACK (*(vuint8 *)(&__IPSBAR[0xFF4]))
\r
25 #define MCF_GIACR_GL6IACK (*(vuint8 *)(&__IPSBAR[0xFF8]))
\r
26 #define MCF_GIACR_GL7IACK (*(vuint8 *)(&__IPSBAR[0xFFC]))
\r
27 #define MCF_GIACR_GLIACK(x) (*(vuint8 *)(&__IPSBAR[0xFE4 + ((x-1)*0x4)]))
\r
30 /* Bit definitions and macros for MCF_GIACR_GSWIACK */
\r
31 #define MCF_GIACR_GSWIACK_VECTOR(x) (((x)&0xFF)<<0)
\r
33 /* Bit definitions and macros for MCF_GIACR_GLIACK */
\r
34 #define MCF_GIACR_GLIACK_VECTOR(x) (((x)&0xFF)<<0)
\r
37 #endif /* __MCF52235_GIACR_H__ */
\r