Skip to content
Commit 2ae09993 authored by Dawid Niedzwiecki's avatar Dawid Niedzwiecki Committed by Carles Cufí
Browse files

timer: cortex_m_systick: handle cycle count overflow with idle timer



When the idle timer is in use, we calculate number of cycles passed
since the sys_clock_set_timeout call.

The cycle counter can overflow easily, when the counter is 32-bit wide.
Handle that case.

Signed-off-by: default avatarDawid Niedzwiecki <dawidn@google.com>
parent b0b57dac
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment