RTC.h 874 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /********************************** (C) COPYRIGHT *******************************
  2. * File Name : RTC.h
  3. * Author : WCH
  4. * Version : V1.0
  5. * Date : 2016/04/12
  6. * Description :
  7. * Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd.
  8. * SPDX-License-Identifier: Apache-2.0
  9. *******************************************************************************/
  10. /******************************************************************************/
  11. #ifndef __RTC_H
  12. #define __RTC_H
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. #define RTC_TIMER_MAX_VALUE 0xa8c00000
  17. extern volatile uint32_t RTCTigFlag;
  18. /**
  19. * @brief Initialize time Service.
  20. */
  21. void HAL_TimeInit(void);
  22. /**
  23. * @brief ÅäÖÃRTC´¥·¢Ê±¼ä
  24. *
  25. * @param time - ´¥·¢Ê±¼ä.
  26. */
  27. extern void RTC_SetTignTime(uint32_t time);
  28. #ifdef __cplusplus
  29. }
  30. #endif
  31. #endif