MG32L003 Standard Peripherals Firmware Library

rtc.h
1 #ifndef __RTC_H
2 #define __RTC_H
3
4 #include "mg32l003.h"
5
6 ErrorStatus RTC_Set_Date(uint8_t year, uint8_t month, uint8_t date, uint8_t week, uint8_t cen);
7 ErrorStatus RTC_Set_Time(uint8_t hour, uint8_t min, uint8_t sec, uint8_t ampm); //
8 void RTC_Set_Alarm1(void);
9 uint8_t My_RTC_Init(void);
10 void RTC_Set_Alarm2(void);
11
12 #endif