/******************************************************************************
*                                                                             *
*              Copyright (C),  Philips Semiconductors SLH                     *
*                                                                             *
*  All rights are reserved. Reproduction in whole or in part is prohibited    *
*           without the written consent of the copyright owner.               *
*                                                                             *
*  Philips reserves the right to make changes without notice at any time.     *
* Philips makes no warranty, expressed, implied or statutory, including but   *
* not limited to any implied warranty of merchantibility or fitness for any   *
*   particular purpose, or that the use will not infringe any third party     *
* patent, copyright or trademark. Philips must not be liable for any loss or  *
*                      damage arising from its use.                           *
*                                                                             *
*******************************************************************************
*                                                                             *
*       Project: 336355/105 - Control SW Library for HTRC110/HTRC120/HITAG2   *
*                                                                             *
*       File: PORTAB.H                                                        *
*       Author:  St. de Zeeuw                                                 *
*                                                                             *
*******************************************************************************
*      DATE      *          CHANGES DONE                         *    BY      *
*******************************************************************************
*                *                                               *            *
*  Dec 04,1997   * Start implementation                          * de Zeeuw   *
*  Dec 10,1997   * Version 1.0, tested Version                   * de Zeeuw   *
*  Apr 27,1998   * Version 2.0, tested Version                   * de Zeeuw   *
*                *                                               *            *
*******************************************************************************/

#ifndef __PORTAB_H
#define __PORTAB_H


/* standard type definitions */
#define BYTE  signed char
#define UBYTE unsigned char
#define WORD  signed short
#define UWORD unsigned short
#define LONG  signed long 
#define ULONG unsigned long 
#define BOOL  bit			  /* 8051 specific definition */

#ifndef TRUE
#define TRUE  (1==1)
#endif
#ifndef FALSE
#define FALSE (0==1)
#endif


#ifdef DEBUG
/* To allow compilation with an ANSI-C compiler, the following defines */
/* "kill" all 8051-C language specific keywords when in debug mode     */

#define code
#define data
#define xdata
#define idata

#define bit   UBYTE
#define sfr   UBYTE
#define sbit  UBYTE

#define INTERRUPT(n)
#define USING(n)
#define SFR(n,val) sfr n
#define SBIT(n,val) sbit n

#else

/* the following definitions "encapsulate" the 8051-C keywords to allow */
/* equivalent ANSI-C compatible definitions as above. */

#define INTERRUPT(n) interrupt n
#define USING(n) using n
#define SFR(n,val) sfr n = val
#define SBIT(n,val) sbit n = val

#endif


#endif /* __PORTAB_H */
