[STM32F7 family] revert RTC change in this PR that is due to new platform. It will be done through a separate PR.

pull/1567/merge
adustm 2016-02-22 16:40:12 +01:00 committed by 0xc0170
parent 3b3f89294e
commit d53f444a6f
1 changed files with 43 additions and 42 deletions

View File

@ -77,8 +77,7 @@ void rtc_init(void)
rtc_freq = LSI_VALUE;
}
// Check if RTC is already initialized
if ((RTC->ISR & RTC_ISR_INITS) == RTC_ISR_INITS) return;
if((RTC->ISR & RTC_ISR_INITS) == RTC_ISR_INITS) { // RTC initialization and status register (RTC_ISR), cold start (with no backup domain power) RTC reset value
// Enable RTC
__HAL_RCC_RTC_ENABLE();
@ -93,6 +92,8 @@ void rtc_init(void)
if (HAL_RTC_Init(&RtcHandle) != HAL_OK) {
error("RTC error: RTC initialization failed.");
}
}
}
void rtc_free(void)