📄 guipolltime.c
字号:
/* $id: guiPolltime.c v1.0 2001/10/10*/
/***************************************************************************
* This source code has been made available to you by EPSON on an AS-IS
* basis. Anyone receiving this source is licensed under EPSON
* copyrights to use it in any way he or she deems fit, including
* copying it, modifying it, compiling it, and redistributing it either
* with or without modifications.
*
* Any person who transfers this source code or any derivative work
* must include the EPSON copyright notice, this paragraph, and the
* preceding two paragraphs in the transferred software.
*
* COPYRIGHT EPSON CORPORATION 2001
* LICENSED MATERIAL - PROGRAM PROPERTY OF EPSON
**************************************************************************/
/***************************************************************************
* FILE: guiPolltime.c
* MODULE: GUI
*
* PURPOSE:
*
*
* AUTHOR(S): ChenH
* GROUP: GUI Group
* DATE CREATED: 2001/09/20
* REFERENCE DOCUMENT ID:
* MODIFICATIONS:
* Date userName Description
* 2001/09/20 Chenh Create this file
**************************************************************************/
#include "sysGUI.h"
#include "ros33.h"
T_EXTERN T_GUI_UINT udwTMR_TimerCounter;
T_EXTERN T_MSG_MsgQueue tDSK_MsgQueue;
/******************************************************************
* FUNCTION: fnGUI_PollTime
*
* PURPOSE:
* poll time by calling OS API and decide whether to form the timer message
*
* PARAMETERS
* Input:
T_VOID
* Output:
* InOut:
*
* Return value:T_BOOL
* Reentrant : No
*****************************************************************/
T_BOOL fnGUI_PollTime()
{
/*SYSTIME nowtim;
T_MODULE SYSTIME beforetim={0,0};
get_tim(&nowtim);
if( (nowtim.ltime - beforetim.ltime) >= 250 )
{
udwTMR_TimerCounter += 10;
tDSK_MsgQueue.dwState |= QS_DESKTIMER;
beforetim = nowtim;
}*/
T_GUI_UINT p_flgptn;
pol_flg(&p_flgptn, GUI_EVENTID, 0x111, TWF_ORW);
if( p_flgptn & 0x100 )
{
clr_flg(GUI_EVENTID,0x011);
udwTMR_TimerCounter += 10;
tDSK_MsgQueue.dwState |= QS_DESKTIMER;
}
return TRUE;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -