Skip to content

arch: unify stm32 hardware definition names#19114

Open
raiden00pl wants to merge 9 commits into
apache:masterfrom
raiden00pl:stm32_refactor_all_pr4
Open

arch: unify stm32 hardware definition names#19114
raiden00pl wants to merge 9 commits into
apache:masterfrom
raiden00pl:stm32_refactor_all_pr4

Conversation

@raiden00pl

@raiden00pl raiden00pl commented Jun 10, 2026

Copy link
Copy Markdown
Member

Summary

Unify stm32 hardware definition names

Until now, some STM32 definitions had a family prefix (STM32H7_*, etc.), while others did not. It wasn't even the same within one family. This leads to confusion about whether to use the family name or not. Furthermore, code generalization and driver comparisons with different prefixes are impossible. From now on, all families simply use STM32_* and this rule will be included in the STM32 porting guide

BREAKING CHANGE: STM32 L4, L5, F7, H5, H7, U5, WB, WL5, N6
non-standard hardware definition macros (IRQ, peripheral-count, SRAM
and related) were renamed to the common, standardized STM32_* prefix.

Impact

Out-of-tree code that use hardware definitions for affected families must update used definitions:

STM32L4_ -> STM32_
STM32L5_ -> STM32_
STM32F7_ -> STM32_
STM32H5_ -> STM32_
STM32H7_ -> STM32_
STM32U5_ -> STM32_
STM32WB_ -> STM32_
STM32WL5_ -> STM32_
STM32N6_ -> STM32_

After migrating Kconfig options to the standardized CONFIG_STM32_* names you will be able to use a simple replace with your favorite tools (sed, IDE and friends)

Testing

CI

BREAKING CHANGE: STM32F7 non-standard hardware definition macros
(IRQ, peripheral-count, SRAM and related) were renamed to the common
STM32_* prefix. Out-of-tree code must update the affected references.

Signed-off-by: raiden00pl <raiden00@railab.me>
BREAKING CHANGE: STM32H5 non-standard hardware definition macros
(IRQ, peripheral-count, SRAM and related) were renamed to the common
STM32_* prefix. Out-of-tree code must update the affected references.

Signed-off-by: raiden00pl <raiden00@railab.me>
BREAKING CHANGE: STM32H7 non-standard hardware definition macros
(IRQ, peripheral-count, SRAM and related) were renamed to the common
STM32_* prefix. Out-of-tree code must update the affected references.

Signed-off-by: raiden00pl <raiden00@railab.me>
BREAKING CHANGE: STM32L4 non-standard hardware definition macros
(IRQ, peripheral-count, SRAM and related) were renamed to the common
STM32_* prefix. Out-of-tree code must update the affected references.

Signed-off-by: raiden00pl <raiden00@railab.me>
BREAKING CHANGE: STM32L5 non-standard hardware definition macros
(IRQ, peripheral-count, SRAM and related) were renamed to the common
STM32_* prefix. Out-of-tree code must update the affected references.

Signed-off-by: raiden00pl <raiden00@railab.me>
BREAKING CHANGE: STM32U5 non-standard hardware definition macros
(IRQ, peripheral-count, SRAM and related) were renamed to the common
STM32_* prefix. Out-of-tree code must update the affected references.

Signed-off-by: raiden00pl <raiden00@railab.me>
BREAKING CHANGE: STM32WB non-standard hardware definition macros
(IRQ, peripheral-count, SRAM and related) were renamed to the common
STM32_* prefix. Out-of-tree code must update the affected references.

Signed-off-by: raiden00pl <raiden00@railab.me>
BREAKING CHANGE: STM32WL5 non-standard hardware definition macros
(IRQ, peripheral-count, SRAM and related) were renamed to the common
STM32_* prefix. Out-of-tree code must update the affected references.

Signed-off-by: raiden00pl <raiden00@railab.me>
BREAKING CHANGE: STM32N6 non-standard hardware definition macros
(IRQ, peripheral-count, SRAM and related) were renamed to the common
STM32_* prefix. Out-of-tree code must update the affected references.

Signed-off-by: raiden00pl <raiden00@railab.me>
@github-actions github-actions Bot added Arch: arm Issues related to ARM (32-bit) architecture Size: XL The size of the change in this PR is very large. Consider breaking down the PR into smaller pieces. Board: arm labels Jun 10, 2026
@raiden00pl raiden00pl added breaking change This change requires a mitigation entry in the release notes. and removed Arch: arm Issues related to ARM (32-bit) architecture Size: XL The size of the change in this PR is very large. Consider breaking down the PR into smaller pieces. Board: arm labels Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change This change requires a mitigation entry in the release notes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants