-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Conversation
There was a problem hiding this 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
cpu/stm32f7/include/periph_cpu.h
Outdated
* @name Starting address of the CPU ID | ||
*/ | ||
#ifdef CPU_MODEL_STM32F722ZE | ||
#define CPUID_ADDR (0x1ff07A10) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
copy pasta, will fix
There was a problem hiding this 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.
8fda1b1
to
625cba4
Compare
fixed upper case issue and squashed it right in. |
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 ;-) |
625cba4
to
39f715e
Compare
39f715e
to
5a35517
Compare
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. |
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).