⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ppsmtype.h

📁 一个操作系统源代码 用于嵌入式设备 在Vc++环境下仿真 成功移植到多款处理器上
💻 H
字号:
#ifndef PPSMTYPE_H
#define PPSMTYPE_H

//#define __NOTSUPPORT_PPSM__ /* seperate PPSM from system */
#ifndef __NOTSUPPORT_PPSM__

typedef	unsigned char	U8;		/*  unsigned 8 bit data  			*/
typedef	unsigned short	U16;	/*  unsigned 16 bit data 			*/
typedef	unsigned int	U32;	/*  unsigned 32 bit data 			*/
typedef	char			S8;		/*  signed 8 bit data  				*/
typedef	short			S16;	/*  signed 16 bit data 				*/
typedef	int				S32;	/*  signed 32 bit data 				*/

typedef	U8 *			P_U8;	/*  unsigned 8 bit data  			*/
typedef	U16 *			P_U16;	/*  unsigned 16 bit data 			*/
typedef	U32 *			P_U32;	/*  unsigned 32 bit data 			*/
typedef	S8 *			P_S8;	/*  signed 8 bit data  				*/
typedef	S16 *			P_S16;	/*  signed 16 bit data 				*/
typedef	S32 *			P_S32;	/*  signed 32 bit data 				*/

typedef	U16				TEXT;	/* 16-bit text data 				*/
typedef	P_U16			P_TEXT;	/* 16-bit text data 				*/

#ifndef _STATUS_TYPE_
#define _STATUS_TYPE_
typedef	S16				STATUS;	/* status word is a signed short	*/
#endif

typedef	void *			P_VOID;	/* pointer to void */


#ifndef _RGB_TYPE_
#define _RGB_TYPE_
typedef U32             RGB;	/* rgb for color */
#endif


/*  point structure  */
typedef	struct
{
	U16	x;					/*  x point  */
	U16	y;					/*  y point  */
} POINT, *P_POINT;

/*  area structure  */
typedef	struct	
{
	POINT	top;			/*  Top left corner  */
	POINT	bottom;			/*  Bottom right corner  */
} AREA, *P_AREA;

/*  point structure  */
typedef	struct
{
	S16	x;					/*  x point  */
	S16	y;					/*  y point  */
} SPOINT, *P_SPOINT;


/*  area structure  */
typedef	struct	
{
	SPOINT	top;			/*  Top left corner  */
	SPOINT	bottom;			/*  Bottom right corner  */
} SAREA, *P_SAREA;


/*  message structure  */
typedef struct _MESSAGE
{
	U16     messageType;            /*  message type  */
	U16     message;                /*  message  */
	U32     misc;                   /*  short data (32bit)  */
	P_VOID  data;                   /*  associated data, if any */
	U16     size;                   /*  size of data in bytes  */
	U16     reserved;               /*  for future  (broadcast, etc) */
} PPSM_MESSAGE, *P_MESSAGE;

#ifndef max
#define max(a,b)            (((a) > (b)) ? (a) : (b))
#endif

#ifndef min
#define min(a,b)            (((a) < (b)) ? (a) : (b))
#endif

#endif /* __NOTSUPPORT_PPSM__ */

#endif	/* PPSMTYPE_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -