📄 testtmr.c
字号:
/*************************************************************************
*
* Copyright (C) Asic Center. 2001
* All Rights Reserved
*
* Filename : testTmr.c
* Function :
* Revision :
* 2001/10/26 Pessia Create this file
*
************************************************************************/
#include <stdio.h>
#include <string.h>
#include <kernel\ros33\Ros33.h> //Normally, we do not appreciate including this kernel file.
#include <ppsm.h>
extern unsigned char Read_MilliSecond( void );
extern unsigned char Read_Second( void );
extern unsigned char Read_Minute( void );
extern unsigned char Read_Hour( void );
extern unsigned short Read_Day( void );
void testtmr( void )
{
MSG msg;
U32 mainwin;
U32 bt1, bt2;
U32 hGC;
U8 quit = 0;
mainwin = CreateWindow( WNDCLASS_WIN,
"时钟测试",
WS_OVERLAPPEDWINDOW,
0,0,
PHY_LCD_W,PHY_LCD_H,
0,
0,
NULL);
while( !quit )
{
ASIXGetMessage( &msg, NULL, 0, 0 );
switch( msg.message )
{
case WM_QUIT:
quit = 1;
break;
}
DefWindowProc(msg.message, msg.lparam, msg.data, msg.wparam);
}
DestroyWindow( mainwin );
EndofTask();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -