📄 drvtimer.h
字号:
////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2006-2007 MStar Semiconductor, Inc.
// All rights reserved.
//
// Unless otherwise stipulated in writing, any and all information contained
// herein regardless in any format shall remain the sole proprietary of
// MStar Semiconductor Inc. and be kept in strict confidence
// (¨MStar Confidential Information〃) by the recipient.
// Any unauthorized act including without limitation unauthorized disclosure,
// copying, use, reproduction, sale, distribution, modification, disassembling,
// reverse engineering and compiling of the contents of MStar Confidential
// Information is unlawful and strictly prohibited. MStar hereby reserves the
// rights to any and all damages, losses, costs and expenses resulting therefrom.
//
////////////////////////////////////////////////////////////////////////////////
#ifndef _TIMER_H_
#define _TIMER_H_
#include "DataType.h"
#include "sysinfo.h"
extern void MDrv_Timer_Init0();
extern void MDrv_XC51_Timer2_Init(void);
extern U32 MDrv_Timer_GetTime0(void);
extern U32 MDrv_Timer_GetDownTimer0(void);
extern void MDrv_Timer_SetDownTimer0(U32 u32Timer);
extern U32 MDrv_Timer_GetDownTimer1(void);
extern void MDrv_Timer_SetDownTimer1(U32 u32Timer);
extern U32 MDrv_Timer_GetSystemTime0();
extern U32 MDrv_Timer_GetWakeupTime();
extern void MDrv_Timer_SetSystemTime0(U32 u32SystemTime);
extern void MDrv_Timer_SetWakeupTime(U32 u32Time);
extern U32 MDrv_Timer_TimeDifference(U32 u32Timer, U32 u32TaskTimer);
extern U32 MDrv_Timer_TimeDifferenceFromCurrent(U32 u32TaskTimer);
extern void MDrv_Timer_Delayms(U32 u32milisec);
#endif // _TIMER_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -