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 include: move system timer headers to include/drivers/timer/ 2019-06-25 15:27:00 -04:00
apic_timer.c drivers: apic_timer: fix include of system_timer.h 2019-06-27 10:51:32 -07:00
arcv2_timer0.c drivers: timer: Do not use CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC 2019-07-24 15:10:02 +02:00
CMakeLists.txt drivers : timer : Add MEC1501 32KHz kernel timer driver 2019-07-24 14:58:41 -07:00
cortex_m_systick.c drivers: timer: Do not use CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC 2019-07-24 15:10:02 +02:00
hpet.c include: move system timer headers to include/drivers/timer/ 2019-06-25 15:27:00 -04:00
Kconfig drivers : timer : Add MEC1501 32KHz kernel timer driver 2019-07-24 14:58:41 -07:00
legacy_api.h license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
litex_timer.c include: move system timer headers to include/drivers/timer/ 2019-06-25 15:27:00 -04:00
loapic_timer.c driver: timer: loapic_timer: fix compile issue 2019-07-03 11:56:40 -04:00
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 native_posix: Replace system timer driver 2019-07-15 14:15:16 +02:00
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 drivers: timer: Do not use CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC 2019-07-24 15:10:02 +02:00
rv32m1_lptmr_timer.c drivers: timer: Do not use CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC 2019-07-24 15:10:02 +02:00
sam0_rtc_timer.c drivers: timer: Do not use CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC 2019-07-24 15:10:02 +02:00
sys_clock_init.c include: move system timer headers to include/drivers/timer/ 2019-06-25 15:27:00 -04:00
xtensa_sys_timer.c drivers: timer: Do not use CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC 2019-07-24 15:10:02 +02:00