Skip to content

Commit 525751c

Browse files
committed
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.
1 parent 441b699 commit 525751c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cpu/riscv_common/periph/coretimer.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ int timer_clear(tim_t dev, int channel)
131131
return -1;
132132
}
133133

134+
clear_csr(mie, MIP_MTIP);
134135
return 0;
135136
}
136137

0 commit comments

Comments
 (0)