Freescale Semiconductor Inc.
    Regional Technical Application Center

 

Main Page | Directories | File List | File Members | Related Pages

typedefs.h

Go to the documentation of this file.
00001 /*******************************************************************************/
00015 /*******************************************************************************/
00016 
00017 typedef unsigned char   UINT8;  /*unsigned 8 bit definition */
00018 typedef unsigned short  UINT16; /*unsigned 16 bit definition*/
00019 typedef unsigned long   UINT32; /*unsigned 32 bit definition*/
00020 typedef signed char     INT8;   /*signed 8 bit definition */
00021 typedef short           INT16;  /*signed 16 bit definition*/
00022 typedef long int        INT32;  /*signed 32 bit definition*/
00023 
00024 /*
00025  * Common Bit masks
00026  */
00027 #define ENABLE_INTERRUPTS()  {__asm CLI; XGMCTL_XGIE = 1;}        /*interrupts enabled        */
00028 #define DISABLE_INTERRUPTS() {__asm SEI; XGMCTL_XGIE = 0;}        /*interrupts disabled       */
00029 #define XIRQ_ENABLE()        {asm andcc #0xBF;}  /*XIRQ enabled              */
00030 #define WAIT()               {asm wait;}         /*enter wait mode           */
00031 #define STOP_ENABLE()        {asm andcc #0x7F;}  /*stop mode enabled         */
00032 #define STOP()               {asm stop;}         /*enter stop mode           */
00033 #define NOP()                {asm nop;}          /*enter NOP asm instruction */
00034 
00035 /* 
00036  *  Common Constants
00037  */
00038 #define ON 1            
00039 #define OFF 0           
00040 #define TRUE 1          
00041 #define FALSE 0         
00042 #define PASS 0u
00043 #define FAIL 1u
00044 #define SET 1u
00045 #define CLEAR 0u
00046