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
16573452
Commit
16573452
authored
Oct 30, 2015
by
Dave Hylands
Committed by
Damien George
Oct 30, 2015
Browse files
stmhal: f7: Fix recent RTC change to build on F7.
parent
3833d384
Changes
1
Hide whitespace changes
Inline
Side-by-side
stmhal/rtc.c
View file @
16573452
...
...
@@ -181,7 +181,11 @@ void rtc_init(void) {
// if LTE enabled & ready --> no need to (re-)init RTC
if
((
RCC
->
BDCR
&
(
RCC_BDCR_LSEON
|
RCC_BDCR_LSERDY
))
==
(
RCC_BDCR_LSEON
|
RCC_BDCR_LSERDY
))
{
// remove Backup Domain write protection
#if defined(MCU_SERIES_F7)
PWR
->
CR1
|=
PWR_CR1_DBP
;
#else
PWR
->
CR
|=
PWR_CR_DBP
;
#endif
// Clear source Reset Flag
__HAL_RCC_CLEAR_RESET_FLAGS
();
// provide some status information
...
...
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