[riot-notifications] [RIOT-OS/RIOT] sam0/timer: don't restrict timer to 1 MHz (#11610)

benpicco 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:

  https://github.com/RIOT-OS/RIOT/pull/11610

-- Commit Summary --

  * sam0/timer: don't restrict timer to 1 MHz

-- File Changes --

    M cpu/sam0_common/periph/timer.c (6)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/11610.patch
https://github.com/RIOT-OS/RIOT/pull/11610.diff

-- 
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/11610
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190529/993a37d6/attachment.html>


More information about the notifications mailing list