Skip to content

Commit 624d7b9

Browse files
tests: drivers: clock_control: stm32h5: replace legacy macros usage
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>
1 parent f2d8289 commit 624d7b9

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

tests/drivers/clock_control/stm32_clock_configuration/stm32h5_core/src/test_stm32_clock_configuration.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,22 +55,22 @@ ZTEST(stm32_syclck_config, test_sysclk_src)
5555

5656
ZTEST(stm32_syclck_config, test_pll_src)
5757
{
58-
uint32_t pll_src = __HAL_RCC_GET_PLL_OSCSOURCE();
58+
uint32_t pll_src = __HAL_RCC_GET_PLL1_OSCSOURCE();
5959

6060
#if STM32_PLL_SRC_HSE
61-
zassert_equal(RCC_PLLSOURCE_HSE, pll_src,
61+
zassert_equal(RCC_PLL1_SOURCE_HSE, pll_src,
6262
"Expected PLL src: HSE. Actual PLL src: %d",
6363
pll_src);
6464
#elif STM32_PLL_SRC_HSI
65-
zassert_equal(RCC_PLLSOURCE_HSI, pll_src,
65+
zassert_equal(RCC_PLL1_SOURCE_HSI, pll_src,
6666
"Expected PLL src: HSI. Actual PLL src: %d",
6767
pll_src);
6868
#elif STM32_PLL_SRC_CSI
69-
zassert_equal(RCC_PLLSOURCE_CSI, pll_src,
69+
zassert_equal(RCC_PLL1_SOURCE_CSI, pll_src,
7070
"Expected PLL src: CSI. Actual PLL src: %d",
7171
pll_src);
7272
#else
73-
zassert_equal(RCC_PLLSOURCE_NONE, pll_src,
73+
zassert_equal(RCC_PLL1_SOURCE_NONE, pll_src,
7474
"Expected PLL src: None. Actual PLL src: %d",
7575
pll_src);
7676
#endif

0 commit comments

Comments
 (0)