RTC.h 828 B

1234567891011121314151617181920212223242526272829
  1. /********************************************************************************
  2. * File Name: RTC.h
  3. * Function Describe: Header file for RTC.c
  4. * Explain:
  5. * Writer: ShiLiangWen
  6. * Date: 2019-2-17
  7. *******************************************************************************/
  8. #ifndef __RTC_H
  9. #define __RTC_H
  10. //-------------------------------------------------------------------------------
  11. typedef struct SUT_RTC
  12. {
  13. int Years;
  14. char Months;
  15. char Days;
  16. char Hours;
  17. char Minute;
  18. char Seconds;
  19. }SUT_RTC;
  20. extern SUT_RTC sutRTC;
  21. int MonthDays(int year, int month);
  22. void RTCIncSecond(void);
  23. void RTC_Process(void);
  24. void RTC_Set(unsigned char *BCD);
  25. void RTC_Get(unsigned char *BCD);
  26. int RTC_Effective(void);
  27. //-------------------------------------------------------------------------------
  28. #endif