/******************************************************************************** * File Name: RTC.h * Function Describe: Header file for RTC.c * Explain: * Writer: ShiLiangWen * Date: 2019-2-17 *******************************************************************************/ #ifndef __RTC_H #define __RTC_H //------------------------------------------------------------------------------- typedef struct SUT_RTC { int Years; char Months; char Days; char Hours; char Minute; char Seconds; }SUT_RTC; extern SUT_RTC sutRTC; int MonthDays(int year, int month); void RTCIncSecond(void); void RTC_Process(void); void RTC_Set(unsigned char *BCD); void RTC_Get(unsigned char *BCD); int RTC_Effective(void); //------------------------------------------------------------------------------- #endif