Skip to content

Conversation

daniel-k
Copy link
Member

While revising some clock setups I stumbled upon 2 potential bugs and eliminated some implicit options (GCLK_CLKCTRL_GEN_GCLK0 evaluates to 0 but it's nice to see it if you don't know).

Additionally I redirect all peripherals to a disabled clock generator at the end of the cpu clock initialization. That saves approx. 1mA while MCU is executing, depending on the enabled peripherals. See reference

@daniel-k daniel-k added Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation Platform: ARM Platform: This PR/issue effects ARM-based platforms CI: needs squashing Commits in this PR need to be squashed; If set, CI systems will mark this PR as unmergable Area: drivers Area: Device drivers labels Sep 17, 2015
@thomaseichinger thomaseichinger added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Sep 29, 2015
@thomaseichinger
Copy link
Member

@daniel-k Looks good, please squash.

@daniel-k daniel-k removed the CI: needs squashing Commits in this PR need to be squashed; If set, CI systems will mark this PR as unmergable label Sep 29, 2015
@daniel-k
Copy link
Member Author

@thomaseichinger
Squashed and rebased.

@thomaseichinger
Copy link
Member

ACK when Travis passed.

@daniel-k
Copy link
Member Author

Travis is green, let's go.

daniel-k added a commit that referenced this pull request Sep 30, 2015
samd21: tidy up peripheral clocks and fix potential bugs
@daniel-k daniel-k merged commit 85f5a86 into RIOT-OS:master Sep 30, 2015
@daniel-k daniel-k deleted the pr/samd21_clocks branch October 9, 2015 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: drivers Area: Device drivers CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Platform: ARM Platform: This PR/issue effects ARM-based platforms Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants