| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- /**
- ******************************************************************************
- * @file rtc.h
- * @brief This file contains all the function prototypes for
- * the rtc.c file
- ******************************************************************************
- * @attention
- *
- * <h2><center>© Copyright (c) 2021 STMicroelectronics.
- * All rights reserved.</center></h2>
- *
- * This software component is licensed by ST under BSD 3-Clause license,
- * the "License"; You may not use this file except in compliance with the
- * License. You may obtain a copy of the License at:
- * opensource.org/licenses/BSD-3-Clause
- *
- ******************************************************************************
- */
- /* Define to prevent recursive inclusion -------------------------------------*/
- #ifndef __RTC_H__
- #define __RTC_H__
- #ifdef __cplusplus
- extern "C" {
- #endif
- /* Includes ------------------------------------------------------------------*/
- #include "main.h"
- /* USER CODE BEGIN Includes */
- struct rtc_time1 {
- int tm_sec;
- int tm_min;
- int tm_hour;
- int tm_mday;
- int tm_mon;
- int tm_year;
- int tm_wday;
- };
- void MX_RTC_Init(void);
- uint8_t RTC_SetTime(uint8_t hour, uint8_t minute, uint8_t second);
- uint32_t Get_Time_Stampe(void);
- void Prase_Time_Stampe(RTC_DateTypeDef *date, RTC_TimeTypeDef *time , uint32_t tm);
- #ifdef __cplusplus
- }
- #endif
- #endif /* __RTC_H__ */
- /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|