userRtc.h 331 B

123456789101112131415161718
  1. #ifndef __USER_RTC_H_
  2. #define __USER_RTC_H_
  3. typedef struct{
  4. unsigned short year;
  5. unsigned char month;
  6. unsigned char day;
  7. unsigned char hour;
  8. unsigned char min;
  9. unsigned char second;
  10. }USER_RTC_DEF;
  11. void RTC_Init(void);
  12. void RTC_Update(void);
  13. void RTC_UserSetTime(USER_RTC_DEF);
  14. void RTC_UserGetTime(USER_RTC_DEF *);
  15. #endif