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:
Giancarlo Stasi <giancarlo.stasi.co@gmail.com>
Loading
Please sign in to comment