Skip to content

stm32: clean up usage of HAL Legacy definitions#108271

Merged
kartben merged 2 commits into
zephyrproject-rtos:mainfrom
mathieuchopstm:topic/hal_legacy_usage_cleanup
May 4, 2026
Merged

stm32: clean up usage of HAL Legacy definitions#108271
kartben merged 2 commits into
zephyrproject-rtos:mainfrom
mathieuchopstm:topic/hal_legacy_usage_cleanup

Conversation

@mathieuchopstm
Copy link
Copy Markdown
Contributor

Some STM32 code is using HAL1 Legacy definitions. Update such code to use the actual APIs instead of the backwards compatibility aliases.

This is a preliminary step in anticipation of zephyrproject-rtos/hal_stm32#321.

This macro is now called "SAI_MASTERDIVIDER_DISABLE" (no 'D' at the end);
stop using the old name which only worked thanks to the HAL Legacy
definitions header.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
Replace use of legacy STM32Cube HAL macros in the STM32H5-specific test
"tests/drivers/clock_control/stm32_clock_configuration/stm32h5_core":

  __HAL_RCC_GET_PLL_OSCSOURCE() => __HAL_RCC_GET_PLL1_OSCSOURCE()
              RCC_PLLSOURCE_xxx => RCC_PLL1_SOURCE_xxx

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
@sonarqubecloud
Copy link
Copy Markdown

@mathieuchopstm
Copy link
Copy Markdown
Contributor Author

Reassigning to @erwango - this touches STM32-only code.

@mathieuchopstm mathieuchopstm assigned erwango and unassigned nordic-krch May 4, 2026
@kartben kartben merged commit b32d118 into zephyrproject-rtos:main May 4, 2026
32 of 33 checks passed
@mathieuchopstm mathieuchopstm deleted the topic/hal_legacy_usage_cleanup branch May 5, 2026 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Clock Control area: I2S area: Tests Issues related to a particular existing or missing test platform: STM32 ST Micro STM32

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants