userRtc.h 365 B

12345678910111213141516171819
  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. void Delay_us(unsigned short us);
  16. #endif