www.pudn.com > uCOSII_no.rar > RTC.H, change:2005-05-14,size:797b


#ifndef __RTC_H_ 
#define __RTC_H_ 
 
#include "os_cpu.h" 
      
//定义本工程的编译时间           
#define Build_Year    0x03 
#define Build_Month   0x12 
#define Build_Day     0x26 
#define Build_Hour    0x22 
#define Build_Minute  0x16 
#define Build_Second  0x30 
 
//定义RTC的有效时间 
#define Valid_Year    0x00 
#define Valid_Month   0x01 
#define Valid_Day     0x01 
#define Valid_Hour    0x08 
#define Valid_Minute  0x59 
#define Valid_Second  0x59 
 
//all data is in BCD 
typedef struct SYS_TIME 
{ 
	INT8U 	ucYear ; 
	INT8U	ucMonth ; 
	INT8U	ucDay ; 
	INT8U	ucHour ; 
	INT8U 	ucMinute ; 
	INT8U 	ucSecond ; 
}STRU_SYS_TIME, *PSTRU_SYS_TIME ; 
 
STRU_SYS_TIME Get_Time(void); 
void Set_Time(STRU_SYS_TIME Set_SysTime); 
void Init_Time(void); 
void  rtc_tick_init( char tick ); 
 
#endif