]> git.sur5r.net Git - freertos/blob - Demo/ColdFire_MCF52233_Eclipse/RTOSDemo/MCF5223x/MCF52235_GIACR.h
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@569 1d2547de-c912-0410...
[freertos] / Demo / ColdFire_MCF52233_Eclipse / RTOSDemo / MCF5223x / MCF52235_GIACR.h
1 /* Coldfire C Header File\r
2  * Copyright Freescale Semiconductor Inc\r
3  * All rights reserved.\r
4  *\r
5  * 2007/03/19 Revision: 0.91\r
6  */\r
7 \r
8 #ifndef __MCF52235_GIACR_H__\r
9 #define __MCF52235_GIACR_H__\r
10 \r
11 \r
12 /*********************************************************************\r
13 *\r
14 * Global Interrupt Acknowledge Control Registers Module (GIACR)\r
15 *\r
16 *********************************************************************/\r
17 \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
28 \r
29 \r
30 /* Bit definitions and macros for MCF_GIACR_GSWIACK */\r
31 #define MCF_GIACR_GSWIACK_VECTOR(x)          (((x)&0xFF)<<0)\r
32 \r
33 /* Bit definitions and macros for MCF_GIACR_GLIACK */\r
34 #define MCF_GIACR_GLIACK_VECTOR(x)           (((x)&0xFF)<<0)\r
35 \r
36 \r
37 #endif /* __MCF52235_GIACR_H__ */\r