samd21: pull all generic clock generators into clock.c #7208
Labels
Platform: ARM
Platform: This PR/issue effects ARM-based platforms
State: stale
State: The issue / PR has no activity for >185 days
The samd21 has 9 generic clock generators that can be tied to different clock sources and then tweaked for the users needs. Currently these are setup in clock.c, timer.c, rtt.c, and rtc.c. Wanted to open a discussion about cleaning this up. I recommend we pull all generic clock generator code back into clock.c and setup a specific clock generator for a specific clock. For example:
Then in timer.c/rtt.c/rtc.c and so forth you just check that the clock is on then use it:
See PR #7130 for motivation for this issue.
Thoughts, input?
The text was updated successfully, but these errors were encountered: