Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion drivers/i2s/i2s_stm32_sai.c
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ static int i2s_stm32_sai_configure(const struct device *dev, enum i2s_dir dir,
#endif

if (cfg->mclk_div == (enum mclk_divider)MCLK_NO_DIV) {
hsai->Init.NoDivider = SAI_MASTERDIVIDER_DISABLED;
hsai->Init.NoDivider = SAI_MASTERDIVIDER_DISABLE;
} else {
hsai->Init.NoDivider = SAI_MASTERDIVIDER_ENABLE;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,22 +55,22 @@ ZTEST(stm32_syclck_config, test_sysclk_src)

ZTEST(stm32_syclck_config, test_pll_src)
{
uint32_t pll_src = __HAL_RCC_GET_PLL_OSCSOURCE();
uint32_t pll_src = __HAL_RCC_GET_PLL1_OSCSOURCE();

#if STM32_PLL_SRC_HSE
zassert_equal(RCC_PLLSOURCE_HSE, pll_src,
zassert_equal(RCC_PLL1_SOURCE_HSE, pll_src,
"Expected PLL src: HSE. Actual PLL src: %d",
pll_src);
#elif STM32_PLL_SRC_HSI
zassert_equal(RCC_PLLSOURCE_HSI, pll_src,
zassert_equal(RCC_PLL1_SOURCE_HSI, pll_src,
"Expected PLL src: HSI. Actual PLL src: %d",
pll_src);
#elif STM32_PLL_SRC_CSI
zassert_equal(RCC_PLLSOURCE_CSI, pll_src,
zassert_equal(RCC_PLL1_SOURCE_CSI, pll_src,
"Expected PLL src: CSI. Actual PLL src: %d",
pll_src);
#else
zassert_equal(RCC_PLLSOURCE_NONE, pll_src,
zassert_equal(RCC_PLL1_SOURCE_NONE, pll_src,
"Expected PLL src: None. Actual PLL src: %d",
pll_src);
#endif
Expand Down
Loading