Synchronization of the RTC peripheral with the GPS UTC time.
More...
#include "rtc_sync.h"
#include "common/phal_F4/rtc/rtc.h"
#include "main.h"
#include "can_library/generated/VCAN.h"
Synchronization of the RTC peripheral with the GPS UTC time.
- Author
- Irving Wang (irvin.nosp@m.gw@p.nosp@m.urdue.nosp@m..edu)
-
Shriya Balu (balu@.nosp@m.purd.nosp@m.ue.ed.nosp@m.u)
◆ PAYLOAD_OFFSET
| #define PAYLOAD_OFFSET (sizeof(uint32_t) + sizeof(bool (*)(void))) |
◆ RTC_from_gps()
◆ RTC_sync()
◆ RTC_sync_init()
| void RTC_sync_init |
( |
void | | ) |
|
◆ RTOS_DEFINE_QUEUE()
◆ fallback_timestamp
Initial value:={
.date = {
.day_bcd = 0x00,
.year_bcd = 0x00
},
.time = {
.hours_bcd = 0x00,
.minutes_bcd = 0x00,
.seconds_bcd = 0x00,
},
}
@ RTC_FORMAT_24_HOUR
Definition rtc.h:69
@ RTC_MONTH_UNKNOWN
Definition rtc.h:42
@ RTC_WEEKDAY_UNKNOWN
Definition rtc.h:58
◆ is_RTC_sync_complete
| volatile bool is_RTC_sync_complete = false |
◆ last_RTC_sync_time
| volatile uint32_t last_RTC_sync_time = 0 |