blob: 13a27100505f1b2244792f528739dddf51aa7e7e [file] [log] [blame]
yuezonghe824eb0c2024-06-27 02:32:26 -07001/************************************************************************
2* °æÈ¨ËùÓÐ (C)2001,ÖÐÐËͨѶ¹É·ÝÓÐÏÞ¹«Ë¾¡£
3*
4* ÎļþÃû³Æ£º base_api.h
5* Îļþ±êʶ£º
6* ÄÚÈÝÕªÒª£º
7*
8* ÐÞ¸ÄÈÕÆÚ °æ±¾ºÅ Ð޸ıê¼Ç ÐÞ¸ÄÈË ÐÞ¸ÄÄÚÈÝ
9* ---------------------------------------------------------------------
10* 2007/11/24 V0.5 ¹¨Òí create
11************************************************************************/
12
13#ifndef BASE_PUB_H_
14#define BASE_PUB_H_
15/**************************************************************************
16 * Í·Îļþ°üº¬ *
17 **************************************************************************/
18#include "oss_api.h"
19
20/**************************************************************************
21 * ºê¶¨Òå *
22 **************************************************************************/
23#define NU_SUCCESS ZOSS_SUCCESS
24#define NU_NULL NULL
25
26#define NU_TASK ZOSS_THREAD_ID
27#ifdef _OS_WIN
28#define PROCESS ZOSS_THREAD_ID
29#endif
30
31#define NU_PREEMPT 1
32#define NU_START 1
33#define NU_FIFO 6
34
35/**************************************************************************
36 * Êý¾ÝÀàÐÍ *
37 **************************************************************************/
38typedef LONG SDL_Duration;
39typedef SDL_Duration SDL_duration;
40typedef SDL_Duration SDL_Time;
41typedef SDL_Time SDL_time;
42typedef unsigned long UNSIGNED;
43typedef long SIGNED;
44typedef SINT32 DATA_ELEMENT;
45typedef DATA_ELEMENT OPTION;
46typedef UINT32 STATUS;
47typedef UINT8 UNSIGNED_CHAR;
48typedef unsigned long * UNSIGNED_PTR;
49typedef UINT8 * BYTE_PTR;
50//typedef UINT16 word;
51typedef UINT8 SDL_Boolean;
52typedef UINT8 SDL_boolean;
53typedef SINT16 INT16;
54
55#ifndef _OS_WIN
56typedef long int INT32;
57typedef SINT32 INT;
58//typedef UINT8 byte;
59#endif
60
61typedef UINT32 TID;
62typedef UINT8 xInputAction;
63typedef long SdlTimeSpec;
64typedef unsigned long t_timer_param;
65//typedef unsigned char ubyte;
66//typedef unsigned short ushort;
67
68
69#endif