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

processor.h

Go to the documentation of this file.
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 /* VME host data types */
00022 #if (defined(I_AM_HOST) || defined(I_AM_NT_HOST) || defined(I_AM_LINUX_HOST))
00023 #ifndef I_AM_HOST
00024 #define I_AM_HOST
00025 #endif
00026     typedef short          INT16;
00027     typedef int            INT32;
00028     typedef unsigned char  UINT8;
00029     typedef unsigned short UINT16;
00030     typedef unsigned int   UINT32;
00031     typedef float          FLOAT32;
00032     typedef double         FLOAT64;
00033 #endif
00034 
00035 #ifdef I_AM_SLAVE_DSP                       /* slave DSP (TMS320C6701) data types */
00036     typedef char           INT8;
00037     typedef short          INT16;
00038     typedef int            INT32;
00039     typedef long           INT40;
00040     typedef unsigned char  UINT8;
00041     typedef unsigned short UINT16;
00042     typedef unsigned int   UINT32;
00043     typedef unsigned long  UINT40;
00044     typedef float          FLOAT32;
00045     typedef double         FLOAT64;
00046 #endif
00047 
00048 #ifdef I_AM_MASTER_DSP                      /* master DSP (TMS320C6201) data types */
00049     typedef char           INT8;
00050     typedef short          INT16;
00051     typedef int            INT32;
00052     typedef long           INT40;
00053     typedef unsigned char  UINT8;
00054     typedef unsigned short UINT16;
00055     typedef unsigned int   UINT32;
00056     typedef unsigned long  UINT40;
00057     typedef float          FLOAT32;
00058     typedef double         FLOAT64;
00059 #endif
00060 
00061 /* other variables seemed to have escaped stdinc.h... */
00062 #else
00063     #if (!defined(I_AM_HOST))
00064         typedef float          FLOAT32;
00065         typedef double         FLOAT64;
00066     #endif
00067 #endif  /* stdinc.h*/
00068 
00069 #if   defined(SCT_ROD)
00070     typedef FLOAT32        MDAT32;
00071 #elif defined(PIXEL_ROD)
00072     typedef UINT32         MDAT32;
00073 #endif
00074 
00075 
00076 
00077 #endif  /* PROCESSOR_SET */

Generated on Mon Dec 15 19:36:11 2003 for SCT DAQ/DCS Software by doxygen1.3-rc3