zephyr/drivers/timer
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
..
altera_avalon_timer_hal.c
ambiq_stimer.c drivers: timer: separate ambiq stimer comparator interrupts 2024-12-20 08:33:22 +01:00
apic_timer.c
apic_tsc.c
arcv2_timer0.c
arm_arch_timer.c
cc13xx_cc26xx_rtc_timer.c
cc23x0_systim_timer.c drivers: timer: Add support for cc23x0 systim 2025-02-04 11:56:05 +01:00
CMakeLists.txt drivers timer: Rename native_posix_timer native_sim_timer 2025-03-11 18:54:49 +01:00
cortex_m_systick.c drivers: timer: cortex_m_systick: support SysTick reset in low-power mode 2025-03-07 19:46:34 +01:00
cortex_m_systick.h drivers: timer: cortex_m_systick: add hook-based LPM timer support 2025-03-07 19:46:34 +01:00
esp32_sys_timer.c
export.c drivers: timer: Export sys_clock_cycle_get_64() implementations 2024-12-06 12:14:19 +01:00
gecko_burtc_timer.c
hpet.c
intel_adsp_timer.c
ite_it8xxx2_timer.c drivers/timer/it8xxx2: fix busy wait timer race condition 2024-12-25 08:40:53 +01:00
Kconfig drivers timer: Rename native_posix_timer native_sim_timer 2025-03-11 18:54:49 +01:00
Kconfig.altera_avalon
Kconfig.ambiq
Kconfig.arcv2
Kconfig.arm_arch
Kconfig.cavs
Kconfig.cc13xx_cc26xx_rtc
Kconfig.cc23x0_systim drivers: timer: Add support for cc23x0 systim 2025-02-04 11:56:05 +01:00
Kconfig.cortex_m_systick drivers: timer: cortex_m_systick: support SysTick reset in low-power mode 2025-03-07 19:46:34 +01:00
Kconfig.esp32
Kconfig.gecko
Kconfig.ite_it8xxx2
Kconfig.leon_gptimer
Kconfig.litex
Kconfig.mchp_xec_rtos
Kconfig.mcux_gpt
Kconfig.mcux_lptmr drivers: fix spelling of "swiched" 2025-02-21 11:41:46 +00:00
Kconfig.mcux_os
Kconfig.mec5
Kconfig.mips_cp0
Kconfig.mtk_adsp drivers: kconfig: Fix bleeding options 2025-01-31 11:50:12 +01:00
Kconfig.native_sim drivers timer: Rename native_posix_timer native_sim_timer 2025-03-11 18:54:49 +01:00
Kconfig.npcx_itim
Kconfig.nrf_grtc
Kconfig.nrf_rtc
Kconfig.nrf_xrtc
Kconfig.rcar_cmt
Kconfig.realtek_rts5912_rtmr drivers: kconfig: Fix bleeding options 2025-01-31 11:50:12 +01:00
Kconfig.riscv_machine drivers: timer: Harmonize mtime-based RISC-V timers 2025-01-22 05:39:59 +01:00
Kconfig.rv32m1_lptmr
Kconfig.sam0_rtc dts: rtc: sam0: Add clock properties 2025-02-07 07:37:56 +01:00
Kconfig.silabs
Kconfig.smartbond
Kconfig.stm32_lptim
Kconfig.sy1xx_sys_timer
Kconfig.ti_dm_timer
Kconfig.wch_ch32v00x drivers: timer: Enable CH32V00x timer driver for CH32V20x/30x 2025-03-14 14:39:30 +01:00
Kconfig.x86
Kconfig.xlnx_psttc
Kconfig.xtensa
leon_gptimer.c
litex_timer.c
mchp_mec5_ktimer.c
mchp_xec_rtos_timer.c
mcux_gpt_timer.c
mcux_lptmr_timer.c
mcux_os_timer.c drivers: timer: Improve the accuracy of the MCUX OS Timer 2025-02-07 17:46:09 +01:00
mips_cp0_timer.c
mtk_adsp_timer.c boards/mediatek: Add mt8196_adsp 2024-11-28 20:51:50 +01:00
native_sim_timer.c drivers/timer/native_sim_timer: Correct comments 2025-03-11 18:54:49 +01:00
npcx_itim_timer.c driver: timer: npcx: bypass timer counter reading issue 2024-12-16 15:55:16 +01:00
nrf_grtc_timer.c kernel: Add Z_IS_TIMEOUT_RELATIVE() macro 2025-03-17 02:21:02 +01:00
nrf_rtc_timer.c kernel: Add Z_IS_TIMEOUT_RELATIVE() macro 2025-03-17 02:21:02 +01:00
rcar_cmt_timer.c
realtek_rts5912_rtmr.c driver: timer: Add timer driver initial version of RTS5912. 2025-01-10 11:58:02 +01:00
riscv_machine_timer.c drivers: timer: run clang-format on RISC-V machine timer file 2025-01-22 05:39:59 +01:00
rv32m1_lptmr_timer.c
sam0_rtc_timer.c drivers: timer: sam0: fix MCLK pointer and mask in init function 2025-02-28 14:54:59 +01:00
silabs_sleeptimer_timer.c drivers: timer: silabs: Fix calculation of next tick 2025-03-18 16:42:42 +01:00
smartbond_timer.c smartbond_timer: If PM is set, take into account watchdog for timeout ticks 2025-01-15 15:04:29 +01:00
stm32_lptim_timer.c
sy1xx_sys_timer.c
sys_clock_init.c
ti_dmtimer.c drivers: timer: Add MMU awareness to TI DM Timer 2025-02-11 03:06:42 +01:00
wch_systick_ch32v00x.c
xlnx_psttc_timer_priv.h
xlnx_psttc_timer.c
xtensa_sys_timer.c