[riot-notifications] [RIOT-OS/RIOT] cpu/atmega_common: Fix periph_timer (#14098)

Marian Buschsieweke notifications at github.com
Mon May 18 21:52:44 CEST 2020


@maribu commented on this pull request.



> +        /* Timer already expired. Make sure that interrupt is indeed triggered
+         */
+        while (!(*ctx[tim].flag & (1 << (OCF1A + channel)))) {
+            ctx[tim].dev->OCR[channel] = ctx[tim].dev->CNT;
+        }

@kaspar030: We discussed this approach in a PR some weeks ago. This seems to indeed work :-)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/14098#pullrequestreview-413894567
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200518/f5465bae/attachment.htm>


More information about the notifications mailing list