zephyr/drivers/timer
Krzysztof Chruscinski 482fae74a8 drivers: timer: nrf_rtc_timer: Fix race condition
RTC interrupt was reading CC value and passing it to the handler.
However, higher priority interrupt could preempt RTC interrupt
and set new CC value. In that case CC value read in the RTC
interrupt context was not the one that triggered the interrupt.
Added fallback to COUNTER value if that case is detected.

Using COUNTER is not as precise as CC because it returns time
when event was handled and not when event occured but it is the
only option since CC value is overwritten.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
2021-07-19 12:02:27 +02:00
..
altera_avalon_timer_hal.c drivers: device: do not reuse tag name 'device' 2021-03-22 19:48:14 -04:00
apic_timer.c drivers: device: do not reuse tag name 'device' 2021-03-22 19:48:14 -04:00
apic_tsc.c drivers/timer: Add x86 APIC TSC_DEADLINE driver 2021-05-07 16:48:58 -04:00
arcv2_timer0.c tests: boot_time: remove all the code and instrumentation feeding into test 2021-05-05 10:41:15 -04:00
arm_arch_timer.c drivers: device: do not reuse tag name 'device' 2021-03-22 19:48:14 -04:00
cavs_timer.c xtensa: cavs: fix irq_enable() argument 2021-05-03 17:13:01 -04:00
cc13x2_cc26x2_rtc_timer.c drivers: device: do not reuse tag name 'device' 2021-03-22 19:48:14 -04:00
CMakeLists.txt drivers: timer: add NXP LPTMR timer driver 2021-07-14 22:54:34 +03:00
cortex_m_systick.c drivers: systick: fix cycle count in sys_clock_set_timeout() 2021-05-20 08:44:55 -05:00
esp32c3_sys_timer.c soc: riscv: esp32c3: use the new esp_rom prefix 2021-07-07 20:58:50 -04:00
hpet.c drivers: change suffix ull to ULL 2021-05-21 18:13:01 -04:00
ite_it8xxx2_timer.c soc: it8xxx2: introduce SOC_IT8XXX2_PLL_FLASH_48M option 2021-07-13 09:44:29 -04:00
Kconfig drivers: timer: add NXP LPTMR timer driver 2021-07-14 22:54:34 +03:00
Kconfig.stm32_lptim drivers: timer: make lptim depend on the dt node 2021-06-24 21:06:25 -04:00
leon_gptimer.c drivers: device: do not reuse tag name 'device' 2021-03-22 19:48:14 -04:00
litex_timer.c drivers: device: do not reuse tag name 'device' 2021-03-22 19:48:14 -04:00
mchp_xec_rtos_timer.c drivers: device: do not reuse tag name 'device' 2021-03-22 19:48:14 -04:00
mcux_lptmr_timer.c drivers: timer: add NXP LPTMR timer driver 2021-07-14 22:54:34 +03:00
mcux_os_timer.c tests: arch: arm_irq_vector_table: Update to run on MXRT685 2021-07-07 08:25:06 -04:00
native_posix_timer.c drivers: device: do not reuse tag name 'device' 2021-03-22 19:48:14 -04:00
npcx_itim_timer.c drivers: npcx: convert NPCX drivers clock client to DEVICE_DT_GET 2021-06-27 23:02:39 -04:00
nrf_rtc_timer.c drivers: timer: nrf_rtc_timer: Fix race condition 2021-07-19 12:02:27 +02:00
rcar_cmt_timer.c drivers: timer: add R-Car cmt driver 2021-04-22 10:38:45 +02:00
riscv_machine_timer.c drivers: device: do not reuse tag name 'device' 2021-03-22 19:48:14 -04:00
rv32m1_lptmr_timer.c clock: rename z_timer_cycle_get_32 -> sys_clock_cycle_get_32 2021-03-19 11:22:17 -04:00
sam0_rtc_timer.c drivers: device: do not reuse tag name 'device' 2021-03-22 19:48:14 -04:00
stm32_lptim_timer.c drivers: stm32_lptim_timer: add support for STM32WL series 2021-07-06 09:51:22 -04:00
sys_clock_init.c pm: remove callback from control function 2021-07-13 09:36:45 -04:00
xlnx_psttc_timer_priv.h
xlnx_psttc_timer.c drivers: device: do not reuse tag name 'device' 2021-03-22 19:48:14 -04:00
xtensa_sys_timer.c drivers: device: do not reuse tag name 'device' 2021-03-22 19:48:14 -04:00