commit | 733bddb32e715627ddd601836ad224e943956dcb | [log] [tgz] |
---|---|---|
author | Dawid Niedzwiecki <dawidn@google.com> | Thu Nov 23 10:37:46 2023 +0100 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Mon Nov 27 19:58:23 2023 +0100 |
tree | 4679d0267c991097da991ba48c4080eb4055e5cc | |
parent | 4104f54987727532d8cd0cc8f2784fbd0fcd2820 [diff] |
timer: cortex_m_systick: idle timer: handle no sleep case SysTick usually has higher measurement resolution than the IDLE timer. When the time in low power mode is very short or 0, it is possible that SysTick usually has measures more time since the sys_clock_set_timeout than the idle timer. Handle that case to keep uptime correct. Signed-off-by: Dawid Niedzwiecki <dawidn@google.com>