Main Page   Modules   Namespace List   Class Hierarchy   Data Structures   File List   Namespace Members   Data Fields   Related Pages  

processor.h

00001 /************************************************************************************
00002  * processor.h
00003  *
00004  *  synopsis: Sets some parameters and typedefs which may be processor dependant.  The
00005  *           processor type should be defined globally, e.g. via a -d or -D compiler
00006  *           option.
00007  *
00008  *  Damon Fasching, UW Madison (510)486-5230               fasching@wisconsin.cern.ch
00009  ************************************************************************************/
00010 
00011 #ifndef PROCESSOR_SET
00012 #define PROCESSOR_SET
00013 
00014 /* macros */
00015 #define SIZEOF(x) (sizeof(x) >> 2) /* sizeof is in bytes, SIZEOF is in 32 bit words */
00016 
00017 /* typedef the fundamental data types.
00018  * some of these are already defined in TI's stdinc.h, new with CCS v1.20 */
00019 #ifndef _STDINC_H_
00020 
00021 #ifdef I_AM_LINUX_HOST                      /* Linux host data types */
00022 typedef short          INT16;
00023 typedef int            INT32;
00024 typedef unsigned char  UINT8;
00025 typedef unsigned short UINT16;
00026 typedef unsigned int   UINT32;
00027 typedef float          FLOAT32;
00028 typedef double         FLOAT64;
00029 #endif
00030 
00031 #ifdef I_AM_NT_HOST                         /* Windows NT host data types */
00032 typedef short          INT16;
00033 typedef long           INT32;
00034 typedef unsigned char  UINT8;
00035 typedef unsigned short UINT16;
00036 typedef unsigned int   UINT32;
00037 typedef float          FLOAT32;
00038 typedef double         FLOAT64;
00039 #endif
00040 
00041 #ifdef I_AM_SLAVE_DSP                       /* slave DSP (TMS320C6701) data types */
00042     typedef char           INT8;
00043     typedef short          INT16;
00044     typedef int            INT32;
00045     typedef long           INT40;
00046     typedef unsigned char  UINT8;
00047     typedef unsigned short UINT16;
00048     typedef unsigned int   UINT32;
00049     typedef unsigned long  UINT40;
00050     typedef float          FLOAT32;
00051     typedef double         FLOAT64;
00052 #endif
00053 
00054 #ifdef I_AM_MASTER_DSP                      /* master DSP (TMS320C6201) data types */
00055     typedef char           INT8;
00056     typedef short          INT16;
00057     typedef int            INT32;
00058     typedef long           INT40;
00059     typedef unsigned char  UINT8;
00060     typedef unsigned short UINT16;
00061     typedef unsigned int   UINT32;
00062     typedef unsigned long  UINT40;
00063     typedef float          FLOAT32;
00064     typedef double         FLOAT64;
00065 #endif
00066 
00067 /* other variables seemed to have escaped stdinc.h... */
00068 #else
00069     #if (!defined(I_AM_HOST))
00070         typedef float          FLOAT32;
00071         typedef double         FLOAT64;
00072     #endif
00073 #endif  /* stdinc.h*/
00074 
00075 #if   defined(SCT_ROD)
00076     typedef FLOAT32        MDAT32;
00077 #elif defined(PIXEL_ROD)
00078     typedef UINT32         MDAT32;
00079 #endif
00080 
00081 
00082 
00083 
00084 #endif  /* PROCESSOR_SET */

Generated on Mon Dec 8 18:03:58 2003 for SCT DAQ/DCS Software by doxygen1.3-rc3