zephyr/drivers/timer
Ioannis Glaropoulos 2895da02a4 drivers: timer: systick: clear pending events when resetting timeout
In the unlucky scenario of a SysTick event (wrap) occurring
while we re-program the last_load value, the SysTick ISR
will run immediately after we unlock interrupts. In that
case the timeout we have just configured will expire
instantaneously, leading to operations being executed
much earlier than expected. Avoid this by clearing possibly
pending SysTick exceptions (writing 1 to ICSR.PENDSTCLR).

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: clear pending events when resetting timeout 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