2895da02a4
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> |
||
---|---|---|
.. | ||
altera_avalon_timer_hal.c | ||
arcv2_timer0.c | ||
CMakeLists.txt | ||
cortex_m_systick.c | ||
hpet.c | ||
Kconfig | ||
legacy_api.h | ||
loapic_timer.c | ||
native_posix_timer.c | ||
nrf_rtc_timer.c | ||
riscv_machine_timer.c | ||
rv32m1_lptmr_timer.c | ||
sam0_rtc_timer.c | ||
sys_clock_init.c | ||
xtensa_sys_timer.c |