-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- RTC_SSR for the subseconds - RTC_TR for the time - RTC_DR for the date These registers were accessed through shadow registers which are synchronized with PCLK1 (APB1 clock). They are now accessed directly in order to avoid waiting for the synchronization duration.
- Loading branch information
1 parent
61f3d8b
commit 1052993
Showing
2 changed files
with
108 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@jeromecoutant This generates an unused variable warning when building with
"target.lpticker_lptim": 0
.It appears you're calling
rtc_read_lp()
because of its side effect of updatingLP_continuous_time
.I don't understand what's going on here, and don't need to, but the warning worried me and made my build output look untidy.
Is it definitely necessary to call
rtc_read_lp()
? And, if so, can we remove the unused variable or addMBED_UNUSED
? My preference would be the former, why have source code that doesn't do anything??