comparison Small_CPU/Src/rtc.c @ 981:c6c781a2e85b default

Merge into default
author heinrichsweikamp
date Tue, 11 Feb 2025 18:12:00 +0100
parents 9b29995d6619
children c386ae6635e4
comparison
equal deleted inserted replaced
871:f7318457df4d 981:c6c781a2e85b
26 26
27 RTC_HandleTypeDef RTCHandle; 27 RTC_HandleTypeDef RTCHandle;
28 28
29 static void RTC_Error_Handler(void); 29 static void RTC_Error_Handler(void);
30 30
31
32
33 void RTC_GetTime(RTC_TimeTypeDef* pstimestructure)
34 {
35 HAL_RTC_GetTime(&RTCHandle, pstimestructure, RTC_FORMAT_BIN);
36 }
31 37
32 void RTC_SetTime(RTC_TimeTypeDef stimestructure) 38 void RTC_SetTime(RTC_TimeTypeDef stimestructure)
33 { 39 {
34 40
35 stimestructure.SubSeconds = 0; 41 stimestructure.SubSeconds = 0;