Commit dfaace5
committed
[Time] Fix ticks per ms value used to compute micros
The timer interrupt or COUNTFLAG bit (in the SysTick Control
and Status register) is activated on the transition from 1 to 0,
therefore it activates every n+1 clock ticks.
So, ticks per ms is SysTick->LOAD +1.
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>1 parent 151d737 commit dfaace5
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | | - | |
| 60 | + | |
60 | 61 | | |
61 | | - | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| |||
0 commit comments