1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/riscv_common/periph_timer: Fix timer_clear()

Previously, timer_clear() was a no-op, resulting in spurious IRQs from
already canceled timeouts. This fixes the issue.
This commit is contained in:
Marian Buschsieweke 2023-01-09 00:08:59 +01:00
parent 441b69964c
commit 525751c33b
No known key found for this signature in database
GPG Key ID: CB8E3238CE715A94

View File

@ -131,6 +131,7 @@ int timer_clear(tim_t dev, int channel)
return -1;
}
clear_csr(mie, MIP_MTIP);
return 0;
}