00001 /********************************************************* 00002 * Project: 80x86 32bit multitasking operation system 00003 * 00004 * File: com2task.c 00005 * Author: Book Chen 00006 * Date 20091215 00007 *********************************************************** 00008 */ 00009 #include "includes.h" 00010 00011 U8 RtcTaskName[]="RTCTASK"; 00012 OS_STACK RtcTaskStack[RTC_TASK_STACK_SIZE]; 00013 00014 void RtcTaskInit(void){ 00015 } 00016 00017 void RtcTask(void){ 00018 RtcTaskInit(); 00019 while(1){ 00020 while((RtcCtrl.HasUpdate==false)&&(RtcCtrl.HasPeriodic==false)) 00021 OsEventWait(&RtcCtrl.RtcEvent,0xffff); 00022 GuiStringPrint("\nRTC TASK EXECUTE"); 00023 RtcSvc(); 00024 } 00025 }
1.5.9