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
This commit is contained in:
akscram 2021-09-14 09:43:46 +00:00
parent 9c1dfc0b2f
commit 91672d22ac
1 changed files with 3 additions and 0 deletions

View File

@ -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.