aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal')
-rw-r--r--os/hal/ports/STM32/STM32F3xx/hal_lld.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/STM32F3xx/hal_lld.h b/os/hal/ports/STM32/STM32F3xx/hal_lld.h
index a3b1f3d11..db1d436f3 100644
--- a/os/hal/ports/STM32/STM32F3xx/hal_lld.h
+++ b/os/hal/ports/STM32/STM32F3xx/hal_lld.h
@@ -572,6 +572,13 @@
#error "Using a wrong mcuconf.h file, STM32F3xx_MCUCONF not defined"
#endif
+/* Only some devices have strongly checked mcuconf.h files. Others will be
+ added gradually.*/
+#if (defined(STM32F303xC) || defined(STM32F303xE)) && \
+ !defined(STM32F303_MCUCONF)
+#error "Using a wrong mcuconf.h file, STM32F303_MCUCONF not defined"
+#endif
+
/*
* HSI related checks.
*/