summaryrefslogtreecommitdiffstatshomepage
path: root/py
diff options
context:
space:
mode:
authorHenrik Sölver <henrik.solver@gmail.com>2017-04-13 21:38:17 +0200
committerDamien George <damien.p.george@gmail.com>2017-04-18 18:09:59 +1000
commit1f3887dc28a7ee1f5671fcc194930fa33a60ece5 (patch)
tree95aa45eea7b12d7cb464f03253ceeb347c0c628b /py
parentc7c14f163458046767b539c567a421076ea9a6b7 (diff)
downloadmicropython-1f3887dc28a7ee1f5671fcc194930fa33a60ece5.tar.gz
micropython-1f3887dc28a7ee1f5671fcc194930fa33a60ece5.zip
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.
Diffstat (limited to 'py')
0 files changed, 0 insertions, 0 deletions