summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/timer.c')
-rw-r--r--stmhal/timer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/stmhal/timer.c b/stmhal/timer.c
index ecb1f3bf7c..68f295b748 100644
--- a/stmhal/timer.c
+++ b/stmhal/timer.c
@@ -1382,6 +1382,7 @@ void timer_irq_handler(uint tim_id) {
// just get called continuously.
uint32_t unhandled = tim->tim.Instance->DIER & 0xff & ~handled;
if (unhandled != 0) {
+ __HAL_TIM_DISABLE_IT(&tim->tim, unhandled);
__HAL_TIM_CLEAR_IT(&tim->tim, unhandled);
printf("Unhandled interrupt SR=0x%02lx (now disabled)\n", unhandled);
}