testtmr.c

来自「一个操作系统源代码 用于嵌入式设备 在Vc++环境下仿真 成功移植到多款处理器上」· C语言 代码 · 共 57 行

C
57
字号
/*************************************************************************
*
*  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 + =
减小字号Ctrl + -
显示快捷键?