Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
François Revol
firmware
Commits
8d689f8e
Commit
8d689f8e
authored
Aug 16, 2019
by
schneider
Browse files
fix(rtc): subseconds is in 1/4096
parent
2bbf082b
Changes
1
Hide whitespace changes
Inline
Side-by-side
epicardium/modules/rtc.c
View file @
8d689f8e
...
...
@@ -31,7 +31,7 @@ void epic_rtc_set_milliseconds(uint64_t milliseconds)
sec
=
milliseconds
/
1000
;
subsec
=
(
milliseconds
%
1000
);
subsec
*=
25
6
;
subsec
*=
409
6
;
subsec
/=
1000
;
while
(
RTC_Init
(
MXC_RTC
,
sec
,
subsec
,
NULL
)
==
E_BUSY
)
...
...
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