[riot-notifications] [RIOT-OS/RIOT] sam0/timer: don't restrict timer to 1 MHz (#11610)
notifications at github.com
Wed May 29 18:11:29 CEST 2019
When converting the existing drivers into one general timer driver, I forgot to remove this check.
It doesn't make any sense anymore as the frequency parameter is otherwise unused.
The frequency of the timer is the frequency of the associated GCLK divided by the prescaler.
The prescaler only allows rather coarse steps (divide by 1; 2; 4; 8; 16; 64; 256; 1024), so it has to be tweaked together with the source clock to get the desired frequency.
You can view, comment on, or merge this pull request online at:
-- Commit Summary --
* sam0/timer: don't restrict timer to 1 MHz
-- File Changes --
M cpu/sam0_common/periph/timer.c (6)
-- Patch Links --
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