labcomm_compat_vxworks.h 504 Bytes
Newer Older
1 2
#ifndef __LABCOMM2006_COMPAT_VXWORKS_H__
#define __LABCOMM2006_COMPAT_VXWORKS_H__
Anders Blomdell's avatar
Anders Blomdell committed
3 4

#ifndef __VXWORKS__
5 6 7
#error "__VXWORKS__" not defined
#endif

Anders Blomdell's avatar
Anders Blomdell committed
8 9 10 11 12 13 14 15 16 17
#include <types/vxTypes.h>
#include <selectLib.h>
#include <types.h>
#include <timers.h>
#include <stdio.h>
#include <private/stdioP.h>

#ifdef __INT64_MAX__
#undef INT64_MAX
#define INT64_MAX __INT64_MAX__
Anders Blomdell's avatar
Anders Blomdell committed
18
#endif
Anders Blomdell's avatar
Anders Blomdell committed
19

20 21 22 23 24 25 26 27
#if (CPU == PPC603)
  #undef _LITTLE_ENDIAN
#endif

#if (CPU == PENTIUM4)
  #undef _BIG_ENDIAN
#endif

Anders Blomdell's avatar
Anders Blomdell committed
28 29 30
extern unsigned int cpuFrequency;

#endif