Freescale Semiconductor Inc.
    Regional Technical Application Center

 

Main Page | Directories | File List | File Members

xgate.h

Go to the documentation of this file.
00001 /*******************************************************************************/
00013 /*******************************************************************************/
00014 /*                                                                             */
00015 /* All software, source code, included documentation, and any implied know-how */
00016 /* are property of Freescale Semiconductor and therefore considered            */ 
00017 /* CONFIDENTIAL INFORMATION.                                                   */
00018 /*                                                                             */
00019 /* This confidential information is disclosed FOR DEMONSTRATION PURPOSES ONLY. */
00020 /*                                                                             */
00021 /* All Confidential Information remains the property of Freescale Semiconductor*/
00022 /* and will not be copied or reproduced without the express written permission */
00023 /* of the Discloser, except for copies that are absolutely necessary in order  */
00024 /* to fulfill the Purpose.                                                     */
00025 /*                                                                             */
00026 /* Services performed by FREESCALE in this matter are performed AS IS and      */
00027 /* without any warranty. CUSTOMER retains the final decision relative to the   */
00028 /* total design and functionality of the end product.                          */
00029 /*                                                                             */
00030 /* FREESCALE neither guarantees nor will be held liable by CUSTOMER for the    */
00031 /* success of this project.                                                    */
00032 /*                                                                             */
00033 /* FREESCALE disclaims all warranties, express, implied or statutory including,*/
00034 /* but not limited to, implied warranty of merchantability or fitness for a    */
00035 /* particular purpose on any hardware, software or advise supplied to the      */
00036 /* project by FREESCALE, and or any product resulting from FREESCALE services. */
00037 /*                                                                             */
00038 /* In no event shall FREESCALE be liable for incidental or consequential       */
00039 /* damages arising out of this agreement. CUSTOMER agrees to hold FREESCALE    */
00040 /* harmless against any and all claims demands or actions by anyone on account */
00041 /* of any damage,or injury, whether commercial, contractual, or tortuous,      */
00042 /* rising directly or indirectly as a result of the advise or assistance       */
00043 /* supplied CUSTOMER in connection with product, services or goods supplied    */
00044 /* under this Agreement.                                                       */
00045 /*                                                                             */
00046 /*******************************************************************************/
00047 
00048 
00049 #ifndef _XGATE_H
00050 #define _XGATE_H
00051 
00052 typedef void (*_NEAR XGATE_Function)(int);  /* XGATE vector table entry */
00053 typedef struct {
00054   XGATE_Function pc;        /* pointer to the handler */
00055   int dataptr;              /* pointer to the data of the handler */
00056 } XGATE_TableEntry;
00057 
00058 #pragma push                                                            /* save current segment definitions */
00059 
00060 #pragma CONST_SEG __GPAGE_SEG XGATE_VECTORS  /* for the HCS12X/XGATE shared setup, HCS12X needs global addressing to access the vector table. */
00061 
00062 #define XGATE_VECTOR_OFFSET 9                           /* the first elements are unused and need not to be allocated (to save space) */
00063 
00064 extern const XGATE_TableEntry XGATE_VectorTable[];
00065 
00066 #pragma pop                                                                     /* restore previous segment definitions */
00067 
00068 
00069 #endif /* __XGATE_H */