PA_Timer_Sim.h.svn-base
资源名称:lread.rar [点击查看]
上传用户:holyzs
上传日期:2022-06-29
资源大小:2335k
文件大小:1k
源码类别:
编辑器/阅读器
开发平台:
C/C++
- #ifndef __PA_TIMER_SIM_H__
- #define __PA_TIMER_SIM_H__ 1
- /*
- * this is a millisecond timer
- */
- #define TIME_MGR_CAPACITY 16
- struct tTimer
- {
- unsigned int nPauseTick;
- unsigned int nRefTick;
- unsigned char bRunning;
- };
- struct tTimeMgr
- {
- /* timer 0 as master timer */
- struct tTimer rBank[TIME_MGR_CAPACITY];
- unsigned char nCount;
- };
- extern void StartTime(unsigned char bNew);
- extern void PauseTime();
- extern unsigned char NewTimer(unsigned char bStarted);
- extern void StartTimer(unsigned char nTimerId);
- extern unsigned int Tick(unsigned char nTimerId);
- extern void PauseTimer(unsigned char nTimerId);
- extern void UnpauseTimer(unsigned char nTimerId);
- extern void ResetTimer(unsigned char);
- extern void sim_timer_start(void);
- #endif // __PA_TIMER_SIM_H__