stmhal: Fix RTC code to work on the F7
This commit is contained in:
parent
7f3c0d1ea8
commit
57e00ef262
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue