/************************************************************************ * * * Module Name: sysdef.h * * * * Description: This file contains the system wide definitions * * Date By Reason * * 13Dec04 PWR initial release * * * Copyright Delta Information Systems Inc., Horsham, Pa., 2004 * * All Rights Reserved * *************************************************************************/ #ifndef _SYSDEF_H_ #define _SYSDEF_H_ #include /* All the kernel specific stuff */ typedef void (*FPTR)(void); //typedef void (*INT_HNDLR)(int); typedef cyg_uint16 WORD; typedef cyg_uint64 UINT64; typedef cyg_uint32 UINT32; typedef cyg_uint16 UINT16; typedef cyg_uint8 UINT8; typedef cyg_uint8 UCHAR; typedef cyg_uint8 OCTET; typedef cyg_uint32 BOOL; typedef cyg_int32 INT32; typedef cyg_int16 INT16; #define ERROR 0xFF #define OK 0x00 #define CARRIAGE_RETURN 0x0D #define LINE_FEED 0x0A #define BACKSPACE 0x08 #define UP 1 #define DOWN 0 #define NO_CHNG 2 #define TRUE 1 #define FALSE 0 #define LOW 0 #define HIGH 1 #define OFF 0 #define ON 1 #define DISABLE 0 #define ENABLE 1 #define EQ == #define NE != #define LT < #define GT > #define LE <= #define GE >= #define OR || #define AND && #define NULLPTR (char *)-1 /* null pointer for char ptr */ //#define NULL 0 // Bit Definitions #define BIT00 0x00000001 #define BIT01 0x00000002 #define BIT02 0x00000004 #define BIT03 0x00000008 #define BIT04 0x00000010 #define BIT05 0x00000020 #define BIT06 0x00000040 #define BIT07 0x00000080 #define BIT08 0x00000100 #define BIT09 0x00000200 #define BIT10 0x00000400 #define BIT11 0x00000800 #define BIT12 0x00001000 #define BIT13 0x00002000 #define BIT14 0x00004000 #define BIT15 0x00008000 #define BIT16 0x00010000 #define BIT17 0x00020000 #define BIT18 0x00040000 #define BIT19 0x00080000 #define BIT20 0x00100000 #define BIT21 0x00200000 #define BIT22 0x00400000 #define BIT23 0x00800000 #define BIT24 0x01000000 #define BIT25 0x02000000 #define BIT26 0x04000000 #define BIT27 0x08000000 #define BIT28 0x10000000 #define BIT29 0x20000000 #define BIT30 0x40000000 #define BIT31 0x80000000 // Bit Mask Definitions #define MASKB00 0xfffe #define MASKB01 0xfffd #define MASKB02 0xfffb #define MASKB03 0xfff7 #define MASKB04 0xffef #define MASKB05 0xffdf #define MASKB06 0xffbf #define MASKB07 0xff7f #define MASKB08 0xfeff #define MASKB09 0xfdff #define MASKB10 0xfbff #define MASKB11 0xf7ff #define MASKB12 0xefff #define MASKB13 0xdfff #define MASKB14 0xbfff #define MASKB15 0x7fff #endif