This commit is contained in:
rusefi 2017-08-25 18:37:59 -04:00
parent f2bd43ba71
commit dc81e38a67
4 changed files with 10 additions and 5 deletions

@ -1 +1 @@
Subproject commit d8d4ff6c28c9b47dc81138ddfd34f707c39c85c2
Subproject commit 2d64b37df4fc3dde421d049250e202564f368ba7

View File

@ -68,7 +68,10 @@
#define STM32_HSI_ENABLED TRUE
#define STM32_LSI_ENABLED TRUE
#define STM32_HSE_ENABLED TRUE
#define STM32_LSE_ENABLED FALSE
// rusEfi would automatically detect if we have 32768 quarts osc - see 'rtcWorks'
#define STM32_LSE_ENABLED TRUE
#define STM32_CLOCK48_REQUIRED TRUE
#define STM32_SW STM32_SW_PLL
#define STM32_PLLSRC STM32_PLLSRC_HSE

View File

@ -16,6 +16,8 @@
static LoggingWithStorage logger("RTC");
static RTCDateTime timespec;
extern bool rtcWorks;
#endif /* EFI_RTC */
void date_set_tm(struct tm *timp) {
@ -139,8 +141,8 @@ void printDateTime(void) {
date_get_tm(&timp);
appendMsgPrefix(&logger);
appendPrintf(&logger, "Current RTC localtime is: %04u-%02u-%02u %02u:%02u:%02u", timp.tm_year + 1900, timp.tm_mon + 1, timp.tm_mday, timp.tm_hour,
timp.tm_min, timp.tm_sec);
appendPrintf(&logger, "Current RTC localtime is: %04u-%02u-%02u %02u:%02u:%02u w=%d", timp.tm_year + 1900, timp.tm_mon + 1, timp.tm_mday, timp.tm_hour,
timp.tm_min, timp.tm_sec, rtcWorks);
appendMsgPostfix(&logger);
scheduleLogging(&logger);
}

View File

@ -260,5 +260,5 @@ int getRusEfiVersion(void) {
if (initBootloader() != 0)
return 123;
#endif /* EFI_BOOTLOADER_INCLUDE_CODE */
return 20170817;
return 20170825;
}