zephyr/soc/silabs/silabs_s2
Aksel Skauge Mellbye 7dc6fb442f drivers: timer: silabs: Fix calculation of next tick
In the case where more than a full tick was unannounced when
sys_clock_set_timeout() was called, the timer driver would
subtract it from the next timeout. However, this is already
done by the caller through the elapsed() function in timeout.c,
leading to the timer interrupt firing too early.

With this fix, SYS_CLOCK_TICKS_PER_SEC can be increased to the
full speed of the low frequency timer. The underlying sleeptimer
API must be called with a timeout of at least 1, and will if needed
increase the value to the minimum value required by the hardware.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-03-18 16:42:42 +01:00
..
efr32bg22 soc: silabs: Distinguish Gecko SDK from SiSDK HAL 2025-02-04 09:19:53 +01:00
efr32bg27 soc: silabs: Distinguish Gecko SDK from SiSDK HAL 2025-02-04 09:19:53 +01:00
efr32mg21 soc: silabs: Distinguish Gecko SDK from SiSDK HAL 2025-02-04 09:19:53 +01:00
efr32mg24 soc: silabs: Distinguish Gecko SDK from SiSDK HAL 2025-02-04 09:19:53 +01:00
efr32zg23 soc: silabs: Distinguish Gecko SDK from SiSDK HAL 2025-02-04 09:19:53 +01:00
xg29 soc: silabs: Distinguish Gecko SDK from SiSDK HAL 2025-02-04 09:19:53 +01:00
CMakeLists.txt soc: silabs: Separate Series 2 soc.c 2024-10-22 20:41:23 +02:00
Kconfig soc: silabs: Add soc_prep_hook() for Series 2 2024-10-24 14:07:25 +02:00
Kconfig.defconfig drivers: timer: silabs: Fix calculation of next tick 2025-03-18 16:42:42 +01:00
Kconfig.soc
soc.c soc: silabs: Only initialize HFXO Manager if HFXO is enabled 2024-10-25 14:09:36 +02:00
soc.h soc: silabs: Make soc.h generic for Series 2 2025-01-20 16:34:50 +01:00