mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-22 17:12:55 +08:00
41 lines
874 B
C
41 lines
874 B
C
|
/********************************** (C) COPYRIGHT *******************************
|
|||
|
* File Name : RTC.h
|
|||
|
* Author : WCH
|
|||
|
* Version : V1.0
|
|||
|
* Date : 2016/04/12
|
|||
|
* Description :
|
|||
|
* Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd.
|
|||
|
* SPDX-License-Identifier: Apache-2.0
|
|||
|
*******************************************************************************/
|
|||
|
|
|||
|
/******************************************************************************/
|
|||
|
#ifndef __RTC_H
|
|||
|
#define __RTC_H
|
|||
|
|
|||
|
#ifdef __cplusplus
|
|||
|
extern "C" {
|
|||
|
#endif
|
|||
|
|
|||
|
|
|||
|
#define RTC_TIMER_MAX_VALUE 0xa8c00000
|
|||
|
|
|||
|
extern volatile uint32_t RTCTigFlag;
|
|||
|
|
|||
|
/**
|
|||
|
* @brief Initialize time Service.
|
|||
|
*/
|
|||
|
void HAL_TimeInit(void);
|
|||
|
|
|||
|
/**
|
|||
|
* @brief <EFBFBD><EFBFBD><EFBFBD><EFBFBD>RTC<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD>
|
|||
|
*
|
|||
|
* @param time - <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD>.
|
|||
|
*/
|
|||
|
extern void RTC_SetTignTime(uint32_t time);
|
|||
|
|
|||
|
#ifdef __cplusplus
|
|||
|
}
|
|||
|
#endif
|
|||
|
|
|||
|
#endif
|