| 1234567891011121314151617181920212223 |
- #ifndef __RTCSETUP_H__
- #define __RTCSETUP_H__
- /*--------------------------------------------------------------------------------------
- * @file RTCSetup.h
- * @author ZhangJing
- * @version base on stm32f0x
- * @date 2015.09.11
- * @brief RTCÇý¶¯
- ---------------------------------------------------------------------------------------*/
- #include "stdint.h"
- #define WORK_TIMES 2 //ÔËÐÐʱ¼ä
- void RTCInit(void);
- uint8_t RTC_Set(uint16_t syear,uint8_t smon,uint8_t sday,uint8_t hour,uint8_t min,uint8_t sec);
- uint8_t RTC_Get(void);
- uint8_t RTC_Get_Week(uint16_t year,uint8_t month,uint8_t day);
- void SystemTimeUpdate( void );
- void RTC_Alarm_Configuration(void);
- void StopMode_Configuration(void);
- void StopMode_EnterStopMode(uint32_t s);
- #endif
|