rtc.h
上传用户:jinguanrq
上传日期:2022-06-04
资源大小:724k
文件大小:1k
- #ifndef __RTC_H__
- #define __RTC_H__
- static int year;
- static int month,day,weekday,hour,min,sec;
- int Test_Rtc_Alarm(void);
- void Rtc_Init(void);
- void Read_Rtc(void);
- void Display_Rtc(void);
- void Test_Rtc_Tick(void);
- void EV40_rtc_Disp(void);
- void __irq Rtc_Int(void) ;
- void __irq Rtc_Tick(void) ;
- #define TESTYEAR (0x02)
- #define TESTMONTH (0x12)
- #define TESTDAY (0x31)
- #define TESTDATE (0x03) // SUN:1 MON:2 TUE:3 WED:4 THU:5 FRI:6 SAT:7
- #define TESTHOUR (0x23)
- #define TESTMIN (0x59)
- #define TESTSEC (0x59)
- #define TESTYEAR2 (0x03)
- #define TESTMONTH2 (0x01)
- #define TESTDAY2 (0x01)
- #define TESTHOUR2 (0x00)
- #define TESTMIN2 (0x00)
- #define TESTSEC2 (0x00)
- #endif //__RTC_H__