Skip to content
Commit 54935825 authored by Roman Dobrodii's avatar Roman Dobrodii Committed by Anas Nashif
Browse files

drivers/timer/gecko_burtc: allow queries prior to timer initialization



Before BURTC is initialized, clock to its APB CSR file is stopped, so
any attempt to read BURTC regs results in BusFault. However,
many parts of Zephyr may call sys_clock getters even before sys_clock
driver itself is initialized. This change adds support for that:
sys_clock_elapsed() and sys_clock_cycle_get_32() simply return 0
if BURTC is not init yet.

Signed-off-by: default avatarRoman Dobrodii <rdobrodii@antmicro.com>
parent 71e86891
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment