From 91672d22ac2e539938958a3c24e8878f543e1b88 Mon Sep 17 00:00:00 2001 From: akscram Date: Tue, 14 Sep 2021 09:43:46 +0000 Subject: [PATCH] STM32: fixed F4 check when I2S disabled git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14769 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/hal/ports/STM32/STM32F4xx/hal_lld_type1.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/os/hal/ports/STM32/STM32F4xx/hal_lld_type1.h b/os/hal/ports/STM32/STM32F4xx/hal_lld_type1.h index 87db3c290..aa41f4951 100644 --- a/os/hal/ports/STM32/STM32F4xx/hal_lld_type1.h +++ b/os/hal/ports/STM32/STM32F4xx/hal_lld_type1.h @@ -1854,10 +1854,13 @@ /* * PLLI2S VCO frequency range check. */ +#if HAL_USE_I2S == TRUE #if (STM32_PLLI2SVCO < STM32_PLLVCO_MIN) || \ (STM32_PLLI2SVCO > STM32_PLLVCO_MAX) #error "STM32_PLLI2SVCO outside acceptable range (STM32_PLLVCO_MIN...STM32_PLLVCO_MAX)" #endif +#endif + /** * @brief PLLI2S P output clock frequency.