fyf_def.h
上传用户:sunhongbo
上传日期:2022-01-25
资源大小:3010k
文件大小:1k
- #ifndef __FYF_DEF_H_
- #define __FYF_DEF_H_
- #ifndef TYPE_BU08
- #define TYPE_BU08
- typedef unsigned char BU08;
- typedef BU08 * PU08;
- #endif
- #ifndef TYPE_BS08
- #define TYPE_BS08
- typedef signed char BS08;
- typedef BS08 * PS08;
- #endif
- #ifndef TYPE_BU16
- #define TYPE_BU16
- typedef unsigned short BU16;
- typedef BU16 * PU16;
- #endif
- #ifndef TYPE_BS16
- #define TYPE_BS16
- typedef signed short BS16;
- typedef BS16 * PS16;
- #endif
- #ifndef TYPE_BU32
- #define TYPE_BU32
- typedef unsigned long BU32;
- typedef BU32 * PU32;
- #endif
- #ifndef TYPE_BS32
- #define TYPE_BS32
- typedef signed long BS32;
- typedef BS32 * PS32;
- #endif
- #define FYF_NULL 0
- #define FYF_OK 0
- #define FYF_ERR -1
- #define FYF_THREAD_WAIT_FIFO 0
- #define FYF_THREAD_WAIT_PRIO 1
- #define FYF_NO_WAIT 0
- #define FYF_WAIT_FOREVER -1
- #define FYF_OS_QUEUE_SEM_STATUS_AVAILABLE FYF_OK
- #define FYF_OS_QUEUE_SEM_STATUS_UNAVAILABLE FYF_ERR
- typedef struct
- {
- BU32 x;
- BU32 y;
- BU32 w;
- BU32 h;
- }FYF_Rect_s;
- #define FYF_FALSE 0
- #define FYF_TRUE 1
- #ifndef LOWORD
- #define LOWORD(_val) ((BU16)(_val))
- #endif
- #ifndef HIWORD
- #define HIWORD(_val) ((BU16)((BU32)(_val)>>16))
- #endif
- #ifndef LOBYTE
- #define LOBYTE(_val) ((BU08)(_val))
- #endif
- #ifndef HIBYTE
- #define HIBYTE(_val) ((BU08)((BU16)(_val)>>8))
- #endif
- #endif