stmhal: Actually disable unhandled timer interrupts.

NotImplemented
Dave Hylands 2015-04-28 00:17:05 -07:00
parent 9472907ae1
commit fdcb3b7ebb
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}