diff options
author | Dave Hylands <dhylands@gmail.com> | 2015-11-07 09:42:26 -0800 |
---|---|---|
committer | Dave Hylands <dhylands@gmail.com> | 2015-11-07 09:42:26 -0800 |
commit | 57e00ef26236264bc54ad32442df5854aa0df27b (patch) | |
tree | 0ff8c53cebcd2d218e49124a9c5cc2df3be7686c | |
parent | 7f3c0d1ea8fa21df3b2078c7189f2b26fe36da59 (diff) | |
download | micropython-57e00ef26236264bc54ad32442df5854aa0df27b.tar.gz micropython-57e00ef26236264bc54ad32442df5854aa0df27b.zip |
stmhal: Fix RTC code to work on the F7
-rw-r--r-- | stmhal/rtc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/rtc.c b/stmhal/rtc.c index 65e8c526ed..561548ee49 100644 --- a/stmhal/rtc.c +++ b/stmhal/rtc.c @@ -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 |