Skip to content
Commit 259b3001 authored by Giancarlo Stasi's avatar Giancarlo Stasi Committed by Carles Cufí
Browse files

drivers: timer: stm32 lptim minor fix and optimization



Avoid reading LPTIM counter four times instead of three when second
read doesn't give same value. Use common code, avoid volatile for
local vars.

Signed-off-by: default avatarGiancarlo Stasi <giancarlo.stasi.co@gmail.com>
parent f221dfec
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment