zephyr/drivers/timer
Peter A. Bigot d2f507855b drivers: timer: nrf_rtc_timer: fix handling for 24-bit counter
Two subtractions failed to account for the possibility that a calculated
time exceeded the counter resolution, allowing a comparison to
improperly indicate that a minimum delay was satisfied.

Use the subtraction helper to avoid the problem.

(The subtraction in z_clock_set_timeout was the cause of issue #11694;
the one in rtc1_nrf5_isr was replaced based on inspection rather than
testing.)

Closes #11694

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2018-11-30 15:05:25 +01:00
..
altera_avalon_timer_hal.c include/system_timer.h: Timer API cleanup 2018-10-16 15:03:10 -04:00
arcv2_timer0.c drivers: Remove board.h include 2018-11-01 13:21:11 -04:00
CMakeLists.txt board: posix: add native_posix board definition 2017-12-27 14:16:08 -05:00
cortex_m_systick.c drivers/timer: New ARM SysTick driver 2018-11-13 17:10:07 -05:00
hpet.c drivers/timer/hpet: Completely new, simplified, tickless-capable driver 2018-11-13 17:10:07 -05:00
Kconfig drivers/timer: New xtensa timer with tickless support 2018-11-13 17:10:07 -05:00
legacy_api.h kernel: New timeout implementation 2018-10-16 15:03:10 -04:00
loapic_timer.c drivers: Remove board.h include 2018-11-01 13:21:11 -04:00
native_posix_timer.c kernel: expose k_busy_wait() to user mode 2018-11-15 16:20:36 -05:00
nrf_rtc_timer.c drivers: timer: nrf_rtc_timer: fix handling for 24-bit counter 2018-11-30 15:05:25 +01:00
pulpino_timer.c drivers: Remove board.h include 2018-11-01 13:21:11 -04:00
riscv_machine_timer.c drivers/timer: New, tickless-capable RISC-V machine timer driver 2018-11-13 17:10:07 -05:00
sys_clock_init.c drivers/timer: Add more default stubs 2018-11-13 17:10:07 -05:00
xtensa_sys_timer.c drivers/timer/xtensa_sys_timer: Add hook for old-style interrupt handling 2018-11-14 19:08:27 -05:00