2015-07-10 06:01:56 -07:00
|
|
|
/**
|
|
|
|
* @file rtc_helper.h
|
|
|
|
* @brief Real Time Clock helper
|
|
|
|
*
|
|
|
|
* @date Feb 5, 2014
|
2020-01-13 18:57:43 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2020
|
2022-11-23 12:53:16 -08:00
|
|
|
* @author Nathan Schulte, (c) 2022
|
2015-07-10 06:01:56 -07:00
|
|
|
*/
|
|
|
|
|
2020-02-18 05:16:19 -08:00
|
|
|
#pragma once
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2022-11-23 12:53:16 -08:00
|
|
|
#include "rusefi_types.h"
|
|
|
|
|
|
|
|
#if EFI_RTC
|
2022-09-20 02:28:42 -07:00
|
|
|
void initRtc();
|
2022-11-23 12:53:16 -08:00
|
|
|
void printRtcDateTime();
|
|
|
|
efidatetime_t getRtcDateTime();
|
|
|
|
void setRtcDateTime(const efidatetime_t * const dateTime);
|
|
|
|
|
|
|
|
efidatetime_t convertRtcDateTimeToEfi(const RTCDateTime * const timespec);
|
|
|
|
RTCDateTime convertRtcDateTimeFromEfi(const efidatetime_t * const dateTime);
|
|
|
|
#endif // EFI_RTC
|
|
|
|
|
2015-07-10 06:01:56 -07:00
|
|
|
void dateToString(char *buffer);
|
2016-08-08 21:03:08 -07:00
|
|
|
bool dateToStringShort(char *lcd_str);
|