stmhal: Fix RTC code to work on the F7

This commit is contained in:
Dave Hylands 2015-11-07 09:42:26 -08:00
parent 7f3c0d1ea8
commit 57e00ef262
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ void rtc_init(void) {
if (rtc_use_lse) {
// fall back to LSI...
rtc_use_lse = false;
PWR->CR |= PWR_CR_DBP;
HAL_PWR_EnableBkUpAccess();
RTCHandle.State = HAL_RTC_STATE_RESET;
if (HAL_RTC_Init(&RTCHandle) != HAL_OK) {
rtc_info = 0x0100ffff; // indicate error