commit | 2ae09993cae8a8892d0f586877c8ce1e65f50387 | [log] [tgz] |
---|---|---|
author | Dawid Niedzwiecki <dawidn@google.com> | Thu Nov 23 09:35:17 2023 +0100 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Mon Nov 27 19:58:23 2023 +0100 |
tree | 86a1af3419eb6f38e5934a0684929fc2e3cbf89a | |
parent | b0b57dac72b90bbe572fdef389310d3b55786a08 [diff] |
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: Dawid Niedzwiecki <dawidn@google.com>