RTC.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /********************************** (C) COPYRIGHT *******************************
  2. * File Name : RTC.h
  3. * Author : WCH
  4. * Version : V1.0
  5. * Date : 2016/04/12
  6. * Description :
  7. *********************************************************************************
  8. * Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd.
  9. * Attention: This software (modified or not) and binary are used for
  10. * microcontroller manufactured by Nanjing Qinheng Microelectronics.
  11. *******************************************************************************/
  12. /******************************************************************************/
  13. #ifndef __RTC_H
  14. #define __RTC_H
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. extern volatile uint32_t RTCTigFlag;
  19. /**
  20. * @brief Initialize time Service.
  21. */
  22. void HAL_TimeInit(void);
  23. /**
  24. * @brief Configure RTC trigger time
  25. *
  26. * @param time - Trigger time.
  27. */
  28. extern void RTC_SetTignTime(uint32_t time);
  29. #ifdef __cplusplus
  30. }
  31. #endif
  32. #endif