zephyr/drivers/timer
Hake Huang 8add9219a7 drivers: timer : cortex_m_systick MAX_TICKS protection
when CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC set to 960M
and CONFIG_SYS_CLOCK_TICKS_PER_SEC set to 100
the MAX_TICKS will be zero or even negative value, which is not
expected.
so need add a protection here downgrading the accuracy to
its as high as possible

also add build message to show that tickless has no effect

fixes: #36766

there used to be a workaround, not a fix,
either change the CONFIG_SYS_CLOCK_TICKS_PER_SEC=200
or
CONFIG_PM to set the CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC
to 32678

Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
2025-07-22 08:19:55 -04:00
..
ambiq_stimer.c drivers: timer: Add support for Apollo510 SoC system timer (STIMER) 2025-04-21 20:04:31 +02:00
apic_timer.c
apic_tsc.c
arcv2_timer0.c
arm_arch_timer.c
cc13xx_cc26xx_rtc_timer.c
cc23x0_systim_timer.c
CMakeLists.txt drivers: timer: microchip: xec: Microchip MEC one kernel timer driver 2025-07-19 15:39:40 -04:00
cortex_m_systick.c drivers: timer : cortex_m_systick MAX_TICKS protection 2025-07-22 08:19:55 -04: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 drivers: esp32: Update for shared intc 2025-04-02 19:02:27 +02:00
export.c
gecko_burtc_timer.c include: zephyr: sys: time_units: Make z_clock_hw_cycles_per_sec unsigned 2025-03-28 12:21:07 +01:00
hpet.c include: zephyr: sys: time_units: Make z_clock_hw_cycles_per_sec unsigned 2025-03-28 12:21:07 +01:00
ifx_cat1_lp_timer.c drivers: timer: Add support for IFX Low power timer 2025-05-29 20:19:18 -04:00
intel_adsp_timer.c
ite_it8xxx2_timer.c
ite_it51xxx_timer.c drivers/timer: it51xxx: Compensate time calculation to reduce drift 2025-06-06 08:45:43 +02:00
Kconfig drivers: timer: microchip: xec: Microchip MEC one kernel timer driver 2025-07-19 15:39:40 -04:00
Kconfig.ambiq
Kconfig.arcv2
Kconfig.arm_arch
Kconfig.cavs
Kconfig.cc13xx_cc26xx_rtc
Kconfig.cc23x0_systim
Kconfig.cortex_m_systick drivers: timer: Clean up Cortex-M systick Kconfig 2025-07-04 16:40:31 -10:00
Kconfig.esp32 boards: espressif: esp32c6: Add LP Core board support 2025-03-21 17:05:20 +01:00
Kconfig.gecko
Kconfig.ifx_cat1_lp drivers: timer: Add support for IFX Low power timer 2025-05-29 20:19:18 -04:00
Kconfig.it51xxx drivers/timer: Add timer driver of it51xxx 2025-04-08 10:48:26 +02:00
Kconfig.ite_it8xxx2
Kconfig.leon_gptimer
Kconfig.litex
Kconfig.mchp_sam drivers: timer: sam: add pit64b timer for sama7g5 2025-05-28 08:14:08 +02:00
Kconfig.mchp_xec_rtos
Kconfig.mcux_gpt
Kconfig.mcux_lptmr dts: counter: Remove old kinetis lptmr binding 2025-03-20 17:14:28 +01:00
Kconfig.mcux_os driver: timer: enable 64 bit cycle counter for MCUX_OS_TIMER 2025-06-24 20:03:01 -10:00
Kconfig.mips_cp0
Kconfig.mtk_adsp
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
Kconfig.renesas_ra_ulpt drivers: timer: Add ULPT timer for power management on Renesas RA MCUs 2025-04-03 08:41:08 +02:00
Kconfig.renesas_rx driver: timer: Support for RX system timer 2025-05-02 09:18:16 +02:00
Kconfig.renesas_rz drivers: system timer: Initial support for RZ/G3S 2025-06-03 17:08:30 +02:00
Kconfig.renesas_rza2m drivers: timer: Add initial support for RZ/A2M 2025-04-25 14:05:01 +02:00
Kconfig.riscv_machine
Kconfig.rv32m1_lptmr
Kconfig.sam0_rtc dts: rtc: sam0: Add clock properties 2025-02-07 07:37:56 +01:00
Kconfig.silabs driver: sleeptimer: siwx917: Add siwx91x Sleeptimer driver 2025-04-03 06:24:54 +02:00
Kconfig.smartbond
Kconfig.stm32_lptim
Kconfig.sy1xx_sys_timer
Kconfig.ti_dm_timer
Kconfig.wch_ch32v00x soc: Add support for the WCH CH32V303 2025-05-24 18:03:53 +02:00
Kconfig.x86
Kconfig.xlnx_psttc
Kconfig.xtensa
leon_gptimer.c
litex_timer.c
mchp_sam_pit64b_timer.c drivers: timer: sam: add pit64b timer for sama7g5 2025-05-28 08:14:08 +02:00
mchp_xec_rtos_timer.c drivers: timer: microchip: xec: Microchip MEC one kernel timer driver 2025-07-19 15:39:40 -04:00
mcux_gpt_timer.c
mcux_lptmr_timer.c dts: counter: Remove old kinetis lptmr binding 2025-03-20 17:14:28 +01:00
mcux_os_timer.c soc: nxp: Flatten MCX SOCs 2025-07-19 13:25:29 -04:00
mips_cp0_timer.c
mtk_adsp_timer.c
native_sim_timer.c drivers/timer/native_sim: Use upper case long suffix 2025-05-13 12:09:30 +02:00
npcx_itim_timer.c
nrf_grtc_timer.c drivers: timer: nrf_grtc_timer: add last_count initialization 2025-06-30 15:23:44 -05:00
nrf_rtc_timer.c drivers: timer: nrf_rtc_timer: Optimize z_nrf_rtc_timer_get_ticks 2025-06-12 09:26:29 -07:00
rcar_cmt_timer.c
realtek_rts5912_rtmr.c drivers: timer : fix rtmr timer. 2025-05-22 02:21:12 +02:00
renesas_ra_ulpt_timer.c drivers: timer: Add ULPT timer for power management on Renesas RA MCUs 2025-04-03 08:41:08 +02:00
renesas_rx_cmt.c driver: timer: Support for RX system timer 2025-05-02 09:18:16 +02:00
renesas_rz_gtm_timer.c drivers: system timer: Initial support for RZ/G3S 2025-06-03 17:08:30 +02:00
renesas_rza2m_os_timer.c drivers: timer: Add initial support for RZ/A2M 2025-04-25 14:05:01 +02:00
riscv_machine_timer.c drivers: timer: riscv_machine_timer: Use reg-names to access registers 2025-05-27 19:04:22 +02: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 include: zephyr: sys: time_units: Make z_clock_hw_cycles_per_sec unsigned 2025-03-28 12:21:07 +01:00
smartbond_timer.c
stm32_lptim_timer.c drivers: timer: stm32 lptim: Fix the st,timeout runtime check 2025-07-19 13:22:44 -04:00
sy1xx_sys_timer.c
sys_clock_init.c
ti_dmtimer.c drivers: timer: ti_dmtimer: Do not require systick_timer node label 2025-06-03 17:08:37 +02:00
wch_systick_ch32v00x.c modules: Update hal_wch 2025-05-24 18:03:53 +02:00
xlnx_psttc_timer_priv.h
xlnx_psttc_timer.c
xtensa_sys_timer.c