forked from apache/mynewt-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DA1469x: Clock time shifts on reboots (apache#3321)
- Add missing services to the driver API. It also makes the actual calibration of the XTAL32K clock a syscfg option, defaulting to 0. - Eliminate magic numbers - Streamline the LP clock API, by offering clean access to the LP clock selected via syscfg. - Add the function that calculates the RTC divider registers and invoke it when the LP clock frequency changes. - Fix slightly incorrect time-keeping If the LP clock's frequency is not an integer multiple of the specified OS tick frequency, the period of OS ticks will be incorrect due to an integer division truncation error (to the tune of almost 1% for RCX), resulting in OS Time gradually creeping away from the actual time. This commit fixes the issue, by maintaining the fractional OS tick value and advancing OS Time accordingly.
- Loading branch information
Showing
8 changed files
with
359 additions
and
80 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
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
Oops, something went wrong.