zephyr/drivers/timer
Robert Lubos 9f34d17cc1 drivers: timer: nrf_rtc_timer: Fix set_comparator corner case
Update the logic in a corner case, when the target comparator value is
one cycle ahead of the counter value.

Experiments have shown, that `set_comparator(cyc + 1);` might be not
enough in that case, and we still may (rarely) miss the interrupt.
This could happen when the counter incremented its value after the `dt`
variable was set. As we should set the comparator value two cycles
ahead to be on the safe side, increment the target comparator value
by 2 instead of 1.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2019-08-01 12:29:36 +02:00
..
altera_avalon_timer_hal.c
apic_timer.c
arcv2_timer0.c
CMakeLists.txt drivers : timer : Add MEC1501 32KHz kernel timer driver 2019-07-24 14:58:41 -07:00
cortex_m_systick.c
hpet.c
Kconfig drivers : timer : Add MEC1501 32KHz kernel timer driver 2019-07-24 14:58:41 -07:00
legacy_api.h
litex_timer.c
loapic_timer.c
mchp_xec_rtos_timer.c drivers : timer : Add MEC1501 32KHz kernel timer driver 2019-07-24 14:58:41 -07:00
native_posix_timer.c
nrf_rtc_timer.c drivers: timer: nrf_rtc_timer: Fix set_comparator corner case 2019-08-01 12:29:36 +02:00
riscv_machine_timer.c
rv32m1_lptmr_timer.c
sam0_rtc_timer.c
sys_clock_init.c
xtensa_sys_timer.c