Skip to content

cpu/stm32_common: fix PLLs enabling and usage#7537

Merged
aabadie merged 2 commits intoRIOT-OS:masterfrom
OTAkeys:pr/stmclk_fix_pll
Sep 1, 2017
Merged

cpu/stm32_common: fix PLLs enabling and usage#7537
aabadie merged 2 commits intoRIOT-OS:masterfrom
OTAkeys:pr/stmclk_fix_pll

Conversation

@vincent-d
Copy link
Copy Markdown
Member

This is a small follow up of #7477. I I realized I needed R factor for PLL I2S on stm32f2 to use as MCO2.

So this add possibility to use R output for every PLL.

@vincent-d vincent-d added Platform: ARM Platform: This PR/issue effects ARM-based platforms Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Aug 30, 2017
@vincent-d vincent-d added this to the Release 2017.10 milestone Aug 30, 2017
@vincent-d vincent-d added the Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) label Aug 31, 2017
@vincent-d
Copy link
Copy Markdown
Member Author

Found another bug with extra PLL enabling, fixed it.

@vincent-d vincent-d changed the title cpu/stm32_common: add R factors for PLLs cpu/stm32_common: fix PLLs enabling and usage Aug 31, 2017
Copy link
Copy Markdown
Contributor

@aabadie aabadie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just a minor style thing.

#endif

#if defined(CPU_FAM_STM32F2)
#define RCC_PLLCFGR_PLLP_Pos (16U)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nit: the defines could be aligned with the ones below

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed and amended directly

@aabadie
Copy link
Copy Markdown
Contributor

aabadie commented Sep 1, 2017

Needs rebase here

@vincent-d
Copy link
Copy Markdown
Member Author

Rebased

Copy link
Copy Markdown
Contributor

@aabadie aabadie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested nucleo144-f207, still works (well, the shell and gpio worked).

ACK

@aabadie
Copy link
Copy Markdown
Contributor

aabadie commented Sep 1, 2017

and go

@aabadie aabadie merged commit 5282b83 into RIOT-OS:master Sep 1, 2017
@vincent-d vincent-d deleted the pr/stmclk_fix_pll branch September 1, 2017 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

4 participants