RTCSetup.h 757 B

1234567891011121314151617181920212223
  1. #ifndef __RTCSETUP_H__
  2. #define __RTCSETUP_H__
  3. /*--------------------------------------------------------------------------------------
  4. * @file RTCSetup.h
  5. * @author ZhangJing
  6. * @version base on stm32f0x
  7. * @date 2015.09.11
  8. * @brief RTCÇý¶¯
  9. ---------------------------------------------------------------------------------------*/
  10. #include "stdint.h"
  11. #define WORK_TIMES 2 //ÔËÐÐʱ¼ä
  12. void RTCInit(void);
  13. uint8_t RTC_Set(uint16_t syear,uint8_t smon,uint8_t sday,uint8_t hour,uint8_t min,uint8_t sec);
  14. uint8_t RTC_Get(void);
  15. uint8_t RTC_Get_Week(uint16_t year,uint8_t month,uint8_t day);
  16. void SystemTimeUpdate( void );
  17. void RTC_Alarm_Configuration(void);
  18. void StopMode_Configuration(void);
  19. void StopMode_EnterStopMode(uint32_t s);
  20. #endif