..................

Modified 02/14/03

Description

The contents of "jonsinc.h" is used in many of my projects. Download this file and save it in your Source or Include directory. You can use it in one of three ways...

  • use it by including the line "#include < jonsinc.h >" at the beginning of the C source code
  • use it by cutting-and-pasting the varous #define statements in jonsinc.h directly into the beginning of your C code so that everything needed by that C code is embedded in that one file
  • use it by embedding the various #define statements in jonsinc.h at the end of each of your 12C509H, 16F84H, 16F876.H, etc, include files provided by CCS.

Contents

#case

#ifndef TRUE
#define TRUE 1
#endif

#ifndef FALSE
#define FALSE 0
#endif

#ifndef YES
#define YES 1
#endif

#ifndef NO
#define NO 0
#endif

#ifndef HIGH
#define HIGH 1
#endif

#ifndef LOW
#define LOW 0
#endif

#ifndef ON
#define ON 1
#endif

#ifndef OFF
#define OFF 0
#endif

#ifndef UP
#define UP 1
#endif

#ifndef DOWN
#define DOWN 0
#endif

#ifndef UCHAR
#define UCHAR char
#endif

#ifndef UINT
#define UINT long
#endif

#ifndef BIT
#define BIT short
#endif

#ifndef SCHAR
#define SCHAR signed int
#endif

#ifndef SINT
#define SINT signed long
#endif

#ifndef FLOAT
#define FLOAT float
#endif