Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
fdcb3b7e
Commit
fdcb3b7e
authored
Apr 28, 2015
by
Dave Hylands
Browse files
stmhal: Actually disable unhandled timer interrupts.
parent
9472907a
Changes
1
Hide whitespace changes
Inline
Side-by-side
stmhal/timer.c
View file @
fdcb3b7e
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment