zephyr/drivers/timer
Ioannis Glaropoulos a0a861bfd7 drivers: timer: systick: fix off-by-one setting in tickless mode
When the counter reaches zero, it reloads the value in
SYST_RVR on the next clock edge. This means that if the
LOAD value is N, the interrupt ("tick") is triggered
every N+1 cycles. Therefore, when we operate in tickless
mode, and we want to schedule the next timeout, we need
to configure the LOAD value with last_load - 1, in order
to get an event in last_load cycles.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2019-04-11 13:50:41 -04:00
..
altera_avalon_timer_hal.c all: Update reserved function names 2019-03-11 13:48:42 -04:00
arcv2_timer0.c drivers: Rename reserved function names 2019-04-03 17:31:00 -04:00
CMakeLists.txt license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
cortex_m_systick.c drivers: timer: systick: fix off-by-one setting in tickless mode 2019-04-11 13:50:41 -04:00
hpet.c drivers/timer/hpet: Add noop SMP initialization function 2019-03-13 19:15:20 +01:00
Kconfig drivers: nrf5: Don't force specific drivers from soc/arm/nordic_nrf 2019-03-12 19:42:40 +01:00
legacy_api.h license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
loapic_timer.c drivers: Rename reserved function names 2019-04-03 17:31:00 -04:00
native_posix_timer.c drivers: Rename reserved function names 2019-04-03 17:31:00 -04:00
nrf_rtc_timer.c drivers/timer/nrf_rtc_timer: Revert recent changes 2019-03-15 07:01:27 -05:00
riscv_machine_timer.c all: Update reserved function names 2019-03-11 13:48:42 -04:00
rv32m1_lptmr_timer.c all: Update reserved function names 2019-03-11 13:48:42 -04:00
sam0_rtc_timer.c all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
sys_clock_init.c device: Extend device_set_power_state API to support async requests 2019-03-14 14:26:15 +01:00
xtensa_sys_timer.c drivers: Rename reserved function names 2019-04-03 17:31:00 -04:00