Skip to content

Commit fdcb3b7

Browse files
committed
stmhal: Actually disable unhandled timer interrupts.
1 parent 9472907 commit fdcb3b7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

stmhal/timer.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,6 +1382,7 @@ void timer_irq_handler(uint tim_id) {
13821382
// just get called continuously.
13831383
uint32_t unhandled = tim->tim.Instance->DIER & 0xff & ~handled;
13841384
if (unhandled != 0) {
1385+
__HAL_TIM_DISABLE_IT(&tim->tim, unhandled);
13851386
__HAL_TIM_CLEAR_IT(&tim->tim, unhandled);
13861387
printf("Unhandled interrupt SR=0x%02lx (now disabled)\n", unhandled);
13871388
}

0 commit comments

Comments
 (0)