[riot-notifications] [RIOT-OS/RIOT] CPU SAML21: fix timers frequency when using slow clocks (#16446)
notifications at github.com
Wed May 5 15:13:43 CEST 2021
@ant9000 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)));
I've measured power usage, the gain from this last solution is quite negligible, at about 0.1mA (2.52mA with timer clock fed from OSC16, 2.42mA with timer fed from DFLL48M).
Looks cleaner to me, though.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications