Mercurial > public > ostc4
comparison Small_CPU/Src/rtc.c @ 1000:c386ae6635e4 GasConsumption
Improve GNSS operation:
during OSTC 4/5 code merge a problem with the wakeup of the gnss module showed up which has been fixed with the new verion. In addition a compile switch has been added which activated the synchronization of time between OSTC and gnss module. This my cause problems if the time is not accurate => deactivated at the moment.
| author | Ideenmodellierer |
|---|---|
| date | Mon, 28 Apr 2025 19:51:36 +0200 |
| parents | 9b29995d6619 |
| children |
comparison
equal
deleted
inserted
replaced
| 999:ac25c35a3c97 | 1000:c386ae6635e4 |
|---|---|
| 31 | 31 |
| 32 | 32 |
| 33 void RTC_GetTime(RTC_TimeTypeDef* pstimestructure) | 33 void RTC_GetTime(RTC_TimeTypeDef* pstimestructure) |
| 34 { | 34 { |
| 35 HAL_RTC_GetTime(&RTCHandle, pstimestructure, RTC_FORMAT_BIN); | 35 HAL_RTC_GetTime(&RTCHandle, pstimestructure, RTC_FORMAT_BIN); |
| 36 } | |
| 37 | |
| 38 void RTC_GetDate(RTC_DateTypeDef* psdatestructure) | |
| 39 { | |
| 40 HAL_RTC_GetDate(&RTCHandle, psdatestructure, RTC_FORMAT_BIN); | |
| 36 } | 41 } |
| 37 | 42 |
| 38 void RTC_SetTime(RTC_TimeTypeDef stimestructure) | 43 void RTC_SetTime(RTC_TimeTypeDef stimestructure) |
| 39 { | 44 { |
| 40 | 45 |
