Skip to content
Commit 704ca8f1 authored by Julien D'Ascenzio's avatar Julien D'Ascenzio Committed by Fabio Baltieri
Browse files

drivers: timer: stm32_lptim: fix sys_clock_* return value



This commit finish to fix the bug describe by 85e2a0679a68f02f7ef.
With the previous correction, the uptime read could be in the past:
if the counter rewinds just after testing ARRM flag, we had lost
some counts.

Signed-off-by: default avatarJulien D'Ascenzio <julien.dascenzio@paratronic.fr>
parent 25279df6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment