aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--os/hal/ports/STM32/STM32F4xx/hal_lld_type1.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/STM32F4xx/hal_lld_type1.h b/os/hal/ports/STM32/STM32F4xx/hal_lld_type1.h
index 87d60a8ed..2f2146416 100644
--- a/os/hal/ports/STM32/STM32F4xx/hal_lld_type1.h
+++ b/os/hal/ports/STM32/STM32F4xx/hal_lld_type1.h
@@ -1475,6 +1475,7 @@
#error "invalid STM32_PLLQ_VALUE value specified"
#endif
+#if defined(STM32F4XX) || defined(__DOXYGEN__)
/**
* @brief STM32_PLLR field.
*/
@@ -1484,6 +1485,9 @@
#else
#error "invalid STM32_PLLR_VALUE value specified"
#endif
+#else /* !defined(STM32F4XX) */
+#define STM32_PLLR 0
+#endif /* !defined(STM32F4XX) */
/**
* @brief PLL VCO frequency.