Skip to content
Commit 23631833 authored by Grant Ramsay's avatar Grant Ramsay Committed by Fabio Baltieri
Browse files

drivers: systick: Fix Cortex-M SysTick dropping 1 cycle per tick



`last_load` is the full N cycles and `SysTick->LOAD` should
be loaded with `last_load - 1` for the calculations work
correctly.

Note: This only affects a kernel in ticked operation.
Tickless kernels periodically restart the timer correctly.

Signed-off-by: default avatarGrant Ramsay <gramsay@enphaseenergy.com>
parent 1951d837
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment