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

benpicco notifications at github.com
Wed May 5 13:10:37 CEST 2021


@benpicco commented on this pull request.



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

How did this work before? 48 MHz / 2 doesn't yield 8 MHz

-- 
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#discussion_r626473305
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210505/5bfd78d6/attachment-0001.htm>


More information about the notifications mailing list