Skip to content
Snippets Groups Projects
Commit 1f3887dc authored by Henrik Sölver's avatar Henrik Sölver Committed by Damien George
Browse files

stmhal/timer: Clear interrupt flag before setting callback.

Sometimes when setting a channel callback the callback fires immediately,
even if the compare register is set to a value far into the future. This
happens when the free running counter has previously been equal to what
happens to be in the compare register.

This patch make sure that there is no pending interrupt when setting a
callback.
parent c7c14f16
Branches
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment