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> |
||
---|---|---|
.. | ||
efr32bg22 | ||
efr32bg27 | ||
efr32mg21 | ||
efr32mg24 | ||
efr32zg23 | ||
xg29 | ||
CMakeLists.txt | ||
Kconfig | ||
Kconfig.defconfig | ||
Kconfig.soc | ||
soc.c | ||
soc.h |