yuezonghe | 824eb0c | 2024-06-27 02:32:26 -0700 | [diff] [blame] | 1 | /************************************************************************
|
| 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 | **************************************************************************/
|
| 38 | typedef LONG SDL_Duration;
|
| 39 | typedef SDL_Duration SDL_duration;
|
| 40 | typedef SDL_Duration SDL_Time;
|
| 41 | typedef SDL_Time SDL_time;
|
| 42 | typedef unsigned long UNSIGNED;
|
| 43 | typedef long SIGNED;
|
| 44 | typedef SINT32 DATA_ELEMENT;
|
| 45 | typedef DATA_ELEMENT OPTION;
|
| 46 | typedef UINT32 STATUS;
|
| 47 | typedef UINT8 UNSIGNED_CHAR;
|
| 48 | typedef unsigned long * UNSIGNED_PTR;
|
| 49 | typedef UINT8 * BYTE_PTR;
|
| 50 | //typedef UINT16 word;
|
| 51 | typedef UINT8 SDL_Boolean;
|
| 52 | typedef UINT8 SDL_boolean;
|
| 53 | typedef SINT16 INT16;
|
| 54 |
|
| 55 | #ifndef _OS_WIN
|
| 56 | typedef long int INT32;
|
| 57 | typedef SINT32 INT;
|
| 58 | //typedef UINT8 byte;
|
| 59 | #endif
|
| 60 |
|
| 61 | typedef UINT32 TID;
|
| 62 | typedef UINT8 xInputAction;
|
| 63 | typedef long SdlTimeSpec;
|
| 64 | typedef unsigned long t_timer_param;
|
| 65 | //typedef unsigned char ubyte;
|
| 66 | //typedef unsigned short ushort;
|
| 67 |
|
| 68 |
|
| 69 | #endif
|