Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
57e00ef2
Commit
57e00ef2
authored
Nov 07, 2015
by
Dave Hylands
Browse files
stmhal: Fix RTC code to work on the F7
parent
7f3c0d1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
stmhal/rtc.c
View file @
57e00ef2
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment