/** ****************************************************************************** * @file rtc.h * @brief This file contains all the function prototypes for * the rtc.c file ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * 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****/