Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpu/stm32: optimized definition of CPUID_ADDR #7731

Merged
merged 1 commit into from
Oct 13, 2017

Conversation

haukepetersen
Copy link
Contributor

This PR removes a lot of redundant information, as (with very few exceptions) the members of the stm32 families use the same CPUID offset address. So no need to specify if for each CPU_MODEL.

Further: removing this value from the linker scripts takes away a difference between stm32 and other cortex CPU families, so we can actually used shared linkerscripts (see #7729).

@haukepetersen haukepetersen added Platform: ARM Platform: This PR/issue effects ARM-based platforms Type: cleanup The issue proposes a clean-up / The PR cleans-up 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 Oct 13, 2017
@haukepetersen haukepetersen added this to the Release 2017.10 milestone Oct 13, 2017
Copy link
Member

@vincent-d vincent-d left a comment

Choose a reason for hiding this comment

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

Code-wise, it looks OK, feel free to fix my comment and amend -> Untested ACK

* @name Starting address of the CPU ID
*/
#ifdef CPU_MODEL_STM32F722ZE
#define CPUID_ADDR (0x1ff07A10)
Copy link
Member

Choose a reason for hiding this comment

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

Minor nit: everything is lowercase except the A

Copy link
Contributor Author

Choose a reason for hiding this comment

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

copy pasta, will fix

Copy link
Contributor

@kYc0o kYc0o left a comment

Choose a reason for hiding this comment

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

ACK. I'll rebase mine after this one and remove all cpuid related definitions.

@haukepetersen
Copy link
Contributor Author

fixed upper case issue and squashed it right in.

@kYc0o
Copy link
Contributor

kYc0o commented Oct 13, 2017

I tested successfully in the boards I have but since the change touches quite a lot of boards I'm unsure...

@haukepetersen if you think everything should work you're free to push the green button ;-)

@haukepetersen
Copy link
Contributor Author

Did a careful review once more and tested all STMs that I have laying around here: now I am confident that this PR does not brake anything -> go.

@haukepetersen haukepetersen merged commit 05e13cd into RIOT-OS:master Oct 13, 2017
@haukepetersen haukepetersen deleted the opt_stm32_cpuid branch October 13, 2017 14:12
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: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants