Repository navigation
!arch: unify all STM32 ports public API - #19125
Merged
xiaoxiang781216 merged 7 commits intoJun 13, 2026
Merged
Conversation
BREAKING CHANGE: Public STM32F7 APIs were renamed from stm32f7_* and stm32f7x9_* forms to canonical stm32_* names. Signed-off-by: raiden00pl <[email protected]>
BREAKING CHANGE: Public STM32H5 APIs were renamed from stm32h5_* forms to canonical stm32_* forms. Signed-off-by: raiden00pl <[email protected]>
BREAKING CHANGE: Public STM32H7 APIs were renamed from stm32h7_* forms to canonical stm32_* forms. Signed-off-by: raiden00pl <[email protected]>
raiden00pl
requested review from
Ouss4,
acassis,
antmerlino,
btashton,
cederom,
davids5,
gustavonihei,
hartmannathan,
jerpelea,
michallenc,
pkarashchenko,
rcsim,
simbit18,
xiaoxiang781216 and
yamt
as code owners
June 12, 2026 07:29
BREAKING CHANGE: Public STM32L4 interfaces were renamed from stm32l4_* forms to canonical stm32_* forms across arch and board headers/sources. Public type names were normalized to stm32_* equivalents (including timer/lptimer/dma/freerun API-facing types), and stm32l4can_initialize() was renamed to stm32_caninitialize(). The STM32L4 root family header was renamed from stm32l4.h to stm32.h; all STM32L4 arch/board includes were updated accordingly. Signed-off-by: raiden00pl <[email protected]>
BREAKING CHANGE: Public STM32L5 interfaces were renamed from stm32l5_* forms to canonical stm32_* forms across arch and board headers/sources. Public type names in STM32L5 timer/GPIO/EXTI and related API-facing declarations were normalized to stm32_* equivalents. The STM32L5 root family header was renamed from stm32l5.h to stm32.h; all STM32L5 arch/board includes were updated accordingly. Signed-off-by: raiden00pl <[email protected]>
BREAKING CHANGE: Public STM32WB interfaces were renamed from stm32wb_* forms to canonical stm32_* forms across arch and board headers/sources. Public type names in STM32WB timer/dma/freerun/oneshot/GPIO/EXTI and related API-facing declarations were normalized to stm32_* equivalents. The STM32WB root family header was renamed from stm32wb.h to stm32.h; all STM32WB arch/board includes were updated accordingly. Signed-off-by: raiden00pl <[email protected]>
BREAKING CHANGE: Public STM32WL5 interfaces were renamed from stm32wl5_* forms to canonical stm32_* forms across arch and board headers/sources. Public type names in STM32WL5 timer/GPIO/EXTI and related API-facing declarations were normalized to stm32_* equivalents. The STM32WL5 root family header was renamed from stm32wl5.h to stm32.h; all STM32WL5 arch/board includes were updated accordingly. Signed-off-by: raiden00pl <[email protected]>
raiden00pl
force-pushed
the
stm32_refactor_all_pr6
branch
from
June 12, 2026 07:46
11339f1 to
e71e8fd
Compare
acassis
approved these changes
Jun 12, 2026
Contributor
|
That was a HUGE work! Congratulations @raiden00pl to this call for duty! Kudos!!! |
xiaoxiang781216
approved these changes
Jun 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Public API names were normalized to stm32_* equivalents (including timer/lptimer/dma/freerun API-facing types).
Also the root family header was renamed from
stm32<family_prefix>.hto cannonicalstm32.h.The biggest changes affect stm32l4 and all later ports that were based on it (stm32l5, stm32wb, stm32wl5). The rest of the ports created an API without any rules; some functions had a family prefix in their name, some didn't. It wasn't even consistent within the same family. From now on, all ports use the same API names starting with "stm32_*". No more confusion about whether to use a prefix or not, and no more problems when porting code from one stm32 board to another.
This is a necessary step to create a common board for all STM32 and to generalize peripheral drivers.
Part of #19004
Impact
BREAKING CHANGE: Public STM32 interfaces for F7, H5, H7, L4, L5, WB, WL5 were renamed from
stm32<family_prefix>_*forms to canonicalstm32_*forms across arch and board headers/sources.Migration to the new API is simple and comes down to replacing the name with a prefix with the name without a prefix, for example "stm32l4_" -> "stm32_", and change includes from "stm32l4.h" to "stm32.h"
Testing
CI