ostype.h

来自「基于nucleus操作系统的GPRS无线数据传输终端全套源文件。包括支持ARM7」· C头文件 代码 · 共 47 行

H
47
字号
#ifndef __RTIP_TYPES__
#define __RTIP_TYPES__ 

/* ********************************************************************   */
/* this must be included here to have the definitions of KS_FAR and       */
/* KS_CONSTANT                                                            */
#include "osenv.h"

/* ********************************************************************   */
/* TYPES                                                                  */
/* ********************************************************************   */
/*
**             ** Typedefs that wont need changing          ** 
** byte            - Unsigned char
** word            - Unsigned short
** dword           - Unsigned long
** BOOLEAN         - int
*/

#ifndef TRUE
#define TRUE  1                 /* Don't change */
#endif
#ifndef FALSE
#define FALSE 0                 /* Don't change */
#endif

typedef unsigned char byte;     /* Don't change */
typedef unsigned short word;    /* Don't change */
typedef unsigned long dword;    /* Don't change */
typedef int  BOOLEAN;           /* Don't change */

/* Derived types. These are derived from the values above and
   should not be changed */
typedef byte  KS_FAR * PFBYTE;
typedef int   KS_FAR * PFINT;
typedef word  KS_FAR * PFWORD;
typedef long  KS_FAR * PFLONG;
typedef dword KS_FAR * PFDWORD;
typedef char  KS_FAR * PFCHAR;
typedef void  KS_FAR * PFVOID;
typedef KS_CONSTANT char  KS_FAR * PFCCHAR;
typedef KS_CONSTANT byte  KS_FAR * PFCBYTE;
typedef KS_CONSTANT void  KS_FAR * PFCVOID;

#endif      /* __RTIP_TYPES__ */

⌨️ 快捷键说明

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