CARPLAY版本整理
This commit is contained in:
78
MXC_A27-PCB4.5-270T/lib/lib_rtos/xm_base.h
Normal file
78
MXC_A27-PCB4.5-270T/lib/lib_rtos/xm_base.h
Normal file
@ -0,0 +1,78 @@
|
||||
//****************************************************************************
|
||||
//
|
||||
// Copyright (C) 2010 ShenZhen ExceedSpace
|
||||
//
|
||||
// Author ZhuoYongHong
|
||||
//
|
||||
// File name: xm_base.h
|
||||
// constant<6E><74>macro & basic typedef definition of kernel service
|
||||
//
|
||||
// Revision history
|
||||
//
|
||||
// 2010.09.01 ZhuoYongHong Initial version
|
||||
//
|
||||
//****************************************************************************
|
||||
#ifndef _XM_BASE_H_
|
||||
#define _XM_BASE_H_
|
||||
|
||||
#include <xm_type.h>
|
||||
|
||||
#if defined (__cplusplus)
|
||||
extern "C"{
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef _XMBOOL_DEFINED_
|
||||
#define _XMBOOL_DEFINED_
|
||||
typedef unsigned char XMBOOL; // BOOL<4F><4C><EFBFBD><EFBFBD>
|
||||
#endif
|
||||
|
||||
|
||||
// typedef definition
|
||||
|
||||
// structure definition
|
||||
|
||||
|
||||
|
||||
// ϵͳʱ<CDB3><CAB1>
|
||||
typedef struct tagXMSYSTEMTIME {
|
||||
WORD wYear;
|
||||
WORD wMonth;
|
||||
WORD wDayOfWeek;
|
||||
WORD wDay;
|
||||
WORD wHour;
|
||||
WORD wMinute;
|
||||
WORD wSecond;
|
||||
WORD wMilliseconds;
|
||||
} XMSYSTEMTIME, *PXMSYSTEMTIME;
|
||||
|
||||
|
||||
// ʱ<><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD>
|
||||
// <09><><EFBFBD><EFBFBD>1<EFBFBD><31>ʾϵͳʱ<CDB3><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
// <09><><EFBFBD><EFBFBD>0<EFBFBD><30>ʾϵͳʱ<CDB3><CAB1>δ<EFBFBD><CEB4><EFBFBD>ã<EFBFBD>ϵͳ<CFB5><CDB3><EFBFBD><EFBFBD>ȱʡ<C8B1><CAA1><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1>
|
||||
int XM_GetLocalTime (XMSYSTEMTIME* pSystemTime);
|
||||
// <09><><EFBFBD><EFBFBD>1<EFBFBD><31><EFBFBD><EFBFBD>ϵͳʱ<CDB3><CAB1><EFBFBD>ɹ<EFBFBD>
|
||||
// <20><><EFBFBD><EFBFBD>0<EFBFBD><30><EFBFBD><EFBFBD>ϵͳʱ<CDB3><CAB1>ʧ<EFBFBD><CAA7>
|
||||
int XM_SetLocalTime (const XMSYSTEMTIME *pSystemTime);
|
||||
|
||||
// <20><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ĵδ<C4B5><CEB4><EFBFBD><EFBFBD><EFBFBD> <20><>1msΪһ<CEAA>δ<EFBFBD><CEB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><CEBB>
|
||||
DWORD XM_GetTickCount (void);
|
||||
|
||||
// <20><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>߾<EFBFBD><DFBE>ȵĵδ<C4B5><CEB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><CEA2>Ϊ<EFBFBD><CEAA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ
|
||||
XMINT64 XM_GetHighResolutionTickCount (void);
|
||||
|
||||
|
||||
void XM_Sleep (DWORD dwMilliseconds); // <20><>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD>뵥λ
|
||||
|
||||
|
||||
|
||||
void XM_Delay (unsigned int ms);
|
||||
|
||||
void XM_lock (void);
|
||||
void XM_unlock (void);
|
||||
|
||||
#if defined (__cplusplus)
|
||||
}
|
||||
#endif /* end of __cplusplus */
|
||||
|
||||
#endif // _XM_BASE_H_
|
Reference in New Issue
Block a user