#ifndef __TYPE_DEF_H_
#define __TYPE_DEF_H_

#define TRUE    1
#define FALSE   0

#define OK       1
#define FAIL     0

typedef unsigned char   BYTE;
typedef unsigned char   uchar;
typedef unsigned int    uint;
typedef unsigned long   ulong;

typedef unsigned short  WORD;
typedef unsigned long   DWORD;

typedef bit            	BOOL;
typedef bit            	bool;

typedef	signed char		s8;
typedef	signed int		s16;
typedef	signed long		s32;

typedef	signed char	idata	si8;
typedef	signed int	idata	si16;
typedef	signed long	idata	si32;

typedef	signed char	xdata	sx8;
typedef	signed int	xdata	sx16;
typedef	signed long	xdata	sx32;

typedef	code signed char		sc8; /*!< Read Only */
typedef	code signed int			sc16;/*!< Read Only */
typedef	code signed long		sc32;/*!< Read Only */

typedef	unsigned char	 u8;
typedef	unsigned int   u16;
typedef	unsigned long	 u32;


typedef	unsigned char	 idata ui8;
typedef	unsigned int   idata ui16;
typedef	unsigned long	 idata ui32;

typedef	unsigned char	 xdata ux8;
typedef	unsigned int   xdata ux16;
typedef	unsigned long	 xdata ux32;

typedef	code unsigned char		uc8; /*!< Read Only */
typedef	code unsigned int			uc16;/*!< Read Only */
typedef	code unsigned long		uc32;/*!< Read Only */

#endif
