Commit fdcb3b7e authored by Dave Hylands's avatar Dave Hylands
Browse files

stmhal: Actually disable unhandled timer interrupts.

parent 9472907a
......@@ -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);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment