1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-21 04:23:50 +01:00
Joshua DeWeese dea25437c7 cpu/stm32/periph/timer: fix clobered IRQ flag
The STM32 periph_timer driver reads the timer's status flags, then
clears them all. It is possible that a timer interrupt could occur
between reading the flag and clearing it. This would lead to a lost
interrupt.

The timer's status flags can be cleared by software, but can only be set
by the hardware. This patch takes advantage of this by only clearing the
flags it knows are set. The rest of the flags are set, which doesn't
actually change their state.
2023-03-13 14:01:48 -04:00
..
2022-02-21 10:49:43 +01:00
2022-02-21 10:49:43 +01:00
2022-02-21 10:49:43 +01:00
2022-02-21 10:49:43 +01:00
2021-12-03 10:12:35 +01:00
2020-05-20 13:39:11 +02:00
2020-10-23 00:46:26 +02:00
2023-01-07 09:47:44 +01:00
2022-09-15 12:12:23 +02:00
2022-02-12 18:30:58 +01:00
2021-09-07 10:06:31 +02:00
2020-10-23 00:46:26 +02:00
2021-09-07 10:06:31 +02:00
2020-10-23 00:46:26 +02:00
2022-02-21 10:49:43 +01:00
2020-10-23 11:29:57 +02:00