[riot-notifications] [RIOT-OS/RIOT] CPU SAML21: fix timers frequency when using slow clocks (#16446)

Dylan Laduranty notifications at github.com
Wed May 5 12:56:58 CEST 2021


@dylad requested changes on this pull request.

One comment otherwise looks good.

> +    _gclk_setup(SAM0_GCLK_TIMER, GCLK_GENCTRL_GENEN | GCLK_GENCTRL_SRC_OSC16M
+                | GCLK_GENCTRL_DIV(CLOCK_CORECLOCK/sam0_gclk_freq(SAM0_GCLK_TIMER)));

If CLOCK_CORECLOCK is set 48MHz, we will get a wrong frequency here.

-- 
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/16446#pullrequestreview-652167283
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210505/503e64f8/attachment.htm>


More information about the notifications mailing list